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
16 PROG
= update-cache show-diff init-db write-tree read-tree commit-tree \
17 cat-file fsck-cache checkout-cache diff-tree rev-tree show-files \
18 check-files ls-tree merge-base merge-cache unpack-file git-export \
19 diff-cache convert-cache
24 install $(PROG
) $(HOME
)/bin
/
26 LIB_OBJS
=read-cache.o sha1_file.o usage.o object.o commit.o tree.o blob.o
28 LIB_H
=cache.h object.h
30 $(LIB_FILE
): $(LIB_OBJS
)
31 $(AR
) rcs
$@
$(LIB_OBJS
)
33 LIBS
= $(LIB_FILE
) -lssl
-lz
37 fsck-cache
: fsck-cache.o
$(LIB_FILE
) object.o commit.o tree.o blob.o
38 $(CC
) $(CFLAGS
) -o fsck-cache fsck-cache.o
$(LIBS
)
40 rev-tree
: rev-tree.o
$(LIB_FILE
) object.o commit.o tree.o blob.o
41 $(CC
) $(CFLAGS
) -o rev-tree rev-tree.o
$(LIBS
)
43 merge-base
: merge-base.o
$(LIB_FILE
) object.o commit.o tree.o blob.o
44 $(CC
) $(CFLAGS
) -o merge-base merge-base.o
$(LIBS
)
47 $(CC
) $(CFLAGS
) -o
$@
$< $(LIBS
)
51 check-files.o
: $(LIB_H
)
52 checkout-cache.o
: $(LIB_H
)
54 commit-tree.o
: $(LIB_H
)
55 convert-cache.o
: $(LIB_H
)
56 diff-cache.o
: $(LIB_H
)
58 fsck-cache.o
: $(LIB_H
)
59 git-export.o
: $(LIB_H
)
62 merge-base.o
: $(LIB_H
)
63 merge-cache.o
: $(LIB_H
)
65 read-cache.o
: $(LIB_H
)
70 show-files.o
: $(LIB_H
)
72 update-cache.o
: $(LIB_H
)
74 unpack-file.o
: $(LIB_H
)
75 write-tree.o
: $(LIB_H
)
78 rm -f
*.o
$(PROG
) $(LIB_FILE
)
81 cd ..
; tar czvf dircache.
tar.gz dir-cache