summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
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