2010-02-16 07:44:02 +00:00
|
|
|
LOCAL_CFLAGS=`python ./python-config --includes`
|
|
|
|
LOCAL_LDFLAGS=`python ./python-config --ldflags`
|
2009-02-17 16:12:48 +00:00
|
|
|
|
2009-02-20 18:07:35 +00:00
|
|
|
all: _ESL.so
|
2009-02-17 16:12:48 +00:00
|
|
|
|
|
|
|
esl_wrap.cpp:
|
2010-02-16 07:01:38 +00:00
|
|
|
swig -module ESL -classic -python -c++ -DMULTIPLICITY -threads -I../src/include -o esl_wrap.cpp ../ESL.i
|
2009-02-17 16:12:48 +00:00
|
|
|
|
|
|
|
esl_wrap.o: esl_wrap.cpp
|
|
|
|
$(CXX) $(CXX_CFLAGS) $(CXXFLAGS) $(LOCAL_CFLAGS) -c esl_wrap.cpp -o esl_wrap.o
|
|
|
|
|
2009-02-20 18:07:35 +00:00
|
|
|
_ESL.so: esl_wrap.o
|
|
|
|
$(CXX) $(SOLINK) esl_wrap.o $(MYLIB) $(LOCAL_LDFLAGS) -o _ESL.so -L. $(LIBS)
|
2009-02-17 16:12:48 +00:00
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f *.o *.so *~
|
|
|
|
|
|
|
|
swigclean:
|
|
|
|
rm -f esl_wrap.* ESL.so
|
|
|
|
|
|
|
|
reswig: swigclean esl_wrap.cpp
|
|
|
|
|