]> gitweb.ps.run Git - ps-cgit/blobdiff - Makefile
Enable building with debuginfo
[ps-cgit] / Makefile
index c290c6f5672ab33b22ffc282188ec0b34dc707d9..a3e9b053e6d38bf1cde875cb11e2184a7e6cf21f 100644 (file)
--- 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