aboutsummaryrefslogtreecommitdiff
path: root/rules.mk
diff options
context:
space:
mode:
authorNicholas Noll <nbnoll@eml.cc>2020-05-03 20:34:50 -0700
committerNicholas Noll <nbnoll@eml.cc>2020-05-03 20:34:50 -0700
commitee48d2771f45a210a25cc354d0dbff5f69821f8b (patch)
tree988f1d388352c76b9afb48502d87e6bfaa8f82bb /rules.mk
parent9d9681d6a8b7d022bde993e0e51aed13174ad0c8 (diff)
removed the day's confusion. added debug and release mode to makefile
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 :=