Makefile (view raw)
1CGIT_VERSION = 0.1-pre
2
3INSTALL_BIN = /var/www/htdocs/cgit.cgi
4INSTALL_CSS = /var/www/htdocs/cgit.css
5
6EXTLIBS = ../git/libgit.a ../git/xdiff/lib.a -lz -lcrypto
7OBJECTS = config.o html.o cache.o
8
9CFLAGS += -Wall
10
11all: cgit
12
13install: all
14 install cgit $(INSTALL_BIN)
15 install cgit.css $(INSTALL_CSS)
16
17cgit: 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
23clean:
24 rm -f cgit *.o