summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 6 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 147c052..cb74099 100644
--- a/Makefile
+++ b/Makefile
@@ -28,10 +28,14 @@
# comment out next line to disable OpenGL support
# export OPENGL_SUPPORT=1
-
-export DEBUG?=0
export SNOW?=
+ifeq ($(GPGPUSIM_CONFIG), debug)
+ export DEBUG=1
+else
+ export DEBUG=0
+endif
+
ifeq ($(DEBUG), 1)
export SIM_LIB_DIR=lib/debug
export SIM_OBJ_FILES_DIR=build/debug