From: Siraaj Khandkar Date: Fri, 17 Apr 2020 18:29:11 +0000 (-0400) Subject: Make build rule even more explicit X-Git-Url: https://git.xandkar.net/?a=commitdiff_plain;h=da90c8f2b8922807b256dc29d1d7ae21aa50874d;p=khome.git Make build rule even more explicit --- diff --git a/src/Makefile b/src/Makefile index 400e2ce..d672569 100644 --- a/src/Makefile +++ b/src/Makefile @@ -1,6 +1,8 @@ CPPFLAGS := -D_POSIX_C_SOURCE=200809L -CFLAGS := -std=c99 -Wall -Wextra +CFLAGS := -std=c99 -Wall -Wextra -pedantic LDLIBS := -lncurses +LDFLAGS := -s # Remove all symbol table and relocation information from the + # executable. .PHONY: build clean @@ -9,5 +11,5 @@ build: clockloop clean: rm -f clockloop -clockloop: - $(CC) $(LDLIBS) clockloop.c -o clockloop +clockloop: clockloop.c + $(CC) $(LDFLAGS) $(CPPFLAGS) $(CFLAGS) -o $@ $< $(LDLIBS)