aboutsummaryrefslogtreecommitdiffstats
path: root/wrappers/swig/Makefile
diff options
context:
space:
mode:
authorlloyd <[email protected]>2008-09-29 20:17:08 +0000
committerlloyd <[email protected]>2008-09-29 20:17:08 +0000
commit7c0319368d1948d54db514e5f72c589a397e2909 (patch)
tree2d52b6dd8715a6ea0fc21b3a66673fb38a8d4ebb /wrappers/swig/Makefile
parent0f2dfff90fe3882a85308d66a05803178a452023 (diff)
Remove the misc dir:
Moved XS, Boost Python, and SWIG wrappers to new toplevel directory 'wrappers' Moved NIST X.509 test suite into checks directory Move the build information used by configure.pl to src/build-data Move scripts directory to doc (for lack of a better spot)
Diffstat (limited to 'wrappers/swig/Makefile')
-rw-r--r--wrappers/swig/Makefile32
1 files changed, 32 insertions, 0 deletions
diff --git a/wrappers/swig/Makefile b/wrappers/swig/Makefile
new file mode 100644
index 000000000..ff55c793c
--- /dev/null
+++ b/wrappers/swig/Makefile
@@ -0,0 +1,32 @@
+LANG=-python
+LANG_INC=/usr/include/python2.3
+
+CFLAGS=$(shell botan-config --cflags)
+LIBS=$(shell botan-config --libs)
+
+CXX = g++ -g
+SWIG = swig -Wall
+
+all: _botan.so
+
+_botan.so: base.o pipe.o filter.o botan_wrap.o
+ $(CXX) -shared $^ $(LIBS) -o $@
+
+botan_wrap.cpp: botan.swg base.h
+ $(SWIG) $(LANG) -c++ -o $@ $<
+
+botan_wrap.o: botan_wrap.cpp
+ $(CXX) $(CFLAGS) -I$(LANG_INC) -c $^ -o $@
+
+base.o: base.cpp base.h
+ $(CXX) $(CFLAGS) -c $< -o $@
+
+pipe.o: pipe.cpp base.h
+ $(CXX) $(CFLAGS) -c $< -o $@
+
+filter.o: filter.cpp base.h
+ $(CXX) $(CFLAGS) -c $< -o $@
+
+clean:
+ rm -f *.o _botan.so botan.py botan.pyc
+ rm -f *_wrap.o *_wrap.cpp