Add "diff-tree" program to show which files have changed between two trees.
[git/mingw.git] / Makefile
blobd09390c00bcb951a49e28d79347d3505a87b4e8e
1 CFLAGS=-g -O3 -Wall
2 CC=gcc
4 PROG= update-cache show-diff init-db write-tree read-tree commit-tree \
5 cat-file fsck-cache checkout-cache diff-tree
7 all: $(PROG)
9 install: $(PROG)
10 install $(PROG) $(HOME)/bin/
12 LIBS= -lssl -lz
14 init-db: init-db.o
16 update-cache: update-cache.o read-cache.o
17 $(CC) $(CFLAGS) -o update-cache update-cache.o read-cache.o $(LIBS)
19 show-diff: show-diff.o read-cache.o
20 $(CC) $(CFLAGS) -o show-diff show-diff.o read-cache.o $(LIBS)
22 write-tree: write-tree.o read-cache.o
23 $(CC) $(CFLAGS) -o write-tree write-tree.o read-cache.o $(LIBS)
25 read-tree: read-tree.o read-cache.o
26 $(CC) $(CFLAGS) -o read-tree read-tree.o read-cache.o $(LIBS)
28 commit-tree: commit-tree.o read-cache.o
29 $(CC) $(CFLAGS) -o commit-tree commit-tree.o read-cache.o $(LIBS)
31 cat-file: cat-file.o read-cache.o
32 $(CC) $(CFLAGS) -o cat-file cat-file.o read-cache.o $(LIBS)
34 fsck-cache: fsck-cache.o read-cache.o
35 $(CC) $(CFLAGS) -o fsck-cache fsck-cache.o read-cache.o $(LIBS)
37 checkout-cache: checkout-cache.o read-cache.o
38 $(CC) $(CFLAGS) -o checkout-cache checkout-cache.o read-cache.o $(LIBS)
40 diff-tree: diff-tree.o read-cache.o
41 $(CC) $(CFLAGS) -o diff-tree diff-tree.o read-cache.o $(LIBS)
43 read-cache.o: cache.h
44 show-diff.o: cache.h
46 clean:
47 rm -f *.o $(PROG) temp_git_file_*
49 backup: clean
50 cd .. ; tar czvf dircache.tar.gz dir-cache