diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2014-08-06 12:40:21 -0400 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2014-08-06 12:40:21 -0400 |
commit | a30419c2781cbfbb87dd3c8b3c832be471afeeb0 (patch) | |
tree | 781cdc921de3cf3094bd3132e81688001085eedb /Makefile | |
parent | b72e0da99ef6c379bb95c637a83496ebd1aa3284 (diff) | |
download | kd-forest-a30419c2781cbfbb87dd3c8b3c832be471afeeb0.tar.xz |
Split out option handling into its own file.
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -10,14 +10,14 @@ ##################################################################### CC ?= gcc -CFLAGS ?= -std=c99 -pipe -g -O3 -flto -Werror -Wall -Wpedantic -Wextra -Wno-sign-compare -Wno-unused-parameter -Wunreachable-code -Wshadow -Wpointer-arith -Wwrite-strings -Wcast-align -Wstrict-prototypes +CFLAGS ?= -std=c99 -D_POSIX_C_SOURCE=200809L -pipe -g -O3 -flto -Werror -Wall -Wpedantic -Wextra -Wno-sign-compare -Wno-unused-parameter -Wunreachable-code -Wshadow -Wpointer-arith -Wwrite-strings -Wcast-align -Wstrict-prototypes LDFLAGS ?= -Wl,-O1,--sort-common,--as-needed,-z,relro LIBS ?= -lm -lpng RM ?= rm -f -HEADERS = color.h kd-forest.h util.h +HEADERS = color.h kd-forest.h options.h util.h -kd-forest: color.o kd-forest.o main.o util.o +kd-forest: color.o kd-forest.o main.o options.o util.o $(CC) $(CFLAGS) $(LDFLAGS) $^ $(LIBS) -o kd-forest %.o: %.c $(HEADERS) |