Browse Source

Makefile change: updated symbol stripping/debugging conditions

pull/1/head
Joseph Henry 9 years ago
parent
commit
9b2d3a2657
  1. 11
      Makefile

11
Makefile

@ -130,6 +130,8 @@ LIBZT_INCLUDES+=-Iinclude \
# LIBZT_ Configuration options for libzt # LIBZT_ Configuration options for libzt
# NS_ Configuration options for userspace network stack # NS_ Configuration options for userspace network stack
STRIP=strip
ifeq ($(ZT_DEBUG),1) ifeq ($(ZT_DEBUG),1)
ZT_DEFS+=-DZT_TRACE ZT_DEFS+=-DZT_TRACE
CFLAGS+=-Wall -g -pthread CFLAGS+=-Wall -g -pthread
@ -137,15 +139,17 @@ ifeq ($(ZT_DEBUG),1)
else else
CFLAGS?=-Ofast -fstack-protector CFLAGS?=-Ofast -fstack-protector
CFLAGS+=-Wall -fPIE -fvisibility=hidden -pthread CFLAGS+=-Wall -fPIE -fvisibility=hidden -pthread
STRIP=strip
endif endif
ifeq ($(LIBZT_DEBUG),1) ifeq ($(LIBZT_DEBUG),1)
#CFLAGS+=-g CFLAGS+=-Wall -g -pthread
LIBZT_DEFS+=-DLIBZT_DEBUG LIBZT_DEFS+=-DLIBZT_DEBUG
STRIP=echo
endif endif
ifeq ($(NS_DEBUG),1) ifeq ($(NS_DEBUG),1)
# specified in stack configuration section CFLAGS+=-Wall -g
STRIP=echo
endif endif
# Build with address sanitization library for advanced debugging (clang) # Build with address sanitization library for advanced debugging (clang)
# TODO: Add GCC version as well # TODO: Add GCC version as well
ifeq ($(LIBZT_SANITIZE),1) ifeq ($(LIBZT_SANITIZE),1)
@ -294,6 +298,7 @@ win_dll: lwip lwip_driver libzt_socket_layer utilities $(ZTO_OBJS)
$(STRIP) $(BUILD)/libzt.dll $(STRIP) $(BUILD)/libzt.dll
# Then do the following to generate the mSVC DLL from the def file (which was generated from the MinGW DLL): # Then do the following to generate the mSVC DLL from the def file (which was generated from the MinGW DLL):
# lib /machine:x64 /def:libzt.def # lib /machine:x64 /def:libzt.def
# or just execute: makelib
ifeq ($(STACK_PICO),1) ifeq ($(STACK_PICO),1)
static_lib: picotcp picotcp_driver libzt_socket_layer utilities $(ZTO_OBJS) static_lib: picotcp picotcp_driver libzt_socket_layer utilities $(ZTO_OBJS)

Loading…
Cancel
Save