2009-02-17 11:02:26 -05:00
|
|
|
LOCAL_CFLAGS=
|
2015-01-20 14:32:36 -05:00
|
|
|
LOCAL_LDFLAGS=$(LUA_LIBS) -lpthread
|
2009-03-11 17:12:29 -04:00
|
|
|
WRAP_GCC_WARNING_SILENCE=-Wno-unused-function
|
2009-02-17 11:02:26 -05:00
|
|
|
|
|
|
|
all: ESL.so
|
|
|
|
|
|
|
|
esl_wrap.cpp:
|
2017-06-27 13:10:04 -04:00
|
|
|
swig3.0 -module ESL -lua -c++ -DMULTIPLICITY -I../src/include -o esl_wrap.cpp ../ESL.i
|
2009-02-17 11:02:26 -05:00
|
|
|
|
|
|
|
esl_wrap.o: esl_wrap.cpp
|
2015-01-20 14:32:36 -05:00
|
|
|
$(CXX) $(CXX_CFLAGS) $(LUA_CFLAGS) $(CXXFLAGS) $(LOCAL_CFLAGS) $(WRAP_GCC_WARNING_SILENCE) -c esl_wrap.cpp -o esl_wrap.o
|
2009-02-17 11:02:26 -05:00
|
|
|
|
|
|
|
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
|
|
|
|
|