mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-16 08:49:01 +00:00
cleanup Makefile.am based module Makefiles
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@15811 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
97309a5e71
commit
4b095aebcb
11
build/modmake.rulesam
Normal file
11
build/modmake.rulesam
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
AM_CFLAGS = $(SWITCH_AM_CFLAGS) $(SWITCH_ANSI_CFLAGS)
|
||||||
|
AM_CPPFLAGS = $(SWITCH_AM_CXXFLAGS)
|
||||||
|
AM_LDFLAGS = $(SWITCH_AM_LDFLAGS)
|
||||||
|
#we should set all these vars from configure, no reason to have these in each Makefile.am
|
||||||
|
LIBTOOL = echo "`link=\`echo $@|grep .la;echo $@|grep .so;echo $@|grep .dll\`;if test -n "$$link"; then echo Creating $@;fi`";`if test -z "$(VERBOSE)" ; \
|
||||||
|
then echo $(SHELL) $(switch_builddir)/quiet_libtool ;else echo $(SHELL) $(switch_builddir)/libtool; fi`
|
||||||
|
AM_MAKEFLAGS=`test -n "$(VERBOSE)" || echo -s`
|
||||||
|
# Dirty trick to override the link output
|
||||||
|
LIBS+=> $(MODNAME).log || error="yes";if test -n "$(VERBOSE)" -o "$$error" = "yes";then cat $(MODNAME).log;fi;if test "$$error" = "yes";then exit 1;fi
|
||||||
|
|
||||||
|
moddir=@modinstdir@
|
@ -1,17 +1,7 @@
|
|||||||
|
include $(top_srcdir)/build/modmake.rulesam
|
||||||
|
|
||||||
MODNAME=mod_unimrcp
|
MODNAME=mod_unimrcp
|
||||||
|
|
||||||
AM_CFLAGS = $(SWITCH_AM_CFLAGS) $(SWITCH_ANSI_CFLAGS)
|
|
||||||
AM_CPPFLAGS = $(SWITCH_AM_CXXFLAGS)
|
|
||||||
#AM_LDFLAGS = $(SWITCH_AM_LDFLAGS)
|
|
||||||
#we should set all these vars from configure, no reason to have these in each Makefile.am
|
|
||||||
LIBTOOL = echo "`link=\`echo $@|grep .la;echo $@|grep .so;echo $@|grep .dll\`;if test -n "$$link"; then echo Creating $@;fi`";`if test -z "$(VERBOSE)" ; \
|
|
||||||
then echo $(SHELL) $(switch_builddir)/quiet_libtool ;else echo $(SHELL) $(switch_builddir)/libtool; fi`
|
|
||||||
AM_MAKEFLAGS=`test -n "$(VERBOSE)" || echo -s`
|
|
||||||
# Dirty trick to override the link output
|
|
||||||
LIBS+=> $(MODNAME).log || error="yes";if test -n "$(VERBOSE)" -o "$$error" = "yes";then cat $(MODNAME).log;fi;if test "$$error" = "yes";then exit 1;fi
|
|
||||||
|
|
||||||
moddir=@modinstdir@
|
|
||||||
|
|
||||||
UNIMRCP_DIR=$(switch_builddir)/libs/unimrcp
|
UNIMRCP_DIR=$(switch_builddir)/libs/unimrcp
|
||||||
UNIMRCPLA=$(UNIMRCP_DIR)/platforms/libunimrcp-client/libunimrcpclient.la
|
UNIMRCPLA=$(UNIMRCP_DIR)/platforms/libunimrcp-client/libunimrcpclient.la
|
||||||
|
|
||||||
|
@ -1,14 +1,4 @@
|
|||||||
AM_CFLAGS = $(SWITCH_AM_CFLAGS)
|
include $(top_srcdir)/build/modmake.rulesam
|
||||||
AM_CPPFLAGS = $(SWITCH_AM_CXXFLAGS)
|
|
||||||
#AM_LDFLAGS = $(SWITCH_AM_LDFLAGS)
|
|
||||||
#we should set all these vars from configure, no reason to have these in each Makefile.am
|
|
||||||
LIBTOOL = echo "`link=\`echo $@|grep .la;echo $@|grep .so;echo $@|grep .dll\`;if test -n "$$link"; then echo Creating $@;fi`";`if test -z "$(VERBOSE)" ; \
|
|
||||||
then echo $(SHELL) $(switch_builddir)/quiet_libtool ;else echo $(SHELL) $(switch_builddir)/libtool; fi`
|
|
||||||
AM_MAKEFLAGS=`test -n "$(VERBOSE)" || echo -s`
|
|
||||||
# Dirty trick to override the link output
|
|
||||||
LIBS+=> $(MODNAME).log || error="yes";if test -n "$(VERBOSE)" -o "$$error" = "yes";then cat $(MODNAME).log;fi;if test "$$error" = "yes";then exit 1;fi
|
|
||||||
|
|
||||||
moddir=@modinstdir@
|
|
||||||
|
|
||||||
MODNAME=mod_sofia
|
MODNAME=mod_sofia
|
||||||
|
|
||||||
@ -18,7 +8,7 @@ SOFIALA=$(SOFIAUA_DIR)/libsofia-sip-ua.la
|
|||||||
|
|
||||||
mod_LTLIBRARIES = mod_sofia.la
|
mod_LTLIBRARIES = mod_sofia.la
|
||||||
mod_sofia_la_SOURCES = mod_sofia.c sofia.c sofia_glue.c sofia_presence.c sofia_reg.c sofia_sla.c mod_sofia.h
|
mod_sofia_la_SOURCES = mod_sofia.c sofia.c sofia_glue.c sofia_presence.c sofia_reg.c sofia_sla.c mod_sofia.h
|
||||||
mod_sofia_la_CFLAGS = $(AM_CFLAGS) $(SWITCH_ANSI_CFLAGS)
|
mod_sofia_la_CFLAGS = $(AM_CFLAGS)
|
||||||
mod_sofia_la_CFLAGS += -I. -I$(SOFIAUA_DIR)/bnf -I$(SOFIAUA_DIR)/features
|
mod_sofia_la_CFLAGS += -I. -I$(SOFIAUA_DIR)/bnf -I$(SOFIAUA_DIR)/features
|
||||||
mod_sofia_la_CFLAGS += -I$(SOFIAUA_DIR)/http -I$(SOFIAUA_DIR)/ipt
|
mod_sofia_la_CFLAGS += -I$(SOFIAUA_DIR)/http -I$(SOFIAUA_DIR)/ipt
|
||||||
mod_sofia_la_CFLAGS += -I$(SOFIAUA_DIR)/iptsec -I$(SOFIAUA_DIR)/msg
|
mod_sofia_la_CFLAGS += -I$(SOFIAUA_DIR)/iptsec -I$(SOFIAUA_DIR)/msg
|
||||||
@ -44,7 +34,7 @@ BUILT_SOURCES = $(SOFIALA)
|
|||||||
$(mod_sofia_la_SOURCES) : $(BUILT_SOURCES)
|
$(mod_sofia_la_SOURCES) : $(BUILT_SOURCES)
|
||||||
|
|
||||||
$(SOFIALA): $(SOFIA_DIR) $(SOFIA_DIR)/.update
|
$(SOFIALA): $(SOFIA_DIR) $(SOFIA_DIR)/.update
|
||||||
cd $(SOFIA_DIR) && $(MAKE) SOFIA_CFLAGS="$(AM_CFLAGS)"
|
cd $(SOFIA_DIR) && $(MAKE) SOFIA_CFLAGS="$(SWITCH_AM_CFLAGS)"
|
||||||
$(TOUCH_TARGET)
|
$(TOUCH_TARGET)
|
||||||
|
|
||||||
../../../../libs/sofia-sip/libsofia-sip-ua/nua/sofia-sip/nua_tag.h: $(SOFIALA)
|
../../../../libs/sofia-sip/libsofia-sip-ua/nua/sofia-sip/nua_tag.h: $(SOFIALA)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user