2009-02-17 15:13:45 -05:00
|
|
|
LOCAL_CFLAGS=-I/usr/include/python2.4
|
2009-02-17 11:41:53 -05:00
|
|
|
LOCAL_LDFLAGS=-lpython2.4
|
2009-02-17 11:12:48 -05:00
|
|
|
|
|
|
|
all: ESL.so
|
|
|
|
|
|
|
|
esl_wrap.cpp:
|
2009-02-17 15:13:45 -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
|
|
|
|
|
|
|
|
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
|
|
|
|
|