2
0

Makefile 859 B

12345678910111213141516171819202122232425262728
  1. 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
  2. GCC_WARNING_JUNK=-w
  3. CLASSES=org/freeswitch/esl/*
  4. all: esl.jar
  5. esl_wrap.cpp:
  6. swig3.0 -module esl -java -c++ $(LOCAL_CFLAGS) -package org.freeswitch.esl -outdir org/freeswitch/esl -o esl_wrap.cpp ../ESL.i
  7. esl_wrap.o: esl_wrap.cpp
  8. $(CXX) $(CXX_CFLAGS) $(LOCAL_CFLAGS) $(CXXFLAGS) $(GCC_WARNING_JUNK) $(PERL_INC) -c esl_wrap.cpp -o esl_wrap.o
  9. libesljni.so: esl_wrap.o
  10. $(CXX) $(SOLINK) -o libesljni.so esl_wrap.o $(MYLIB)
  11. esl.jar: libesljni.so
  12. mkdir -p classes
  13. javac -sourcepath org -d classes -source 6 -target 6 $(CLASSES)
  14. jar cf esl.jar -C classes org
  15. clean:
  16. rm -f *.o *.so *~ *.jar
  17. swigclean:
  18. rm -f esl_wrap.*
  19. reswig: swigclean esl_wrap.cpp