Archived
1
0
Fork 0

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:
Henrik Hautakoski 2012-08-27 10:39:54 +02:00
parent fe4d64e288
commit ff54ec830d

View file

@ -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)