aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorNicolas Pitre <nico@cam.org>2005-05-19 10:27:14 -0400
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-05-19 08:56:22 -0700
commita310d4349467d78266f38d29e500c77b96ee5bef (patch)
tree33777305e65ea08fcb143ecc2a25f94bc75ee141 /Makefile
parent21949255d1a9c04ed8cba9c54ddac13889b2ea26 (diff)
downloadgit-a310d4349467d78266f38d29e500c77b96ee5bef.tar.gz
git-a310d4349467d78266f38d29e500c77b96ee5bef.tar.xz
[PATCH] Deltification library work by Nicolas Pitre.
This patch adds the basic library functions to create and replay delta information. Also included is a test-delta utility to validate the code. diff-delta was based on LibXDiff written by Davide Libenzi Signed-off-by: Nicolas Pitre <nico@cam.org> Signed-off-by: Davide Libenzi <davidel@xmailserver.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 5 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index cde27275f..272d956d0 100644
--- a/Makefile
+++ b/Makefile
@@ -36,9 +36,9 @@ install: $(PROG) $(SCRIPTS)
$(INSTALL) $(PROG) $(SCRIPTS) $(dest)$(bin)
LIB_OBJS=read-cache.o sha1_file.o usage.o object.o commit.o tree.o blob.o \
- tag.o date.o
+ tag.o date.o diff-delta.o patch-delta.o
LIB_FILE=libgit.a
-LIB_H=cache.h object.h blob.h tree.h commit.h tag.h
+LIB_H=cache.h object.h blob.h tree.h commit.h tag.h delta.h
LIB_H += strbuf.h
LIB_OBJS += strbuf.o
@@ -72,6 +72,9 @@ $(LIB_FILE): $(LIB_OBJS)
test-date: test-date.c date.o
$(CC) $(CFLAGS) -o $@ test-date.c date.o
+test-delta: test-delta.c diff-delta.o patch-delta.o
+ $(CC) $(CFLAGS) -o $@ $^
+
git-%: %.c $(LIB_FILE)
$(CC) $(CFLAGS) -o $@ $(filter %.c,$^) $(LIBS)