summaryrefslogtreecommitdiffstatshomepage
path: root/unix-cpy/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'unix-cpy/Makefile')
-rw-r--r--unix-cpy/Makefile9
1 files changed, 8 insertions, 1 deletions
diff --git a/unix-cpy/Makefile b/unix-cpy/Makefile
index d5397dac9a..4955ea0c50 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 -DUNIX #-DNDEBUG
+CFLAGS = -I. -I$(PY_SRC) -Wall -Werror -ansi -std=gnu99 -DUNIX
LDFLAGS = -lm
+#Debugging/Optimization
+ifdef DEBUG
+CFLAGS += -Og -ggdb
+else
+CFLAGS += -Os #-DNDEBUG
+endif
+
# source files
SRC_C = \
main.c \