srpt: Change default build mode from release to debug. Add support for "make 2debug" / "make 2release" / "make 2perf".

git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3759 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Bart Van Assche
2011-07-26 09:26:17 +00:00
parent b21be77a50
commit 84f56dfa67
3 changed files with 31 additions and 9 deletions
+8 -5
View File
@@ -1,10 +1,13 @@
-include $(SUBDIRS)/../build_mode
SCST_INC_DIR := $(SUBDIRS)/../../scst/include/
EXTRA_CFLAGS += -I$(SCST_INC_DIR)
#EXTRA_CFLAGS += -DCONFIG_SCST_TRACING
#EXTRA_CFLAGS += -DCONFIG_SCST_DEBUG
#EXTRA_CFLAGS += -g -fno-inline -fno-inline-functions
#EXTRA_CFLAGS += -DCONFIG_SCST_EXTRACHECKS
SRPTFLAGS = -DCONFIG_SCST_TRACING -DCONFIG_SCST_DEBUG \
-DCONFIG_SCST_EXTRACHECKS -fno-inline -fno-inline-functions
SRPTFLAGSRELEASE = -DCONFIG_SCST_TRACING
SRPTFLAGSPERF =
EXTRA_CFLAGS += -I$(SCST_INC_DIR) $(SRPTFLAGS$(BUILDMODE))
#EXTRA_CFLAGS += -Wextra -Wno-unused-parameter
obj-m += ib_srpt.o