summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2014-08-06 12:40:21 -0400
committerTavian Barnes <tavianator@tavianator.com>2014-08-06 12:40:21 -0400
commita30419c2781cbfbb87dd3c8b3c832be471afeeb0 (patch)
tree781cdc921de3cf3094bd3132e81688001085eedb /Makefile
parentb72e0da99ef6c379bb95c637a83496ebd1aa3284 (diff)
downloadkd-forest-a30419c2781cbfbb87dd3c8b3c832be471afeeb0.tar.xz
Split out option handling into its own file.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 3 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 5a9f5dd..ae18799 100644
--- a/Makefile
+++ b/Makefile
@@ -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)