summaryrefslogtreecommitdiffabout
authorLars Hjemli <hjemli@gmail.com>2008-03-24 19:49:41 (UTC)
committer Lars Hjemli <hjemli@gmail.com>2008-03-24 22:16:30 (UTC)
commit271818693d6803b5df25ee87570808c2a9dbd7e7 (patch) (unidiff)
treeb7dae11111bbbc857abe36934eff5ec1a202913e
parent163037e79c6cde1073d555dbeae2a095298e6101 (diff)
downloadcgit-271818693d6803b5df25ee87570808c2a9dbd7e7.zip
cgit-271818693d6803b5df25ee87570808c2a9dbd7e7.tar.gz
cgit-271818693d6803b5df25ee87570808c2a9dbd7e7.tar.bz2
Initial Makefile cleanup
Sort the list of object files to improve readability/mergeability and remove manual dependency information which will soon be generated automatically. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--Makefile29
1 files changed, 22 insertions, 7 deletions
diff --git a/Makefile b/Makefile
index d9ff7d8..d1950cb 100644
--- a/Makefile
+++ b/Makefile
@@ -15,8 +15,23 @@ GIT_URL = http://www.kernel.org/pub/software/scm/git/git-$(GIT_VER).tar.bz2
15 15
16EXTLIBS = git/libgit.a git/xdiff/lib.a -lz -lcrypto 16EXTLIBS = git/libgit.a git/xdiff/lib.a -lz -lcrypto
17OBJECTS = shared.o cache.o parsing.o html.o ui-shared.o ui-repolist.o \ 17OBJECTS =
18 ui-summary.o ui-log.o ui-tree.o ui-commit.o ui-diff.o \ 18OBJECTS += cache.o
19 ui-snapshot.o ui-blob.o ui-tag.o ui-refs.o ui-patch.o cmd.o 19OBJECTS += cgit.o
20 20OBJECTS += cmd.o
21OBJECTS += html.o
22OBJECTS += parsing.o
23OBJECTS += shared.o
24OBJECTS += ui-blob.o
25OBJECTS += ui-commit.o
26OBJECTS += ui-diff.o
27OBJECTS += ui-log.o
28OBJECTS += ui-patch.o
29OBJECTS += ui-refs.o
30OBJECTS += ui-repolist.o
31OBJECTS += ui-shared.o
32OBJECTS += ui-snapshot.o
33OBJECTS += ui-summary.o
34OBJECTS += ui-tag.o
35OBJECTS += ui-tree.o
21 36
22ifdef NEEDS_LIBICONV 37ifdef NEEDS_LIBICONV
@@ -42,8 +57,8 @@ CFLAGS += -DCGIT_CACHE_ROOT='"$(CACHE_ROOT)"'
42 57
43 58
44cgit: cgit.c $(OBJECTS) 59cgit: $(OBJECTS)
45 $(CC) $(CFLAGS) cgit.c -o cgit $(OBJECTS) $(EXTLIBS) 60 $(CC) $(CFLAGS) -o cgit $(OBJECTS) $(EXTLIBS)
46 61
47$(OBJECTS): cgit.h git/xdiff/lib.a git/libgit.a VERSION 62$(OBJECTS): git/xdiff/lib.a git/libgit.a VERSION
48 63
49git/xdiff/lib.a: | git 64git/xdiff/lib.a: | git