aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Jonas Gunz <himself@jonasgunz.de> 2020-05-23 20:40:41 +0200
committerGravatar Jonas Gunz <himself@jonasgunz.de> 2020-05-23 20:40:41 +0200
commit0df7cb5b262c6a28de42a338949aa534b7dbae68 (patch)
tree3c3102c1f1ffb1bd0e428b8d507fd89d5c2c8b00
parent6f3b65417dfc79768eeef5e14440081bcfdcd152 (diff)
downloadAsciiMap-0df7cb5b262c6a28de42a338949aa534b7dbae68.tar.gz
Makefile update
-rw-r--r--Makefile8
1 files changed, 5 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 78d7bcc..0374be2 100644
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,4 @@
-CC = /usr/bin/gcc
+CC = clang
CFLAGS = -Wall
LDFLAGS = -lm
SOURCEDIR = src
@@ -10,9 +10,11 @@ FILE = 022.bmp
SRCS = $(wildcard $(SOURCEDIR)/*.c)
OBJ = $(SRCS:.c=.o)
+.PHONY: build
build: $(OBJ)
- mkdir -p $(BUILDDIR)
- $(CC) $(CFLAGS) -o $(BUILDDIR)/$(OUTPUT) $(OBJ) $(LDFLAGS)
+ @mkdir -p $(BUILDDIR)
+ @echo [LINK] $(OBJ)
+ @$(CC) $(CFLAGS) -o $(BUILDDIR)/$(OUTPUT) $(OBJ) $(LDFLAGS)
debug: CFLAGS+= -g -D _DEBUG
debug: build;