From a30419c2781cbfbb87dd3c8b3c832be471afeeb0 Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Wed, 6 Aug 2014 12:40:21 -0400 Subject: Split out option handling into its own file. --- Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Makefile') 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) -- cgit v1.2.3