Commit | Line | Data |
---|---|---|
de7ac8e9 | 1 | CPPFLAGS := -D_POSIX_C_SOURCE=200809L |
da90c8f2 | 2 | CFLAGS := -std=c99 -Wall -Wextra -pedantic |
de7ac8e9 | 3 | LDLIBS := -lncurses |
da90c8f2 SK |
4 | LDFLAGS := -s # Remove all symbol table and relocation information from the |
5 | # executable. | |
de7ac8e9 SK |
6 | |
7 | .PHONY: build clean | |
8 | ||
9 | build: clockloop | |
10 | ||
11 | clean: | |
12 | rm -f clockloop | |
3a7d12f0 | 13 | |
da90c8f2 SK |
14 | clockloop: clockloop.c |
15 | $(CC) $(LDFLAGS) $(CPPFLAGS) $(CFLAGS) -o $@ $< $(LDLIBS) |