From: Lars Hjemli Date: Wed, 17 Jan 2007 00:13:05 +0000 (+0100) Subject: Enable building with debuginfo X-Git-Url: https://gitweb.ps.run/ps-cgit/commitdiff_plain/447025f62ccbbb6e038d42009368e28f3e162460?ds=inline Enable building with debuginfo Add -g to CFLAGS when running make with DEBUG=1 Signed-off-by: Lars Hjemli --- 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