summaryrefslogtreecommitdiffstatshomepage
path: root/unix-cpy
diff options
context:
space:
mode:
authorJohn R. Lenton <jlenton@gmail.com>2014-01-13 13:25:10 +0000
committerJohn R. Lenton <jlenton@gmail.com>2014-01-13 13:25:10 +0000
commit95499193497ce1fd15de217f7b69fc2f91a37dbf (patch)
treeba72dacaf09f8063a166217859cbfeaf530c58e7 /unix-cpy
parenta23a24f89c4b7e05d269aafb54a3d539dd1caa03 (diff)
downloadmicropython-95499193497ce1fd15de217f7b69fc2f91a37dbf.tar.gz
micropython-95499193497ce1fd15de217f7b69fc2f91a37dbf.zip
made DEBUG control CFLAGS in Makefiles oter 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 90e1f733d5..e59a06b7ad 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 \