some cleanup in the Makefiles
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4814 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
001c552e26
commit
c7753b06d4
|
@ -10,13 +10,6 @@ AM_LDFLAGS = $(SWITCH_AM_LDFLAGS)
|
||||||
BASE = $(switch_srcdir)
|
BASE = $(switch_srcdir)
|
||||||
OSARCH=`uname -s`
|
OSARCH=`uname -s`
|
||||||
|
|
||||||
LIBTOOL=`if test -z "$(VERBOSE)" ; then echo $(SHELL) $(switch_builddir)/quiet_libtool ;else echo $(switch_builddir)/libtool; fi;`
|
|
||||||
#LIBS+=> core.log || error="yes";if test -n "$(VERBOSE)" -o "$$error" = "yes";then cat core.log;fi;if test "$$error" = "yes";then exit 1;fi
|
|
||||||
|
|
||||||
LTINSTALL = $(LIBTOOL) --mode=install $(INSTALL)
|
|
||||||
TOUCH_TARGET=if test -f "$@" ; then touch "$@" ; fi ;
|
|
||||||
AM_MAKEFLAGS=`test -n "$(VERBOSE)" || echo -s`
|
|
||||||
|
|
||||||
if CRASHPROT
|
if CRASHPROT
|
||||||
AM_CFLAGS += -DCRASH_PROT
|
AM_CFLAGS += -DCRASH_PROT
|
||||||
endif
|
endif
|
||||||
|
|
|
@ -9,7 +9,7 @@ AWK=@AWK@
|
||||||
SHELL=@SHELL@
|
SHELL=@SHELL@
|
||||||
INSTALL=@INSTALL@
|
INSTALL=@INSTALL@
|
||||||
GETLIB=@GETLIB@
|
GETLIB=@GETLIB@
|
||||||
LIBTOOL=$(switch_builddir)/libtool
|
LIBTOOL=@LIBTOOL@
|
||||||
LTINSTALL=$(LIBTOOL) --mode=install $(INSTALL)
|
LTINSTALL=$(LIBTOOL) --mode=install $(INSTALL)
|
||||||
LTUNINSTALL=$(LIBTOOL) --mode=uninstall rm -f
|
LTUNINSTALL=$(LIBTOOL) --mode=uninstall rm -f
|
||||||
CCLD = $(CC)
|
CCLD = $(CC)
|
||||||
|
@ -46,7 +46,7 @@ CXXLINK = $(LIBTOOL) --mode=link --tag=CXX $(CXXLD) $(ALL_CXXFLAGS) $(LDFLAGS) -
|
||||||
|
|
||||||
CSOURCEFILE=$(MODNAME).c
|
CSOURCEFILE=$(MODNAME).c
|
||||||
CXXSOURCEFILE=$(MODNAME).cpp
|
CXXSOURCEFILE=$(MODNAME).cpp
|
||||||
TOUCH_TARGET=if test -f "$@" ; then touch "$@" ; fi ;
|
TOUCH_TARGET=@TOUCH_TARGET@
|
||||||
|
|
||||||
#MAKE_OPTS = `if test -z "$(VERBOSE)" ; then $(MAKE) --help | grep silent | grep "\-s" 2>&1 >/dev/null && echo -s;fi`
|
#MAKE_OPTS = `if test -z "$(VERBOSE)" ; then $(MAKE) --help | grep silent | grep "\-s" 2>&1 >/dev/null && echo -s;fi`
|
||||||
MAKE_OPTS = `test -n "$(VERBOSE)" || echo -s`
|
MAKE_OPTS = `test -n "$(VERBOSE)" || echo -s`
|
||||||
|
|
|
@ -327,6 +327,15 @@ AM_CONDITIONAL(ISLINUX, [test `uname -s` = Linux])
|
||||||
AM_CONDITIONAL(ISMAC, [test `uname -s` = Darwin])
|
AM_CONDITIONAL(ISMAC, [test `uname -s` = Darwin])
|
||||||
AM_CONDITIONAL(IS64BITLINUX, [test `uname -m` = x86_64])
|
AM_CONDITIONAL(IS64BITLINUX, [test `uname -m` = x86_64])
|
||||||
|
|
||||||
|
#some vars to sub into the Makefile.am's
|
||||||
|
#LIBS+=> core.log || error="yes";if test -n "$(VERBOSE)" -o "$$error" = "yes";then cat core.log;fi;if test "$$error" = "yes";then exit 1;fi
|
||||||
|
LIBTOOL='`if test -z "$(VERBOSE)" ; then echo $(SHELL) $(switch_builddir)/quiet_libtool ;else echo $(switch_builddir)/libtool; fi;`'
|
||||||
|
TOUCH_TARGET='if test -f "$@";then touch "$@";fi;'
|
||||||
|
AM_MAKEFLAGS='`test -n "$(VERBOSE)" || echo -s`'
|
||||||
|
AC_SUBST(LIBTOOL)
|
||||||
|
AC_SUBST(TOUCH_TARGET)
|
||||||
|
AC_SUBST(AM_MAKEFLAGS)
|
||||||
|
|
||||||
# Run configure in all the subdirs
|
# Run configure in all the subdirs
|
||||||
AC_CONFIG_SUBDIRS(libs/srtp)
|
AC_CONFIG_SUBDIRS(libs/srtp)
|
||||||
AC_CONFIG_SUBDIRS(libs/sqlite)
|
AC_CONFIG_SUBDIRS(libs/sqlite)
|
||||||
|
|
|
@ -6,8 +6,6 @@ OUR_CLEAN_MODULES=if test -z "$(MODULES)" ; then tmp_clean_modules=`echo $$conf_
|
||||||
else our_clean_modules="$(MODULES)" ; fi ;
|
else our_clean_modules="$(MODULES)" ; fi ;
|
||||||
MOD_NAME=`echo $$i | sed -e 's|^.*/||'`
|
MOD_NAME=`echo $$i | sed -e 's|^.*/||'`
|
||||||
MOD_DIR=`if test -d $(switch_srcdir)/src/mod/$$i ; then echo $(switch_srcdir)/src/mod/$$i ; else echo $$i ; fi;`
|
MOD_DIR=`if test -d $(switch_srcdir)/src/mod/$$i ; then echo $(switch_srcdir)/src/mod/$$i ; else echo $$i ; fi;`
|
||||||
AM_MAKEFLAGS = `test -n "$(VERBOSE)" || echo -s`
|
|
||||||
#AM_MAKEFLAGS = `if test -z "$(VERBOSE)" ; then $(MAKE) --help | grep silent | grep "\-s" 2>&1 >/dev/null && echo -s;fi`
|
|
||||||
|
|
||||||
all:
|
all:
|
||||||
@$(CONF_MODULES) \
|
@$(CONF_MODULES) \
|
||||||
|
|
Loading…
Reference in New Issue