summaryrefslogtreecommitdiff
path: root/xdelta3/Makefile
diff options
context:
space:
mode:
authorjosh.macdonald <jmacd@users.noreply.github.com>2007-02-08 02:35:49 +0000
committerjosh.macdonald <jmacd@users.noreply.github.com>2007-02-08 02:35:49 +0000
commit24349261eab74a3a2392d38858d143c9270441e2 (patch)
treec86c468bcbd0118144057dc0108df6abd34a59cb /xdelta3/Makefile
parentaf5c96da10b2ce86c975769a3554ad9557bef431 (diff)
Make windows python module work under Cygwin.
Build VC++ release 3.0o
Diffstat (limited to 'xdelta3/Makefile')
-rwxr-xr-xxdelta3/Makefile12
1 files changed, 9 insertions, 3 deletions
diff --git a/xdelta3/Makefile b/xdelta3/Makefile
index 6137966..eb392f1 100755
--- a/xdelta3/Makefile
+++ b/xdelta3/Makefile
@@ -45,6 +45,9 @@ EXTRA = Makefile COPYING linkxd3lib.c badcopy.c xdelta3.swig \
45REL=0o 45REL=0o
46RELDIR = xdelta3$(REL) 46RELDIR = xdelta3$(REL)
47 47
48#SWIGTGT = xdelta3module.so
49SWIGTGT = xdelta3module.dll
50
48SWIG_FLAGS = -DXD3_DEBUG=0 \ 51SWIG_FLAGS = -DXD3_DEBUG=0 \
49 -DXD3_USE_LARGEFILE64=1 \ 52 -DXD3_USE_LARGEFILE64=1 \
50 -DSECONDARY_DJW=1 \ 53 -DSECONDARY_DJW=1 \
@@ -52,13 +55,14 @@ SWIG_FLAGS = -DXD3_DEBUG=0 \
52 -DSWIG_MODULE=1 \ 55 -DSWIG_MODULE=1 \
53 -O3 56 -O3
54 57
55all: xdelta3-debug xdelta3 $(PYTGT) 58all: xdelta3-debug xdelta3 $(PYTGT) $(SWIGTGT)
56 59
57all-targets: $(TARGETS) 60all-targets: $(TARGETS)
58 61
59all-targets-test: all-targets test 62all-targets-test: all-targets test
60 63
61pytgt: $(PYTGT) 64pytgt: $(PYTGT)
65swigtgt: $(SWIGTGT)
62 66
63test: 67test:
64 ./xdelta3-debug test 68 ./xdelta3-debug test
@@ -115,8 +119,10 @@ xdelta3_wrap.o: xdelta3_wrap.c
115 -fpic \ 119 -fpic \
116 -c -g xdelta3_wrap.c 120 -c -g xdelta3_wrap.c
117 121
118xdelta3module.so: xdelta3_wrap.o xdelta3.o 122$(SWIGTGT): xdelta3_wrap.o xdelta3.o
119 ld -shared xdelta3.o xdelta3_wrap.o -o xdelta3module.so /usr/lib/libpython2.4.so -lgcc_s -lc 123# ld -shared xdelta3.o xdelta3_wrap.o -o xdelta3module.so /usr/lib/libpython2.4.so -lgcc_s -lc
124 gcc -shared -Wl,--enable-auto-image-base xdelta3.o xdelta3_wrap.o -L/usr/lib/python2.4/config -lpython2.4 -o xdelta3module.dll
125 cp $(SWIGTGT) /usr/lib/python2.4/site-packages
120 126
121xdelta3-decoder: $(SOURCES) 127xdelta3-decoder: $(SOURCES)
122 $(CC) -O2 -Wall -Wshadow xdelta3.c \ 128 $(CC) -O2 -Wall -Wshadow xdelta3.c \