summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@sbcglobal.net>2016-03-22 23:26:29 -0400
committerLuke Shumaker <lukeshu@sbcglobal.net>2016-03-22 23:26:29 -0400
commitd3a6398406f1a3f222c7ca00d4e4608267148456 (patch)
treef6ae31c550d45d9e95a4a5df69d1a44aea118adf /Makefile
parente90c4a77b7783468048bc4bc49eb0423ae676a78 (diff)
stuff
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile20
1 files changed, 18 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index f9df186..05f71c9 100644
--- a/Makefile
+++ b/Makefile
@@ -1,9 +1,25 @@
# Copyright 2016 Luke Shumaker
-CFLAGS += -g -std=c99 -Wall -Werror -Wextra -pedantic
-CPPFLAGS += -std=c99 -Wall -Werror -Wextra -pedantic
+# The source is C99 written for GNU
+CFLAGS += -std=c99
+CPPFLAGS += -std=c99
CPPFLAGS += -D_GNU_SOURCE
+# Be hyper-strict
+CFLAGS += -Wall -Werror -Wextra -pedantic
+CPPFLAGS += -Wall -Werror -Wextra -pedantic
+
+# Debugging
+CFLAGS += -g -fvar-tracking-assignments
+CPPFLAGS += -g -fvar-tracking-assignments
+
+# Enable the stack protector
+CFLAGS += -fstack-protector
+
+# Enable FORTIFY_SOURCE
+CFLAGS += -O2
+CPPFLAGS += -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2
+
all: freenect-server multipart-replace-http-server
.PHONY: all