diff options
Diffstat (limited to 'xdelta3/Makefile')
-rwxr-xr-x | xdelta3/Makefile | 49 |
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 |
2 | PYTHON = python | 2 | # Copyright (C) 2001, 2003, 2004, 2005, 2006. Joshua P. MacDonald |
3 | PYTGT = build/temp.linux-i686-2.3/xdelta3.so | 3 | |
4 | 4 | SOURCES = xdelta3-cfgs.h \ | |
5 | TARGETS = 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 | |||
16 | TARGETS = 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 | ||
13 | SOURCES = xdelta3.c xdelta3.h xdelta3-fgk.h xdelta3-djw.h xdelta3-list.h xdelta3-test.h \ | 24 | PYTHON = python |
14 | xdelta3-main.h xdelta3-cfgs.h xdelta3-second.h xdelta3-python.h | 25 | PYTGT = build/temp.linux-i686-2.3/xdelta3.so |
15 | 26 | ||
16 | PYFILES = xdelta3-regtest.py setup.py | 27 | PYFILES = xdelta3-regtest.py setup.py |
17 | 28 | ||
18 | EXTRA = Makefile COPYING linkxd3lib.c badcopy.c www RELEASE.NOTES | 29 | EXTRA = Makefile COPYING linkxd3lib.c badcopy.c www |
19 | 30 | ||
20 | REL = 0f | 31 | # $Format: "REL=$Xdelta3Version$" $ |
32 | REL=0g | ||
21 | RELDIR = xdelta3$(REL) | 33 | RELDIR = xdelta3$(REL) |
22 | 34 | ||
23 | all: $(TARGETS) | 35 | all: xdelta3 |
36 | |||
37 | all-targets: $(TARGETS) | ||
24 | 38 | ||
25 | tar: | 39 | tar: |
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 | ||
34 | clean: | 48 | clean: |
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 | ||
40 | xdelta3: $(SOURCES) | 54 | xdelta3: $(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 | |||
63 | xdelta3-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 | ||
44 | xdelta3-2: $(SOURCES) | 67 | xdelta3-2: $(SOURCES) |