about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--Makefile4
1 files changed, 4 insertions, 0 deletions
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