the repository which powers this website
Enable building with debuginfo
Add -g to CFLAGS when running make with DEBUG=1 Signed-off-by: Lars Hjemli <[email protected]>
Lars Hjemli 2007-01-17
parent 23734c5 · commit 447025f
-rw-r--r--Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index c290c6f5..a3e9b053 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