aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 5 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index ffe0501..9bcd37f 100644
--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,10 @@
PROJECT=sercp
-all:
+all: $(PROJECT)
+
+sercp: $(PROJECT).c
gcc $(PROJECT).c -o $(PROJECT) -Wall -pedantic -MP -MD -std=gnu11 -Werror=format-security -O2
-debug:
+
+debug: $(PROJECT).c
gcc $(PROJECT).c -o $(PROJECT) -Wall -pedantic -MP -MD -std=gnu11 -Werror=format-security -g -O0
clean: