2011-02-16 14:35:56 -05:00
|
|
|
LOCAL_CFLAGS=-I../src/include -I/usr/java/jdk1.6.0_14/include -I/usr/java/jdk1.6.0_14/include/linux -I/usr/lib/jvm/java-6-openjdk/include/ -I/usr/lib/jvm/java/include -I/usr/lib/jvm/java/include/linux
|
2009-06-25 12:02:37 -04:00
|
|
|
GCC_WARNING_JUNK=-w
|
|
|
|
CLASSES=org/freeswitch/esl/*
|
|
|
|
|
|
|
|
all: esl.jar
|
|
|
|
|
|
|
|
esl_wrap.cpp:
|
|
|
|
swig -module esl -java -c++ $(LOCAL_CFLAGS) -package org.freeswitch.esl -outdir org/freeswitch/esl -o esl_wrap.cpp ../ESL.i
|
|
|
|
|
|
|
|
esl_wrap.o: esl_wrap.cpp
|
|
|
|
$(CXX) $(CXX_CFLAGS) $(LOCAL_CFLAGS) $(CXXFLAGS) $(GCC_WARNING_JUNK) $(PERL_INC) -c esl_wrap.cpp -o esl_wrap.o
|
|
|
|
|
2009-12-28 14:19:19 -05:00
|
|
|
libesljni.so: esl_wrap.o
|
|
|
|
$(CXX) $(SOLINK) -o libesljni.so esl_wrap.o $(MYLIB)
|
|
|
|
|
|
|
|
esl.jar: libesljni.so
|
2009-06-25 12:02:37 -04:00
|
|
|
mkdir -p classes
|
|
|
|
javac -sourcepath org -d classes $(CLASSES)
|
|
|
|
jar cf esl.jar -C classes org
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f *.o *.so *~ *.jar
|
|
|
|
|
|
|
|
swigclean:
|
|
|
|
rm -f esl_wrap.*
|
|
|
|
|
|
|
|
reswig: swigclean esl_wrap.cpp
|
|
|
|
|