summaryrefslogtreecommitdiff
path: root/unix-cpy
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2014-01-14 15:54:31 -0800
committerDamien George <damien.p.george@gmail.com>2014-01-14 15:54:31 -0800
commitc6920d31e2b03205fe2851f74a6a4b48d0165608 (patch)
treeaf489f582ba1efc70dafbc71acb88d2a9310ed86 /unix-cpy
parent0367ad6214b0923d9e01ec758e1e10bc1a482f4f (diff)
parent10d2f72860efa611b48de8c6d8a52ffa8309a1c3 (diff)
Merge pull request #170 from chipaca/master
made DEBUG control CFLAGS in Makefiles other than stm as well.
Diffstat (limited to 'unix-cpy')
-rw-r--r--unix-cpy/Makefile9
1 files changed, 8 insertions, 1 deletions
diff --git a/unix-cpy/Makefile b/unix-cpy/Makefile
index 90e1f733d..e59a06b7a 100644
--- a/unix-cpy/Makefile
+++ b/unix-cpy/Makefile
@@ -11,9 +11,16 @@ ECHO = @echo
# compiler settings
CC = gcc
-CFLAGS = -I. -I$(PY_SRC) -Wall -Werror -ansi -std=gnu99 -Os #-DNDEBUG
+CFLAGS = -I. -I$(PY_SRC) -Wall -Werror -ansi -std=gnu99
LDFLAGS = -lm
+#Debugging/Optimization
+ifdef DEBUG
+CFLAGS += -Og -ggdb
+else
+CFLAGS += -Os #-DNDEBUG
+endif
+
# source files
SRC_C = \
main.c \