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