aboutsummaryrefslogtreecommitdiff
path: root/rules.mk
diff options
context:
space:
mode:
Diffstat (limited to 'rules.mk')
-rw-r--r--rules.mk8
1 files changed, 7 insertions, 1 deletions
diff --git a/rules.mk b/rules.mk
index 3f2de37..7fc6a1f 100644
--- a/rules.mk
+++ b/rules.mk
@@ -1,10 +1,16 @@
# Standard housekeeping
-.PHONY: all clean install
+.PHONY: all debug release clean install
.SUFFIXES:
.SUFFIXES: .s .c .o
all: targets
+debug: CFLAGS += -DDEBUG
+debug: targets
+
+release: CFLAGS += -DNDEBUG -O3
+release: targets
+
# Targets & array of sources & intermediates
SRCS :=
OBJS :=