2009-02-17 15:13:45 -05:00
|
|
|
LOCAL_CFLAGS=-I/usr/include/python2.4
|
2009-07-16 16:12:55 -04:00
|
|
|
LOCAL_LDFLAGS=-lpython2.4
|
2009-02-17 11:12:48 -05:00
|
|
|
|
2009-02-20 13:07:35 -05:00
|
|
|
all: _ESL.so
|
2009-02-17 11:12:48 -05:00
|
|
|
|
|
|
|
esl_wrap.cpp:
|
2009-03-03 18:00:52 -05:00
|
|
|
swig -module ESL -classic -python -c++ -DMULTIPLICITY -I../src/include -o esl_wrap.cpp ../ESL.i
|
2009-02-17 11:12:48 -05:00
|
|
|
|
|
|
|
esl_wrap.o: esl_wrap.cpp
|
|
|
|
$(CXX) $(CXX_CFLAGS) $(CXXFLAGS) $(LOCAL_CFLAGS) -c esl_wrap.cpp -o esl_wrap.o
|
|
|
|
|
2009-02-20 13:07:35 -05:00
|
|
|
_ESL.so: esl_wrap.o
|
|
|
|
$(CXX) $(SOLINK) esl_wrap.o $(MYLIB) $(LOCAL_LDFLAGS) -o _ESL.so -L. $(LIBS)
|
2009-02-17 11:12:48 -05:00
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f *.o *.so *~
|
|
|
|
|
|
|
|
swigclean:
|
|
|
|
rm -f esl_wrap.* ESL.so
|
|
|
|
|
|
|
|
reswig: swigclean esl_wrap.cpp
|
|
|
|
|