]> gitweb.ps.run Git - ps-cgit/blob - Makefile
Add caching infrastructure
[ps-cgit] / Makefile
1
2 INSTALL_BIN = /var/www/htdocs/cgit.cgi
3 INSTALL_CSS = /var/www/htdocs/cgit.css
4
5 EXTLIBS = ../git/libgit.a ../git/xdiff/lib.a -lz -lcrypto
6 OBJECTS = cgit.o config.o html.o cache.o
7
8 CFLAGS += -Wall
9
10 all: cgit
11
12 install: all
13         install cgit $(INSTALL_BIN)
14         install cgit.css $(INSTALL_CSS)
15
16 clean:
17         rm -f cgit *.o
18
19 cgit: $(OBJECTS)
20         $(CC) $(CFLAGS) -o cgit $(OBJECTS) $(EXTLIBS)
21
22 $(OBJECTS): cgit.h git.h