|
diff --git a/Makefile b/Makefile index aa7146d..914db1c 100644 --- a/ Makefile+++ b/ Makefile |
|
@@ -1,41 +1,46 @@ |
1 | CGIT_VERSION = 0.4 |
1 | CGIT_VERSION = 0.4 |
2 | |
2 | |
3 | prefix = /var/www/htdocs/cgit |
3 | prefix = /var/www/htdocs/cgit |
4 | |
4 | |
5 | SHA1_HEADER = <openssl/sha.h> |
5 | SHA1_HEADER = <openssl/sha.h> |
6 | CACHE_ROOT = /var/cache/cgit |
6 | CACHE_ROOT = /var/cache/cgit |
7 | CGIT_CONFIG = /etc/cgitrc |
7 | CGIT_CONFIG = /etc/cgitrc |
8 | CGIT_SCRIPT_NAME = cgit.cgi |
8 | CGIT_SCRIPT_NAME = cgit.cgi |
9 | |
9 | |
| |
10 | # |
| |
11 | # Let the user override the above settings. |
| |
12 | # |
| |
13 | -include cgit.conf |
| |
14 | |
10 | EXTLIBS = git/libgit.a git/xdiff/lib.a -lz -lcrypto |
15 | EXTLIBS = git/libgit.a git/xdiff/lib.a -lz -lcrypto |
11 | OBJECTS = shared.o cache.o parsing.o html.o ui-shared.o ui-repolist.o \ |
16 | OBJECTS = shared.o cache.o parsing.o html.o ui-shared.o ui-repolist.o \ |
12 | ui-summary.o ui-log.o ui-view.o ui-tree.o ui-commit.o ui-diff.o \ |
17 | ui-summary.o ui-log.o ui-view.o ui-tree.o ui-commit.o ui-diff.o \ |
13 | ui-snapshot.o ui-blob.o |
18 | ui-snapshot.o ui-blob.o |
14 | |
19 | |
15 | CFLAGS += -Wall |
20 | CFLAGS += -Wall |
16 | |
21 | |
17 | ifdef DEBUG |
22 | ifdef DEBUG |
18 | CFLAGS += -g |
23 | CFLAGS += -g |
19 | endif |
24 | endif |
20 | |
25 | |
21 | CFLAGS += -Igit |
26 | CFLAGS += -Igit |
22 | CFLAGS += -DSHA1_HEADER='$(SHA1_HEADER)' |
27 | CFLAGS += -DSHA1_HEADER='$(SHA1_HEADER)' |
23 | CFLAGS += -DCGIT_VERSION='"$(CGIT_VERSION)"' |
28 | CFLAGS += -DCGIT_VERSION='"$(CGIT_VERSION)"' |
24 | CFLAGS += -DCGIT_CONFIG='"$(CGIT_CONFIG)"' |
29 | CFLAGS += -DCGIT_CONFIG='"$(CGIT_CONFIG)"' |
25 | CFLAGS += -DCGIT_SCRIPT_NAME='"$(CGIT_SCRIPT_NAME)"' |
30 | CFLAGS += -DCGIT_SCRIPT_NAME='"$(CGIT_SCRIPT_NAME)"' |
26 | |
31 | |
27 | |
32 | |
28 | # |
33 | # |
29 | # If make is run on a nongit platform, we need to get the git sources as a tarball. |
34 | # If make is run on a nongit platform, we need to get the git sources as a tarball. |
30 | # But there is currently no recent enough tarball available on kernel.org, so download |
35 | # But there is currently no recent enough tarball available on kernel.org, so download |
31 | # a zipfile from hjemli.net instead |
36 | # a zipfile from hjemli.net instead |
32 | # |
37 | # |
33 | GITVER = $(shell git version 2>/dev/null || echo nogit) |
38 | GITVER = $(shell git version 2>/dev/null || echo nogit) |
34 | ifeq ($(GITVER),nogit) |
39 | ifeq ($(GITVER),nogit) |
35 | GITURL = http://hjemli.net/git/git/snapshot/?id=v1.5.2-rc2 |
40 | GITURL = http://hjemli.net/git/git/snapshot/?id=v1.5.2-rc2 |
36 | INITGIT = test -e git/git.c || (curl "$(GITURL)" > tmp.zip && unzip tmp.zip) |
41 | INITGIT = test -e git/git.c || (curl "$(GITURL)" > tmp.zip && unzip tmp.zip) |
37 | else |
42 | else |
38 | INITGIT = ./submodules.sh -i |
43 | INITGIT = ./submodules.sh -i |
39 | endif |
44 | endif |
40 | |
45 | |
41 | |
46 | |
|