Make the cache stat information comparator public.
[git/git.git] / Makefile
CommitLineData
19b2860c 1CFLAGS=-g -O3 -Wall
e83c5163
LT
2CC=gcc
3
7660a188 4PROG=update-cache show-diff init-db write-tree read-tree commit-tree cat-file fsck-cache
e83c5163
LT
5
6all: $(PROG)
7
8install: $(PROG)
9 install $(PROG) $(HOME)/bin/
10
94261677 11LIBS= -lssl -lz
e83c5163
LT
12
13init-db: init-db.o
14
15update-cache: update-cache.o read-cache.o
16 $(CC) $(CFLAGS) -o update-cache update-cache.o read-cache.o $(LIBS)
17
18show-diff: show-diff.o read-cache.o
19 $(CC) $(CFLAGS) -o show-diff show-diff.o read-cache.o $(LIBS)
20
21write-tree: write-tree.o read-cache.o
22 $(CC) $(CFLAGS) -o write-tree write-tree.o read-cache.o $(LIBS)
23
24read-tree: read-tree.o read-cache.o
25 $(CC) $(CFLAGS) -o read-tree read-tree.o read-cache.o $(LIBS)
26
27commit-tree: commit-tree.o read-cache.o
28 $(CC) $(CFLAGS) -o commit-tree commit-tree.o read-cache.o $(LIBS)
29
30cat-file: cat-file.o read-cache.o
31 $(CC) $(CFLAGS) -o cat-file cat-file.o read-cache.o $(LIBS)
32
7660a188
LT
33fsck-cache: fsck-cache.o read-cache.o
34 $(CC) $(CFLAGS) -o fsck-cache fsck-cache.o read-cache.o $(LIBS)
35
e83c5163
LT
36read-cache.o: cache.h
37show-diff.o: cache.h
38
39clean:
40 rm -f *.o $(PROG) temp_git_file_*
41
42backup: clean
43 cd .. ; tar czvf dircache.tar.gz dir-cache