Makefile: add -D__DEBUG__ symbol.
xalloc.c uses this symbol to provide additional debugging information. This patch adds support to make to define this symbol when running: $ make DEBUG=1
This commit is contained in:
parent
fe4d64e288
commit
ff54ec830d
1 changed files with 4 additions and 0 deletions
4
Makefile
4
Makefile
|
|
@ -5,6 +5,10 @@ CFLAGS = -g -Wall -I/usr/include/libxml2
|
|||
|
||||
PROGRAMS = dlight dlight-compile dlight-read-config dlight-filter-check
|
||||
|
||||
ifeq ($(DEBUG), 1)
|
||||
CFLAGS +=-D__DEBUG__
|
||||
endif
|
||||
|
||||
all : $(PROGRAMS)
|
||||
|
||||
install : $(PROGRAMS)
|
||||
|
|
|
|||
Reference in a new issue