From 447025f62ccbbb6e038d42009368e28f3e162460 Mon Sep 17 00:00:00 2001 From: Lars Hjemli Date: Wed, 17 Jan 2007 01:13:05 +0100 Subject: [PATCH] Enable building with debuginfo Add -g to CFLAGS when running make with DEBUG=1 Signed-off-by: Lars Hjemli --- Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Makefile b/Makefile index c290c6f..a3e9b05 100644 --- a/Makefile +++ b/Makefile @@ -10,6 +10,10 @@ OBJECTS = shared.o cache.o parsing.o html.o ui-shared.o ui-repolist.o \ CFLAGS += -Wall +ifdef DEBUG + CFLAGS += -g +endif + all: cgit install: all clean-cache