diff options
author | Jonas Gunz <himself@jonasgunz.de> | 2020-05-23 20:40:41 +0200 |
---|---|---|
committer | Jonas Gunz <himself@jonasgunz.de> | 2020-05-23 20:40:41 +0200 |
commit | 0df7cb5b262c6a28de42a338949aa534b7dbae68 (patch) | |
tree | 3c3102c1f1ffb1bd0e428b8d507fd89d5c2c8b00 | |
parent | 6f3b65417dfc79768eeef5e14440081bcfdcd152 (diff) | |
download | AsciiMap-0df7cb5b262c6a28de42a338949aa534b7dbae68.tar.gz |
Makefile update
-rw-r--r-- | Makefile | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -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; |