mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-10-29 22:54:18 +00:00
move applications to use automake
This commit is contained in:
1 parent
07272e864e
commit
bcd9f49fbe
234 files changed
+1729
-2421
No files matched your search
@@ -1,11 +0,0 @@
|
||||
BASE=../../../..
|
||||
|
||||
AMR_DIR=$(switch_srcdir)/libs/amr
|
||||
AMR_BUILDDIR=$(switch_builddir)/libs/amr
|
||||
AMR_A=$(AMR_BUILDDIR)/libamr.a
|
||||
|
||||
LOCAL_INSERT_CFLAGS=if test -d $(AMR_DIR); then echo "-I$(AMR_DIR)" ; else echo "-DAMR_PASSTHROUGH" ; fi ;
|
||||
LOCAL_INSERT_LDFLAGS=test ! -d $(AMR_DIR) || echo "$(AMR_A)";
|
||||
|
||||
|
||||
include $(BASE)/build/modmake.rules
|
||||
@@ -0,0 +1,21 @@
|
||||
include $(top_srcdir)/build/modmake.rulesam
|
||||
MODNAME=mod_amr
|
||||
|
||||
AMR_DIR=$(switch_srcdir)/libs/amr
|
||||
AMR_BUILDDIR=$(switch_builddir)/libs/amr
|
||||
AMR_A=$(AMR_BUILDDIR)/libamr.a
|
||||
|
||||
mod_LTLIBRARIES = mod_amr.la
|
||||
mod_amr_la_SOURCES = mod_amr.c
|
||||
mod_amr_la_CFLAGS = $(AM_CFLAGS)
|
||||
mod_amr_la_LIBADD = $(switch_builddir)/libfreeswitch.la
|
||||
mod_amr_la_LDFLAGS = -avoid-version -module -no-undefined -shared
|
||||
|
||||
if HAVE_AMR
|
||||
BUILT_SOURCES= $(AMR_A)
|
||||
mod_amr_la_CFLAGS += -I$(AMR_DIR)
|
||||
mod_amr_la_LIBADD += $(AMR_A)
|
||||
else
|
||||
mod_amr_la_CFLAGS += -DAMR_PASSTHROUGH
|
||||
endif
|
||||
|
||||
Reference in new issue
Block a user