Unidiff1 files changed, 5 insertions, 0 deletions
|
diff --git a/Makefile b/Makefile index 6abd82a..dbc34a2 100644 --- a/ Makefile+++ b/ Makefile |
|
@@ -10,24 +10,29 @@ GIT_URL = http://www.kernel.org/pub/software/scm/git/git-$(GIT_VER).tar.bz2 |
10 | # |
10 | # |
11 | # Let the user override the above settings. |
11 | # Let the user override the above settings. |
12 | # |
12 | # |
13 | -include cgit.conf |
13 | -include cgit.conf |
14 | |
14 | |
15 | |
15 | |
16 | EXTLIBS = git/libgit.a git/xdiff/lib.a -lz -lcrypto |
16 | EXTLIBS = git/libgit.a git/xdiff/lib.a -lz -lcrypto |
17 | OBJECTS = shared.o cache.o parsing.o html.o ui-shared.o ui-repolist.o \ |
17 | OBJECTS = shared.o cache.o parsing.o html.o ui-shared.o ui-repolist.o \ |
18 | ui-summary.o ui-log.o ui-tree.o ui-commit.o ui-diff.o \ |
18 | ui-summary.o ui-log.o ui-tree.o ui-commit.o ui-diff.o \ |
19 | ui-snapshot.o ui-blob.o ui-tag.o ui-refs.o |
19 | ui-snapshot.o ui-blob.o ui-tag.o ui-refs.o |
20 | |
20 | |
21 | |
21 | |
| |
22 | ifdef NEEDS_LIBICONV |
| |
23 | EXTLIBS += -liconv |
| |
24 | endif |
| |
25 | |
| |
26 | |
22 | .PHONY: all git install clean distclean force-version get-git |
27 | .PHONY: all git install clean distclean force-version get-git |
23 | |
28 | |
24 | all: cgit git |
29 | all: cgit git |
25 | |
30 | |
26 | VERSION: force-version |
31 | VERSION: force-version |
27 | @./gen-version.sh "$(CGIT_VERSION)" |
32 | @./gen-version.sh "$(CGIT_VERSION)" |
28 | -include VERSION |
33 | -include VERSION |
29 | |
34 | |
30 | |
35 | |
31 | CFLAGS += -g -Wall -Igit |
36 | CFLAGS += -g -Wall -Igit |
32 | CFLAGS += -DSHA1_HEADER='$(SHA1_HEADER)' |
37 | CFLAGS += -DSHA1_HEADER='$(SHA1_HEADER)' |
33 | CFLAGS += -DCGIT_VERSION='"$(CGIT_VERSION)"' |
38 | CFLAGS += -DCGIT_VERSION='"$(CGIT_VERSION)"' |
|