Add new fsck-cache to Makefile.
[git/repo.git] / Makefile
blob99ff6d6d6ff54826fa4e3d05d56a9f28a817fa9e
1 CFLAGS=-g -O3 -Wall
2 CC=gcc
4 PROG=update-cache show-diff init-db write-tree read-tree commit-tree cat-file fsck-cache
6 all: $(PROG)
8 install: $(PROG)
9 install $(PROG) $(HOME)/bin/
11 LIBS= -lssl
13 init-db: init-db.o
15 update-cache: update-cache.o read-cache.o
16 $(CC) $(CFLAGS) -o update-cache update-cache.o read-cache.o $(LIBS)
18 show-diff: show-diff.o read-cache.o
19 $(CC) $(CFLAGS) -o show-diff show-diff.o read-cache.o $(LIBS)
21 write-tree: write-tree.o read-cache.o
22 $(CC) $(CFLAGS) -o write-tree write-tree.o read-cache.o $(LIBS)
24 read-tree: read-tree.o read-cache.o
25 $(CC) $(CFLAGS) -o read-tree read-tree.o read-cache.o $(LIBS)
27 commit-tree: commit-tree.o read-cache.o
28 $(CC) $(CFLAGS) -o commit-tree commit-tree.o read-cache.o $(LIBS)
30 cat-file: cat-file.o read-cache.o
31 $(CC) $(CFLAGS) -o cat-file cat-file.o read-cache.o $(LIBS)
33 fsck-cache: fsck-cache.o read-cache.o
34 $(CC) $(CFLAGS) -o fsck-cache fsck-cache.o read-cache.o $(LIBS)
36 read-cache.o: cache.h
37 show-diff.o: cache.h
39 clean:
40 rm -f *.o $(PROG) temp_git_file_*
42 backup: clean
43 cd .. ; tar czvf dircache.tar.gz dir-cache