Browse Source

JSON-193: make debug builds default or when DEBUG=1 (or undeclared). Declare DEBUG=0 for a release build.

Release_2.1
roker 5 months ago
parent
commit
5105d2f5f5
1 changed files with 4 additions and 2 deletions
  1. +4
    -2
      server/Makefile

+ 4
- 2
server/Makefile View File

@ -51,8 +51,9 @@ else
$(error I do not know how to make for $(BUILD_FOR) on $(BUILD_ON))
endif
ifdef NDEBUG
# DEBUG=0 -> release build
# DEBUG=1 or undefined -> debug build
ifeq ($(DEBUG),0)
CFLAGS+=-O3 -DNDEBUG
CXXFLAGS+=-O3 -DNDEBUG
else
@ -60,6 +61,7 @@ else
CXXFLAGS+=-O0 -g -DDEBUG_ENABLED
endif
TARGET=pEp-mini-json-adapter
LIB_TARGET=libjson-adapter.a


Loading…
Cancel
Save