move applications to use automake

This commit is contained in:
Michael Jerris
2014-02-27 14:16:54 -05:00
parent 07272e864e
commit bcd9f49fbe
234 changed files with 1729 additions and 2421 deletions
@@ -1,22 +1,25 @@
# define these targets in your makefile if you wish
# local_all local_depend local_clean depend_install local_install local_distclean local_extraclean:
include $(top_srcdir)/build/modmake.rulesam
MODNAME=mod_java
# and define these variables to impact your build
mod_LTLIBRARIES = mod_java.la
mod_java_la_SOURCES = mod_java.cpp freeswitch_java.cpp switch_swig_wrap.cpp modjava.c
mod_java_la_CFLAGS = $(AM_CFLAGS)
mod_java_la_LIBADD = $(switch_builddir)/libfreeswitch.la
mod_java_la_LDFLAGS = -avoid-version -module -no-undefined -shared
JAVA_FLAGS=@JAVA_FLAGS@
# Without -fno-strict-aliasing, g++ generates invalid code for Java_org_freeswitch_freeswitchJNI_SWIGJavaSessionUpcast, which segfaults
LOCAL_CFLAGS=$(JAVA_FLAGS) -fno-strict-aliasing -I/usr/lib/jvm/java-gcj/include -I/usr/lib/jvm/java-gcj/include/linux
LOCAL_OBJS=freeswitch_java.o switch_swig_wrap.o modjava.o
mod_java_la_CFLAGS += $(JAVA_FLAGS) -fno-strict-aliasing -I/usr/lib/jvm/java-gcj/include -I/usr/lib/jvm/java-gcj/include/linux
CLASSES=src/org/freeswitch/Launcher.java \
src/org/freeswitch/HangupHook.java \
src/org/freeswitch/DTMFCallback.java \
src/org/freeswitch/FreeswitchScript.java \
src/org/freeswitch/Event.java \
src/org/freeswitch/swig/*
include ../../../../build/modmake.rules
BUILT_SOURCES=classes
local_depend:
classes:
mkdir -p classes
javac -sourcepath src -d classes $(CLASSES)
jar cf freeswitch.jar -C classes org
@@ -25,6 +28,6 @@ reswig:
rm -f switch_swig_wrap.cpp
swig -java -c++ -I../../../include -package org.freeswitch.swig -outdir src/org/freeswitch/swig -o switch_swig_wrap.cpp mod_java.i
local_install:
install:
cp freeswitch.jar $(DESTDIR)@scriptdir@