mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-11-14 21:38:34 +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,7 +1,9 @@
|
||||
include $(top_srcdir)/build/modmake.rulesam
|
||||
MODNAME=mod_shout
|
||||
|
||||
LAME=lame-3.98.4
|
||||
SHOUT=libshout-2.2.2
|
||||
MPG123=mpg123-1.13.2
|
||||
BASE=../../../..
|
||||
|
||||
LAME_DIR=$(switch_srcdir)/libs/$(LAME)
|
||||
SHOUT_DIR=$(switch_srcdir)/libs/$(SHOUT)
|
||||
@@ -15,13 +17,14 @@ LAMELA=$(LAME_BUILDDIR)/libmp3lame/libmp3lame.la
|
||||
SHOUTLA=$(SHOUT_BUILDDIR)/src/libshout.la
|
||||
MPG123LA=$(MPG123_BUILDDIR)/src/libmpg123/libmpg123.la
|
||||
|
||||
LOCAL_CFLAGS=-I$(SHOUT_DIR)/include -I$(LAME_DIR)/include -I$(MPG123_DIR)/src -I$(MPG123_BUILDDIR)/src -I$(SHOUT_BUILDDIR)/include
|
||||
LOCAL_LIBADD=$(LAMELA) $(SHOUTLA) $(MPG123LA)
|
||||
LOCAL_LDFLAGS=`cat $(SHOUT_BUILDDIR)/Makefile | grep SPEEX_LIBS | sed -e 's|^SPEEX_LIBS =||'` `cat $(SHOUTLA) | grep dependency_libs | sed -e 's|^dependency_libs=||' | sed -e "s|'||g"`
|
||||
mod_LTLIBRARIES = mod_shout.la
|
||||
mod_shout_la_SOURCES = mod_shout.c
|
||||
mod_shout_la_CFLAGS = $(AM_CFLAGS)
|
||||
mod_shout_la_CFLAGS += -I$(SHOUT_DIR)/include -I$(LAME_DIR)/include -I$(MPG123_DIR)/src -I$(MPG123_BUILDDIR)/src -I$(SHOUT_BUILDDIR)/include
|
||||
mod_shout_la_LIBADD = $(switch_builddir)/libfreeswitch.la $(LAMELA) $(SHOUTLA) $(MPG123LA)
|
||||
mod_shout_la_LDFLAGS = -avoid-version -module -no-undefined -shared `cat $(SHOUT_BUILDDIR)/Makefile | grep SPEEX_LIBS | sed -e 's|^SPEEX_LIBS =||'` `cat $(SHOUTLA) | grep dependency_libs | sed -e 's|^dependency_libs=||' | sed -e "s|'||g"`
|
||||
|
||||
include $(BASE)/build/modmake.rules
|
||||
|
||||
$(MODNAME).lo: $(LOCAL_LIBADD)
|
||||
BUILT_SOURCES=$(LAMELA) $(SHOUTLA) $(MPG123LA)
|
||||
|
||||
$(MPG123_DIR):
|
||||
$(GETLIB) $(MPG123).tar.gz
|
||||
@@ -60,5 +63,3 @@ $(SHOUTLA): $(SHOUT_BUILDDIR)/Makefile
|
||||
cd $(SHOUT_BUILDDIR) && $(MAKE)
|
||||
$(TOUCH_TARGET)
|
||||
|
||||
|
||||
|
||||
@@ -32,8 +32,8 @@
|
||||
* example filename: shout://user:pass@host.com/mount.mp3
|
||||
*
|
||||
*/
|
||||
#include "libmpg123/mpg123.h"
|
||||
#include <switch.h>
|
||||
#include "libmpg123/mpg123.h"
|
||||
#include <shout/shout.h>
|
||||
#include <lame.h>
|
||||
#include <switch_curl.h>
|
||||
|
||||
Reference in new issue
Block a user