From 4ce201f3497c79aafae09b9de1697bd9071fd242 Mon Sep 17 00:00:00 2001 From: Alad Wenter Date: Thu, 14 Sep 2017 16:46:21 +0200 Subject: [PATCH] Makefile: use cottage target for compilation Ensure LDFLAGS are respected --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 97f1cf4..9750c39 100644 --- a/Makefile +++ b/Makefile @@ -3,8 +3,8 @@ CC ?= clang BIN_NAME ?= cottage SRCS = cottage.c -all: - $(CC) $(SRCS) $(CFLAGS) -o $(BIN_NAME) +all: cottage +cottage: cottage.o debug: CFLAGS += -O0 -g -DDEBUG debug: all