1 # -DCOLLISION_CHECK if you believe that SHA1's
2 # 1461501637330902918203684832716283019655932542976 hashes do not give you
3 # enough guarantees about no collisions between objects ever hapenning.
5 # -DNSEC if you want git to care about sub-second file mtimes and ctimes.
6 # Note that you need some new glibc (at least >2.2.4) for this, and it will
7 # BREAK YOUR LOCAL DIFFS! show-diff and anything using it will likely randomly
8 # break unless your underlying filesystem supports those sub-second times
15 SCRIPTS=git-merge-one-file-script git-prune-script git-pull-script git-tag-script
17 PROG= update-cache show-diff init-db write-tree read-tree commit-tree \
18 cat-file fsck-cache checkout-cache diff-tree rev-tree show-files \
19 check-files ls-tree merge-base merge-cache unpack-file git-export \
20 diff-cache convert-cache http-pull rpush rpull rev-list git-mktag
24 install: $(PROG) $(SCRIPTS)
25 install $(PROG) $(SCRIPTS) $(HOME)/bin/
27 LIB_OBJS=read-cache.o sha1_file.o usage.o object.o commit.o tree.o blob.o
29 LIB_H=cache.h object.h
38 SHA1_HEADER="mozilla-sha1/sha1.h"
39 LIB_OBJS += mozilla-sha1/sha1.o
42 SHA1_HEADER="ppc/sha1.h"
43 LIB_OBJS += ppc/sha1.o ppc/sha1ppc.o
45 SHA1_HEADER=<openssl/sha.h>
50 CFLAGS += '-DSHA1_HEADER=$(SHA1_HEADER)'
52 $(LIB_FILE): $(LIB_OBJS)
53 $(AR) rcs $@ $(LIB_OBJS)
58 $(CC) $(CFLAGS) -o $@ $(filter %.c,$^) $(LIBS)
64 http-pull: LIBS += -lcurl
68 check-files.o: $(LIB_H)
69 checkout-cache.o: $(LIB_H)
71 commit-tree.o: $(LIB_H)
72 convert-cache.o: $(LIB_H)
74 diff-cache.o: $(LIB_H)
76 fsck-cache.o: $(LIB_H)
77 git-export.o: $(LIB_H)
80 merge-base.o: $(LIB_H)
81 merge-cache.o: $(LIB_H)
83 read-cache.o: $(LIB_H)
88 show-files.o: $(LIB_H)
90 update-cache.o: $(LIB_H)
92 unpack-file.o: $(LIB_H)
93 write-tree.o: $(LIB_H)
99 rm -f *.o mozilla-sha1/*.o ppc/*.o $(PROG) $(LIB_FILE)
102 cd .. ; tar czvf dircache.tar.gz dir-cache