add DEBUG option for make

By default, binary will be built without stripping debug symbols
This commit is contained in:
R4SAS 2018-06-29 02:27:19 +03:00
parent 5233e72205
commit 64aee9c8ae
6 changed files with 24 additions and 16 deletions

View file

@ -18,6 +18,14 @@ USE_AVX := yes
USE_STATIC := no
USE_MESHNET := no
USE_UPNP := no
DEBUG := yes
ifeq ($(DEBUG),yes)
CXX_DEBUG = -g
else
CXX_DEBUG = -Os
LD_DEBUG = -s
endif
ifeq ($(WEBSOCKETS),1)
NEEDED_CXXFLAGS += -DWITH_EVENTS