Allow switching off debug compilation in the Makefile
Debug mode stays enabled by default. Turn it off by passing a DEBUG flag into make, eg.: $ make DEBUG=0
This commit is contained in:
committed by
RoosterDragon
parent
272a0d8691
commit
1a9f4f8a1b
10
Makefile
10
Makefile
@@ -38,10 +38,18 @@
|
||||
############################## TOOLCHAIN ###############################
|
||||
#
|
||||
CSC = dmcs
|
||||
CSFLAGS = -nologo -warn:4 -debug:pdbonly -optimize+ -codepage:utf8 -unsafe -warnaserror
|
||||
CSFLAGS = -nologo -warn:4 -codepage:utf8 -unsafe -warnaserror
|
||||
DEFINE = TRACE
|
||||
COMMON_LIBS = System.dll System.Core.dll System.Data.dll System.Data.DataSetExtensions.dll System.Drawing.dll System.Xml.dll thirdparty/download/ICSharpCode.SharpZipLib.dll thirdparty/download/FuzzyLogicLibrary.dll thirdparty/download/Mono.Nat.dll thirdparty/download/MaxMind.Db.dll thirdparty/download/MaxMind.GeoIP2.dll thirdparty/download/Eluant.dll
|
||||
|
||||
DEBUG = true
|
||||
ifeq ($(DEBUG), $(filter $(DEBUG),false no n off 0))
|
||||
CSCFLAGS += -debug:pdbonly -optimize+
|
||||
else
|
||||
CSCFLAGS += -debug:full -optimize-
|
||||
DEFINE := DEBUG;$(DEFINE)
|
||||
endif
|
||||
|
||||
|
||||
|
||||
######################### UTILITIES/SETTINGS ###########################
|
||||
|
||||
Reference in New Issue
Block a user