From ff54ec830d2d3d444987a3ac071df77e37e35504 Mon Sep 17 00:00:00 2001 From: Henrik Hautakoski Date: Mon, 27 Aug 2012 10:39:54 +0200 Subject: [PATCH] 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 --- Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Makefile b/Makefile index fd64383..d93cdfe 100644 --- a/Makefile +++ b/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)