blob: ff55c793cd1b19456acaff710aac5deb5ef3e047 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
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
|