diff options
author | josh.macdonald <jmacd@users.noreply.github.com> | 2007-02-08 02:35:49 +0000 |
---|---|---|
committer | josh.macdonald <jmacd@users.noreply.github.com> | 2007-02-08 02:35:49 +0000 |
commit | 24349261eab74a3a2392d38858d143c9270441e2 (patch) | |
tree | c86c468bcbd0118144057dc0108df6abd34a59cb /xdelta3/Makefile | |
parent | af5c96da10b2ce86c975769a3554ad9557bef431 (diff) |
Make windows python module work under Cygwin.
Build VC++ release 3.0o
Diffstat (limited to 'xdelta3/Makefile')
-rwxr-xr-x | xdelta3/Makefile | 12 |
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 \ | |||
45 | REL=0o | 45 | REL=0o |
46 | RELDIR = xdelta3$(REL) | 46 | RELDIR = xdelta3$(REL) |
47 | 47 | ||
48 | #SWIGTGT = xdelta3module.so | ||
49 | SWIGTGT = xdelta3module.dll | ||
50 | |||
48 | SWIG_FLAGS = -DXD3_DEBUG=0 \ | 51 | SWIG_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 | ||
55 | all: xdelta3-debug xdelta3 $(PYTGT) | 58 | all: xdelta3-debug xdelta3 $(PYTGT) $(SWIGTGT) |
56 | 59 | ||
57 | all-targets: $(TARGETS) | 60 | all-targets: $(TARGETS) |
58 | 61 | ||
59 | all-targets-test: all-targets test | 62 | all-targets-test: all-targets test |
60 | 63 | ||
61 | pytgt: $(PYTGT) | 64 | pytgt: $(PYTGT) |
65 | swigtgt: $(SWIGTGT) | ||
62 | 66 | ||
63 | test: | 67 | test: |
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 | ||
118 | xdelta3module.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 | ||
121 | xdelta3-decoder: $(SOURCES) | 127 | xdelta3-decoder: $(SOURCES) |
122 | $(CC) -O2 -Wall -Wshadow xdelta3.c \ | 128 | $(CC) -O2 -Wall -Wshadow xdelta3.c \ |