forked from Mirrors/freeswitch
75c545d97a
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@13950 d0543943-73ff-0310-b7d9-9358b9ac24b2
26 lines
653 B
Makefile
26 lines
653 B
Makefile
LOCAL_CFLAGS=-I../src/include -I/usr/java/jdk1.6.0_14/include -I/usr/java/jdk1.6.0_14/include/linux
|
|
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
|
|
|
|
esl.jar: esl_wrap.o
|
|
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
|
|
|