From 0df7cb5b262c6a28de42a338949aa534b7dbae68 Mon Sep 17 00:00:00 2001 From: Jonas Gunz Date: Sat, 23 May 2020 20:40:41 +0200 Subject: Makefile update --- Makefile | 8 +++++--- 1 file 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; -- cgit v1.2.3