3 prefix = /var/www/htdocs/cgit
5 SHA1_HEADER = <openssl/sha.h>
7 CACHE_ROOT = /var/cache/cgit
8 EXTLIBS = git/libgit.a git/xdiff/lib.a -lz -lcrypto
9 OBJECTS = shared.o cache.o parsing.o html.o ui-shared.o ui-repolist.o \
10 ui-summary.o ui-log.o ui-view.o ui-tree.o ui-commit.o ui-diff.o \
11 ui-snapshot.o ui-blob.o
19 CFLAGS += -Igit -DSHA1_HEADER='$(SHA1_HEADER)'
29 cgit: cgit.c cgit.h $(OBJECTS)
30 $(CC) $(CFLAGS) -DCGIT_VERSION='"$(CGIT_VERSION)"' cgit.c -o cgit \
33 $(OBJECTS): cgit.h git/libgit.a
42 install: all clean-cache
44 install cgit $(prefix)/cgit.cgi
45 install cgit.css $(prefix)/cgit.css
50 distclean-cgit: clean-cgit
56 distclean-sub: clean-sub
57 $(shell cd git && git clean -d -x)
60 rm -rf $(CACHE_ROOT)/*
62 clean: clean-cgit clean-sub
64 distclean: distclean-cgit distclean-sub
66 .PHONY: all install clean clean-cgit clean-sub clean-cache \
67 distclean distclean-cgit distclean-sub