]> gitweb.ps.run Git - ps-cgit/blobdiff - Makefile
Add caching infrastructure
[ps-cgit] / Makefile
index 1470c0a2c0fe71965a8fa8eef0c9536b97bd8259..243f59051423db9024066caf44e371f1fc7ae114 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -3,7 +3,9 @@ INSTALL_BIN = /var/www/htdocs/cgit.cgi
 INSTALL_CSS = /var/www/htdocs/cgit.css
 
 EXTLIBS = ../git/libgit.a ../git/xdiff/lib.a -lz -lcrypto
-OBJECTS = cgit.o config.o html.o
+OBJECTS = cgit.o config.o html.o cache.o
+
+CFLAGS += -Wall
 
 all: cgit
 
@@ -15,10 +17,6 @@ clean:
        rm -f cgit *.o
 
 cgit: $(OBJECTS)
-       $(CC) -o cgit $(OBJECTS) $(EXTLIBS)
-
-cgit.o: cgit.h git.h config.o html.o
-
-config.o: cgit.h git.h html.c
+       $(CC) $(CFLAGS) -o cgit $(OBJECTS) $(EXTLIBS)
 
-html.o: cgit.h git.h html.c
+$(OBJECTS): cgit.h git.h