]> gitweb.ps.run Git - ps-cgit/blobdiff - Makefile
Enable building with debuginfo
[ps-cgit] / Makefile
index 4aa7afec63606d317ec8c52cf5e664b21c3ab5a7..a3e9b053e6d38bf1cde875cb11e2184a7e6cf21f 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,4 @@
-CGIT_VERSION = 0.1-pre
+CGIT_VERSION = 0.1
 
 INSTALL_BIN = /var/www/htdocs/cgit.cgi
 INSTALL_CSS = /var/www/htdocs/cgit.css
@@ -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
@@ -22,6 +26,8 @@ cgit: cgit.c cgit.h git.h $(OBJECTS)
 
 $(OBJECTS): cgit.h git.h
 
+ui-diff.o: xdiff.h
+
 .PHONY: clean
 clean:
        rm -f cgit *.o