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
clean:
rm -f clockloop
-clockloop:
- $(CC) $(LDLIBS) clockloop.c -o clockloop
+clockloop: clockloop.c
+ $(CC) $(LDFLAGS) $(CPPFLAGS) $(CFLAGS) -o $@ $< $(LDLIBS)