summaryrefslogtreecommitdiff
path: root/xdelta3/Makefile
diff options
context:
space:
mode:
authordotdotisdead <dotdotisdead@a3eca27d-f21b-0410-9b4a-6511e771f64e>2006-09-24 08:11:09 +0000
committerdotdotisdead <dotdotisdead@a3eca27d-f21b-0410-9b4a-6511e771f64e>2006-09-24 08:11:09 +0000
commit485d0b54d205a6f91e4dba20b34c9e936646e04f (patch)
tree0f6c5af64622fc05168e0385ceb9f3d140f21e53 /xdelta3/Makefile
parent2da26b218611968ec42e6b500e825dcf46c64b3c (diff)
Cleanups for release 3.0g.
Diffstat (limited to 'xdelta3/Makefile')
-rwxr-xr-xxdelta3/Makefile49
1 files changed, 36 insertions, 13 deletions
diff --git a/xdelta3/Makefile b/xdelta3/Makefile
index 6cac09e..34437e9 100755
--- a/xdelta3/Makefile
+++ b/xdelta3/Makefile
@@ -1,8 +1,19 @@
1## 1# xdelta 3 - delta compression tools and library
2PYTHON = python 2# Copyright (C) 2001, 2003, 2004, 2005, 2006. Joshua P. MacDonald
3PYTGT = build/temp.linux-i686-2.3/xdelta3.so 3
4 4SOURCES = xdelta3-cfgs.h \
5TARGETS = xdelta3 xdelta3-2 xdelta3-64 xdelta3-everything \ 5 xdelta3-decode.h \
6 xdelta3-djw.h \
7 xdelta3-fgk.h \
8 xdelta3-list.h \
9 xdelta3-main.h \
10 xdelta3-python.h \
11 xdelta3-second.h \
12 xdelta3-test.h \
13 xdelta3.c \
14 xdelta3.h
15
16TARGETS = xdelta3 xdelta3-1 xdelta3-2 xdelta3-64 xdelta3-everything \
6 xdelta3-Opg xdelta3-64-O xdelta3-Op xdelta3-O \ 17 xdelta3-Opg xdelta3-64-O xdelta3-Op xdelta3-O \
7 xdelta3-decoder xdelta3-decoder-nomain.o \ 18 xdelta3-decoder xdelta3-decoder-nomain.o \
8 $(PYTGT) \ 19 $(PYTGT) \
@@ -10,20 +21,23 @@ TARGETS = xdelta3 xdelta3-2 xdelta3-64 xdelta3-everything \
10 xdelta3-noext xdelta3-tools xdelta3-tune \ 21 xdelta3-noext xdelta3-tools xdelta3-tune \
11 xdelta3-notools 22 xdelta3-notools
12 23
13SOURCES = xdelta3.c xdelta3.h xdelta3-fgk.h xdelta3-djw.h xdelta3-list.h xdelta3-test.h \ 24PYTHON = python
14 xdelta3-main.h xdelta3-cfgs.h xdelta3-second.h xdelta3-python.h 25PYTGT = build/temp.linux-i686-2.3/xdelta3.so
15 26
16PYFILES = xdelta3-regtest.py setup.py 27PYFILES = xdelta3-regtest.py setup.py
17 28
18EXTRA = Makefile COPYING linkxd3lib.c badcopy.c www RELEASE.NOTES 29EXTRA = Makefile COPYING linkxd3lib.c badcopy.c www
19 30
20REL = 0f 31# $Format: "REL=$Xdelta3Version$" $
32REL=0g
21RELDIR = xdelta3$(REL) 33RELDIR = xdelta3$(REL)
22 34
23all: $(TARGETS) 35all: xdelta3
36
37all-targets: $(TARGETS)
24 38
25tar: 39tar:
26 tar -czf /tmp/$(RELDIR)-tmp.tar.gz $(SOURCES) $(PYFILES) $(EXTRA) 40 tar --exclude ".svn" -czf /tmp/$(RELDIR)-tmp.tar.gz $(SOURCES) $(PYFILES) $(EXTRA)
27 rm -rf /tmp/$(RELDIR) 41 rm -rf /tmp/$(RELDIR)
28 mkdir /tmp/$(RELDIR) 42 mkdir /tmp/$(RELDIR)
29 (cd /tmp/$(RELDIR) && tar -xzf ../$(RELDIR)-tmp.tar.gz) 43 (cd /tmp/$(RELDIR) && tar -xzf ../$(RELDIR)-tmp.tar.gz)
@@ -32,13 +46,22 @@ tar:
32 rm -rf /tmp/$(RELDIR) 46 rm -rf /tmp/$(RELDIR)
33 47
34clean: 48clean:
35 rm -f $(TARGETS) xdtest.* core *.flc 49 rm -f $(TARGETS)
36 50
37$(PYTGT): $(SOURCES) 51$(PYTGT): $(SOURCES)
38 $(PYTHON) setup.py install --compile --force 52 $(PYTHON) setup.py install --compile --force
39 53
40xdelta3: $(SOURCES) 54xdelta3: $(SOURCES)
41 $(CC) -g -Wall -Wshadow xdelta3.c -o xdelta3 -DXD3_MAIN=1 -DGENERIC_ENCODE_TABLES=1 \ 55 $(CC) -O3 -Wall -Wshadow xdelta3.c -lm -o xdelta3 \
56 -DXD3_DEBUG=0 \
57 -DXD3_USE_LARGEFILE64=1 \
58 -DREGRESSION_TEST=1 \
59 -DSECONDARY_DJW=1 \
60 -DXD3_MAIN=1 \
61 -DXD3_POSIX=1
62
63xdelta3-1: $(SOURCES)
64 $(CC) -g -Wall -Wshadow xdelta3.c -o xdelta3-1 -DXD3_MAIN=1 -DGENERIC_ENCODE_TABLES=1 \
42 -DXD3_USE_LARGEFILE64=1 -DREGRESSION_TEST=1 -DXD3_DEBUG=1 -DSECONDARY_DJW=1 -lm 65 -DXD3_USE_LARGEFILE64=1 -DREGRESSION_TEST=1 -DXD3_DEBUG=1 -DSECONDARY_DJW=1 -lm
43 66
44xdelta3-2: $(SOURCES) 67xdelta3-2: $(SOURCES)