forked from Mirrors/freeswitch
e693a98ccc
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@14277 d0543943-73ff-0310-b7d9-9358b9ac24b2
23 lines
492 B
Makefile
23 lines
492 B
Makefile
LOCAL_CFLAGS=-I/usr/include/python2.4
|
|
LOCAL_LDFLAGS=-lpython2.4
|
|
|
|
all: _ESL.so
|
|
|
|
esl_wrap.cpp:
|
|
swig -module ESL -classic -python -c++ -DMULTIPLICITY -I../src/include -o esl_wrap.cpp ../ESL.i
|
|
|
|
esl_wrap.o: esl_wrap.cpp
|
|
$(CXX) $(CXX_CFLAGS) $(CXXFLAGS) $(LOCAL_CFLAGS) -c esl_wrap.cpp -o esl_wrap.o
|
|
|
|
_ESL.so: esl_wrap.o
|
|
$(CXX) $(SOLINK) esl_wrap.o $(MYLIB) $(LOCAL_LDFLAGS) -o _ESL.so -L. $(LIBS)
|
|
|
|
clean:
|
|
rm -f *.o *.so *~
|
|
|
|
swigclean:
|
|
rm -f esl_wrap.* ESL.so
|
|
|
|
reswig: swigclean esl_wrap.cpp
|
|
|