Browse Source

Separated TRACE and DEBUG conditions in makefile

pull/1/head
Joseph Henry 9 years ago
parent
commit
f06bbf74c5
  1. 23
      Makefile

23
Makefile

@ -132,19 +132,32 @@ LIBZT_INCLUDES+=-Iinclude \
STRIP=strip
# ZeroTier debug and tracing
ifeq ($(ZT_DEBUG),1)
ZT_DEFS+=-DZT_TRACE
CFLAGS+=-Wall -g -pthread
CFLAGS?=-Wall -g -pthread
STRIP=echo
else
CFLAGS?=-Ofast -fstack-protector
CFLAGS+=-Wall -fPIE -fvisibility=hidden -pthread
CFLAGS?=-Wall -fPIE -fvisibility=hidden -pthread
endif
ifeq ($(ZT_TRACE),1)
ZT_DEFS+=-DZT_TRACE
endif
# libzt debuf and tracing
ifeq ($(LIBZT_DEBUG),1)
CFLAGS+=-Wall -g -pthread
LIBZT_DEFS+=-DLIBZT_DEBUG
CFLAGS?=-Wall -g -pthread
STRIP=echo
else
CFLAGS?=-Ofast -fstack-protector
CFLAGS?=-Wall -fPIE -fvisibility=hidden -pthread
endif
ifeq ($(LIBZT_TRACE),1)
LIBZT_DEFS+=-DLIBZT_DEBUG
endif
ifeq ($(NS_DEBUG),1)
CFLAGS+=-Wall -g
STRIP=echo

Loading…
Cancel
Save