File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -36,17 +36,21 @@ OS_FLAGS ?= -bundle -undefined dynamic_lookup
3636MAC_ENV ?= env MACOSX_DEPLOYMENT_TARGET='10.3'
3737endif
3838
39+ ifeq ($(DEBUG ) ,)
40+ DBG = -ggdb
41+ endif
42+
3943ifeq ($(DEV ) ,)
40- WARN = -Wall -Wno-unused-value
44+ WARN = -Wall -Wno-unused-value
4145else
42- WARN = -Wall -W -Waggregate-return -Wcast-align -Wmissing-prototypes -Wnested-externs -Wshadow -Wwrite-strings -pedantic
46+ WARN = -Wall -W -Waggregate-return -Wcast-align -Wmissing-prototypes -Wnested-externs -Wshadow -Wwrite-strings -pedantic
4347endif
4448
4549INCLUDES = -I$(LUA_INC )
4650DEFINES =
4751LIBS = -lrt -ldl $(CURL_LIBS )
4852
49- COMMONFLAGS = -O2 -g -pipe -fPIC $(OS_FLAGS )
53+ COMMONFLAGS = -O2 -g -pipe -fPIC $(OS_FLAGS ) $( DBG )
5054LF = $(LIBS ) $(LDFLAGS )
5155CF = $(INCLUDES ) $(DEFINES ) $(COMMONFLAGS ) $(WARN ) -DPTHREADS $(CFLAGS )
5256
You can’t perform that action at this time.
0 commit comments