# If ENABLE_ASSERTIONS=1 is specified (make command line or configured),
# then enable assertions by defining the appropriate preprocessor symbols.
-ifdef ENABLE_ASSERTIONS
- ifdef ENABLE_OPTIMIZED
- BuildMode := $(BuildMode)+Asserts
- endif
- CXX.Flags += -D_DEBUG
- C.Flags += -D_DEBUG
-else
- ifndef ENABLE_OPTIMIZED
+ifdef DISABLE_ASSERTIONS
BuildMode := $(BuildMode)-Asserts
- endif
CXX.Flags += -DNDEBUG
C.Flags += -DNDEBUG
+else
+ CXX.Flags += -D_DEBUG
+ C.Flags += -D_DEBUG
endif
CXX.Flags += $(CXXFLAGS)
$(Echo) "LexFiles : " '$(LexFiles)'
$(Echo) "Module : " '$(Module)'
$(Echo) "FilesToConfig: " '$(FilesToConfigPATH)'
+ $(Echo) "SubDirs : " '$(SubDirs)'