all repos — cgit @ f5069d88dff7a7ed2f4665904b03e906cca75a7c

a hyperfast web frontend for git written in c

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