mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-08-13 01:26:58 +00:00
pelims for java esl (needs work any voulenteers?)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@13950 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
25
libs/esl/java/Makefile
Normal file
25
libs/esl/java/Makefile
Normal file
@@ -0,0 +1,25 @@
|
||||
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
|
||||
|
Reference in New Issue
Block a user