add ruby to esl
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12098 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
a3a14966b5
commit
2a17b1561c
|
@ -1,5 +1,5 @@
|
|||
LOCAL_CFLAGS=
|
||||
LOCAL_LDFLAGS=
|
||||
LOCAL_LDFLAGS=-lpython2.4
|
||||
|
||||
all: ESL.so
|
||||
|
||||
|
|
|
@ -0,0 +1,24 @@
|
|||
## no idea how to simply ask ruby which one to use
|
||||
LOCAL_CFLAGS=-I/usr/lib64/ruby/1.8/x86_64-linux
|
||||
#LOCAL_CFLAGS=-I/usr/lib/ruby/1.8/i386-linux/
|
||||
LOCAL_LDFLAGS=-lruby
|
||||
|
||||
all: ESL.so
|
||||
|
||||
esl_wrap.cpp:
|
||||
swig -module ESL -ruby -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
|
||||
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue