[asterisk-addons-commits] qwell: trunk r523 - in /trunk: ./ apps/ asterisk-ooh323c/ build_tools/ cdr/ c...
SVN commits to the Asterisk addons project
asterisk-addons-commits at lists.digium.com
Thu Feb 7 14:59:48 CST 2008
Author: qwell
Date: Thu Feb 7 14:59:47 2008
New Revision: 523
URL: http://svn.digium.com/view/asterisk-addons?view=rev&rev=523
Log:
Merge moddirmagic branch into trunk. This switches it to use the same moddir stuff that the asterisk repo does.
Added:
trunk/Makefile.moddir_rules
- copied unchanged from r522, team/qwell/moddirmagic/Makefile.moddir_rules
trunk/apps/ (props changed)
- copied from r522, team/qwell/moddirmagic/apps/
trunk/apps/Makefile
- copied unchanged from r522, team/qwell/moddirmagic/apps/Makefile
trunk/apps/app_addon_sql_mysql.c
- copied unchanged from r522, team/qwell/moddirmagic/apps/app_addon_sql_mysql.c
trunk/apps/app_fax.c
- copied unchanged from r522, team/qwell/moddirmagic/apps/app_fax.c
trunk/apps/app_saycountpl.c
- copied unchanged from r522, team/qwell/moddirmagic/apps/app_saycountpl.c
trunk/build_tools/get_makeopts
- copied unchanged from r522, team/qwell/moddirmagic/build_tools/get_makeopts
trunk/build_tools/get_moduleinfo
- copied unchanged from r522, team/qwell/moddirmagic/build_tools/get_moduleinfo
trunk/cdr/ (props changed)
- copied from r522, team/qwell/moddirmagic/cdr/
trunk/cdr/Makefile
- copied unchanged from r522, team/qwell/moddirmagic/cdr/Makefile
trunk/cdr/cdr_addon_mysql.c
- copied unchanged from r522, team/qwell/moddirmagic/cdr/cdr_addon_mysql.c
trunk/channels/ (props changed)
- copied from r522, team/qwell/moddirmagic/channels/
trunk/channels/Makefile
- copied unchanged from r522, team/qwell/moddirmagic/channels/Makefile
trunk/channels/chan_mobile.c
- copied unchanged from r522, team/qwell/moddirmagic/channels/chan_mobile.c
trunk/channels/chan_ooh323.c
- copied unchanged from r522, team/qwell/moddirmagic/channels/chan_ooh323.c
trunk/channels/chan_ooh323.h
- copied unchanged from r522, team/qwell/moddirmagic/channels/chan_ooh323.h
trunk/channels/ooh323c/
- copied from r522, team/qwell/moddirmagic/channels/ooh323c/
trunk/channels/ooh323c/COPYING (props changed)
- copied unchanged from r522, team/qwell/moddirmagic/channels/ooh323c/COPYING
trunk/channels/ooh323c/README (props changed)
- copied unchanged from r522, team/qwell/moddirmagic/channels/ooh323c/README
trunk/channels/ooh323c/src/
- copied from r522, team/qwell/moddirmagic/channels/ooh323c/src/
trunk/channels/ooh323c/src/Makefile.in (props changed)
- copied unchanged from r522, team/qwell/moddirmagic/channels/ooh323c/src/Makefile.in
trunk/channels/ooh323c/src/context.c (props changed)
- copied unchanged from r522, team/qwell/moddirmagic/channels/ooh323c/src/context.c
trunk/channels/ooh323c/src/decode.c (props changed)
- copied unchanged from r522, team/qwell/moddirmagic/channels/ooh323c/src/decode.c
trunk/channels/ooh323c/src/dlist.c (props changed)
- copied unchanged from r522, team/qwell/moddirmagic/channels/ooh323c/src/dlist.c
trunk/channels/ooh323c/src/dlist.h (props changed)
- copied unchanged from r522, team/qwell/moddirmagic/channels/ooh323c/src/dlist.h
trunk/channels/ooh323c/src/encode.c (props changed)
- copied unchanged from r522, team/qwell/moddirmagic/channels/ooh323c/src/encode.c
trunk/channels/ooh323c/src/errmgmt.c (props changed)
- copied unchanged from r522, team/qwell/moddirmagic/channels/ooh323c/src/errmgmt.c
trunk/channels/ooh323c/src/eventHandler.c (props changed)
- copied unchanged from r522, team/qwell/moddirmagic/channels/ooh323c/src/eventHandler.c
trunk/channels/ooh323c/src/eventHandler.h (props changed)
- copied unchanged from r522, team/qwell/moddirmagic/channels/ooh323c/src/eventHandler.h
trunk/channels/ooh323c/src/h323/
- copied from r522, team/qwell/moddirmagic/channels/ooh323c/src/h323/
trunk/channels/ooh323c/src/h323/H235-SECURITY-MESSAGES.h (props changed)
- copied unchanged from r522, team/qwell/moddirmagic/channels/ooh323c/src/h323/H235-SECURITY-MESSAGES.h
trunk/channels/ooh323c/src/h323/H235-SECURITY-MESSAGESDec.c (props changed)
- copied unchanged from r522, team/qwell/moddirmagic/channels/ooh323c/src/h323/H235-SECURITY-MESSAGESDec.c
trunk/channels/ooh323c/src/h323/H235-SECURITY-MESSAGESEnc.c (props changed)
- copied unchanged from r522, team/qwell/moddirmagic/channels/ooh323c/src/h323/H235-SECURITY-MESSAGESEnc.c
trunk/channels/ooh323c/src/h323/H323-MESSAGES.c (props changed)
- copied unchanged from r522, team/qwell/moddirmagic/channels/ooh323c/src/h323/H323-MESSAGES.c
trunk/channels/ooh323c/src/h323/H323-MESSAGES.h (props changed)
- copied unchanged from r522, team/qwell/moddirmagic/channels/ooh323c/src/h323/H323-MESSAGES.h
trunk/channels/ooh323c/src/h323/H323-MESSAGESDec.c (props changed)
- copied unchanged from r522, team/qwell/moddirmagic/channels/ooh323c/src/h323/H323-MESSAGESDec.c
trunk/channels/ooh323c/src/h323/H323-MESSAGESEnc.c (props changed)
- copied unchanged from r522, team/qwell/moddirmagic/channels/ooh323c/src/h323/H323-MESSAGESEnc.c
trunk/channels/ooh323c/src/h323/MULTIMEDIA-SYSTEM-CONTROL.c (props changed)
- copied unchanged from r522, team/qwell/moddirmagic/channels/ooh323c/src/h323/MULTIMEDIA-SYSTEM-CONTROL.c
trunk/channels/ooh323c/src/h323/MULTIMEDIA-SYSTEM-CONTROL.h (props changed)
- copied unchanged from r522, team/qwell/moddirmagic/channels/ooh323c/src/h323/MULTIMEDIA-SYSTEM-CONTROL.h
trunk/channels/ooh323c/src/h323/MULTIMEDIA-SYSTEM-CONTROLDec.c (props changed)
- copied unchanged from r522, team/qwell/moddirmagic/channels/ooh323c/src/h323/MULTIMEDIA-SYSTEM-CONTROLDec.c
trunk/channels/ooh323c/src/h323/MULTIMEDIA-SYSTEM-CONTROLEnc.c (props changed)
- copied unchanged from r522, team/qwell/moddirmagic/channels/ooh323c/src/h323/MULTIMEDIA-SYSTEM-CONTROLEnc.c
trunk/channels/ooh323c/src/memheap.c (props changed)
- copied unchanged from r522, team/qwell/moddirmagic/channels/ooh323c/src/memheap.c
trunk/channels/ooh323c/src/memheap.h (props changed)
- copied unchanged from r522, team/qwell/moddirmagic/channels/ooh323c/src/memheap.h
trunk/channels/ooh323c/src/ooCalls.c (props changed)
- copied unchanged from r522, team/qwell/moddirmagic/channels/ooh323c/src/ooCalls.c
trunk/channels/ooh323c/src/ooCalls.h (props changed)
- copied unchanged from r522, team/qwell/moddirmagic/channels/ooh323c/src/ooCalls.h
trunk/channels/ooh323c/src/ooCapability.c (props changed)
- copied unchanged from r522, team/qwell/moddirmagic/channels/ooh323c/src/ooCapability.c
trunk/channels/ooh323c/src/ooCapability.h (props changed)
- copied unchanged from r522, team/qwell/moddirmagic/channels/ooh323c/src/ooCapability.h
trunk/channels/ooh323c/src/ooCmdChannel.c (props changed)
- copied unchanged from r522, team/qwell/moddirmagic/channels/ooh323c/src/ooCmdChannel.c
trunk/channels/ooh323c/src/ooCmdChannel.h (props changed)
- copied unchanged from r522, team/qwell/moddirmagic/channels/ooh323c/src/ooCmdChannel.h
trunk/channels/ooh323c/src/ooCommon.h (props changed)
- copied unchanged from r522, team/qwell/moddirmagic/channels/ooh323c/src/ooCommon.h
trunk/channels/ooh323c/src/ooDateTime.c (props changed)
- copied unchanged from r522, team/qwell/moddirmagic/channels/ooh323c/src/ooDateTime.c
trunk/channels/ooh323c/src/ooDateTime.h (props changed)
- copied unchanged from r522, team/qwell/moddirmagic/channels/ooh323c/src/ooDateTime.h
trunk/channels/ooh323c/src/ooGkClient.c (props changed)
- copied unchanged from r522, team/qwell/moddirmagic/channels/ooh323c/src/ooGkClient.c
trunk/channels/ooh323c/src/ooGkClient.h (props changed)
- copied unchanged from r522, team/qwell/moddirmagic/channels/ooh323c/src/ooGkClient.h
trunk/channels/ooh323c/src/ooLogChan.c (props changed)
- copied unchanged from r522, team/qwell/moddirmagic/channels/ooh323c/src/ooLogChan.c
trunk/channels/ooh323c/src/ooLogChan.h (props changed)
- copied unchanged from r522, team/qwell/moddirmagic/channels/ooh323c/src/ooLogChan.h
trunk/channels/ooh323c/src/ooSocket.c (props changed)
- copied unchanged from r522, team/qwell/moddirmagic/channels/ooh323c/src/ooSocket.c
trunk/channels/ooh323c/src/ooSocket.h (props changed)
- copied unchanged from r522, team/qwell/moddirmagic/channels/ooh323c/src/ooSocket.h
trunk/channels/ooh323c/src/ooStackCmds.c (props changed)
- copied unchanged from r522, team/qwell/moddirmagic/channels/ooh323c/src/ooStackCmds.c
trunk/channels/ooh323c/src/ooStackCmds.h (props changed)
- copied unchanged from r522, team/qwell/moddirmagic/channels/ooh323c/src/ooStackCmds.h
trunk/channels/ooh323c/src/ooTimer.c (props changed)
- copied unchanged from r522, team/qwell/moddirmagic/channels/ooh323c/src/ooTimer.c
trunk/channels/ooh323c/src/ooTimer.h (props changed)
- copied unchanged from r522, team/qwell/moddirmagic/channels/ooh323c/src/ooTimer.h
trunk/channels/ooh323c/src/ooUtils.c (props changed)
- copied unchanged from r522, team/qwell/moddirmagic/channels/ooh323c/src/ooUtils.c
trunk/channels/ooh323c/src/ooUtils.h (props changed)
- copied unchanged from r522, team/qwell/moddirmagic/channels/ooh323c/src/ooUtils.h
trunk/channels/ooh323c/src/ooasn1.h (props changed)
- copied unchanged from r522, team/qwell/moddirmagic/channels/ooh323c/src/ooasn1.h
trunk/channels/ooh323c/src/oochannels.c (props changed)
- copied unchanged from r522, team/qwell/moddirmagic/channels/ooh323c/src/oochannels.c
trunk/channels/ooh323c/src/oochannels.h (props changed)
- copied unchanged from r522, team/qwell/moddirmagic/channels/ooh323c/src/oochannels.h
trunk/channels/ooh323c/src/ooh245.c (props changed)
- copied unchanged from r522, team/qwell/moddirmagic/channels/ooh323c/src/ooh245.c
trunk/channels/ooh323c/src/ooh245.h (props changed)
- copied unchanged from r522, team/qwell/moddirmagic/channels/ooh323c/src/ooh245.h
trunk/channels/ooh323c/src/ooh323.c (props changed)
- copied unchanged from r522, team/qwell/moddirmagic/channels/ooh323c/src/ooh323.c
trunk/channels/ooh323c/src/ooh323.h (props changed)
- copied unchanged from r522, team/qwell/moddirmagic/channels/ooh323c/src/ooh323.h
trunk/channels/ooh323c/src/ooh323ep.c (props changed)
- copied unchanged from r522, team/qwell/moddirmagic/channels/ooh323c/src/ooh323ep.c
trunk/channels/ooh323c/src/ooh323ep.h (props changed)
- copied unchanged from r522, team/qwell/moddirmagic/channels/ooh323c/src/ooh323ep.h
trunk/channels/ooh323c/src/oohdr.h (props changed)
- copied unchanged from r522, team/qwell/moddirmagic/channels/ooh323c/src/oohdr.h
trunk/channels/ooh323c/src/ooper.h (props changed)
- copied unchanged from r522, team/qwell/moddirmagic/channels/ooh323c/src/ooper.h
trunk/channels/ooh323c/src/ooports.c (props changed)
- copied unchanged from r522, team/qwell/moddirmagic/channels/ooh323c/src/ooports.c
trunk/channels/ooh323c/src/ooports.h (props changed)
- copied unchanged from r522, team/qwell/moddirmagic/channels/ooh323c/src/ooports.h
trunk/channels/ooh323c/src/ooq931.c (props changed)
- copied unchanged from r522, team/qwell/moddirmagic/channels/ooh323c/src/ooq931.c
trunk/channels/ooh323c/src/ooq931.h (props changed)
- copied unchanged from r522, team/qwell/moddirmagic/channels/ooh323c/src/ooq931.h
trunk/channels/ooh323c/src/ootrace.c (props changed)
- copied unchanged from r522, team/qwell/moddirmagic/channels/ooh323c/src/ootrace.c
trunk/channels/ooh323c/src/ootrace.h (props changed)
- copied unchanged from r522, team/qwell/moddirmagic/channels/ooh323c/src/ootrace.h
trunk/channels/ooh323c/src/ootypes.h (props changed)
- copied unchanged from r522, team/qwell/moddirmagic/channels/ooh323c/src/ootypes.h
trunk/channels/ooh323c/src/perutil.c (props changed)
- copied unchanged from r522, team/qwell/moddirmagic/channels/ooh323c/src/perutil.c
trunk/channels/ooh323c/src/printHandler.c (props changed)
- copied unchanged from r522, team/qwell/moddirmagic/channels/ooh323c/src/printHandler.c
trunk/channels/ooh323c/src/printHandler.h (props changed)
- copied unchanged from r522, team/qwell/moddirmagic/channels/ooh323c/src/printHandler.h
trunk/channels/ooh323c/src/rtctype.c (props changed)
- copied unchanged from r522, team/qwell/moddirmagic/channels/ooh323c/src/rtctype.c
trunk/channels/ooh323c/src/rtctype.h (props changed)
- copied unchanged from r522, team/qwell/moddirmagic/channels/ooh323c/src/rtctype.h
trunk/channels/ooh323cDriver.c
- copied unchanged from r522, team/qwell/moddirmagic/channels/ooh323cDriver.c
trunk/channels/ooh323cDriver.h
- copied unchanged from r522, team/qwell/moddirmagic/channels/ooh323cDriver.h
trunk/configs/ooh323.conf.sample
- copied unchanged from r522, team/qwell/moddirmagic/configs/ooh323.conf.sample
trunk/doc/ChangeLog.chan_ooh323
- copied unchanged from r522, team/qwell/moddirmagic/doc/ChangeLog.chan_ooh323
trunk/doc/chan_ooh323.txt
- copied unchanged from r522, team/qwell/moddirmagic/doc/chan_ooh323.txt
trunk/formats/ (props changed)
- copied from r522, team/qwell/moddirmagic/formats/
trunk/formats/Makefile
- copied unchanged from r522, team/qwell/moddirmagic/formats/Makefile
trunk/formats/format_mp3.c
- copied unchanged from r522, team/qwell/moddirmagic/formats/format_mp3.c
trunk/formats/mp3/ (props changed)
- copied from r522, team/qwell/moddirmagic/formats/mp3/
trunk/formats/mp3/MPGLIB_README
- copied unchanged from r522, team/qwell/moddirmagic/formats/mp3/MPGLIB_README
trunk/formats/mp3/MPGLIB_TODO
- copied unchanged from r522, team/qwell/moddirmagic/formats/mp3/MPGLIB_TODO
trunk/formats/mp3/Makefile
- copied unchanged from r522, team/qwell/moddirmagic/formats/mp3/Makefile
trunk/formats/mp3/README
- copied unchanged from r522, team/qwell/moddirmagic/formats/mp3/README
trunk/formats/mp3/common.c
- copied unchanged from r522, team/qwell/moddirmagic/formats/mp3/common.c
trunk/formats/mp3/dct64_i386.c
- copied unchanged from r522, team/qwell/moddirmagic/formats/mp3/dct64_i386.c
trunk/formats/mp3/decode_i386.c
- copied unchanged from r522, team/qwell/moddirmagic/formats/mp3/decode_i386.c
trunk/formats/mp3/decode_ntom.c
- copied unchanged from r522, team/qwell/moddirmagic/formats/mp3/decode_ntom.c
trunk/formats/mp3/huffman.h
- copied unchanged from r522, team/qwell/moddirmagic/formats/mp3/huffman.h
trunk/formats/mp3/interface.c
- copied unchanged from r522, team/qwell/moddirmagic/formats/mp3/interface.c
trunk/formats/mp3/layer3.c
- copied unchanged from r522, team/qwell/moddirmagic/formats/mp3/layer3.c
trunk/formats/mp3/mpg123.h
- copied unchanged from r522, team/qwell/moddirmagic/formats/mp3/mpg123.h
trunk/formats/mp3/mpglib.h
- copied unchanged from r522, team/qwell/moddirmagic/formats/mp3/mpglib.h
trunk/formats/mp3/tabinit.c
- copied unchanged from r522, team/qwell/moddirmagic/formats/mp3/tabinit.c
trunk/res/ (props changed)
- copied from r522, team/qwell/moddirmagic/res/
trunk/res/Makefile
- copied unchanged from r522, team/qwell/moddirmagic/res/Makefile
trunk/res/res_config_mysql.c
- copied unchanged from r522, team/qwell/moddirmagic/res/res_config_mysql.c
Removed:
trunk/app_addon_sql_mysql.c
trunk/app_fax.c
trunk/app_saycountpl.c
trunk/asterisk-ooh323c/
trunk/cdr_addon_mysql.c
trunk/chan_mobile.c
trunk/format_mp3/
trunk/menuselect-tree
trunk/res_config_mysql.c
Modified:
trunk/Makefile
trunk/Makefile.rules
trunk/configure
trunk/configure.ac
trunk/makeopts.in
Modified: trunk/Makefile
URL: http://svn.digium.com/view/asterisk-addons/trunk/Makefile?view=diff&rev=523&r1=522&r2=523
==============================================================================
--- trunk/Makefile (original)
+++ trunk/Makefile Thu Feb 7 14:59:47 2008
@@ -3,7 +3,7 @@
#
# Makefile for Asterisk-addons
#
-# Copyright (C) 1999-2006, Digium, Inc.
+# Copyright (C) 1999-2008, Digium, Inc.
#
# This program is free software, distributed under the terms of
# the GNU General Public License
@@ -11,20 +11,22 @@
export ASTERISK_INCLUDE
export ASTCFLAGS
+export ASTTOPDIR
export CC
export DESTDIR
export INSTALL
export MODULES_DIR
export NOISY_BUILD
-
-.PHONY: all install samples clean update distclean menuselect chan_ooh323.so format_mp3.so
+export SOLINK
+
+#NOISY_BUILD=yes
+
+empty:=
+space:=$(empty) $(empty)
+ASTTOPDIR:=$(subst $(space),\$(space),$(CURDIR))
# Overwite config files on "make samples"
OVERWRITE:=y
-
-ASTCFLAGS+=-fPIC
-
-#NOISY_BUILD=yes
ifeq ($(AST_DEVMODE),yes)
ASTCFLAGS+=-Werror -Wunused -Wundef $(AST_DECLARATION_AFTER_STATEMENT)
@@ -39,17 +41,18 @@
GLOBAL_MAKEOPTS=$(wildcard /etc/asteriskaddons.makeopts)
USER_MAKEOPTS=$(wildcard ~/.asteriskaddons.makeopts)
-ifeq ($(strip $(foreach var,clean distclean dist-clean update,$(findstring $(var),$(MAKECMDGOALS)))),)
- ifneq ($(wildcard menuselect.makeopts),)
- include menuselect.makeopts
- include menuselect.makedeps
- endif
-endif
-
-ifeq ($(strip $(foreach var,clean distclean dist-clean update,$(findstring $(var),$(MAKECMDGOALS)))),)
- ifneq ($(wildcard makeopts),)
+MOD_SUBDIR_CFLAGS=$(ASTERISK_INCLUDE)
+OTHER_SUBDIR_CFLAGS=$(ASTERISK_INCLUDE)
+
+#ifeq ($(strip $(foreach var,clean distclean dist-clean update,$(findstring $(var),$(MAKECMDGOALS)))),)
+# ifneq ($(wildcard menuselect.makeopts),)
+# include menuselect.makeopts
+# include menuselect.makedeps
+# endif
+#endif
+
+ifneq ($(wildcard makeopts),)
include makeopts
- endif
endif
ifeq ($(OSARCH),SunOS)
@@ -61,9 +64,18 @@
endif
MODULES_DIR=$(ASTLIBDIR)/modules
-MODS:=app_addon_sql_mysql app_saycountpl cdr_addon_mysql chan_ooh323 format_mp3 res_config_mysql chan_mobile app_fax
-
-SELECTED_MODS:=$(patsubst %,%.so,$(filter-out $(MENUSELECT_ADDONS),$(MODS)))
+#MOD_SUBDIRS:=channels pbx apps codecs formats cdr funcs tests main res $(LOCAL_MOD_SUBDIRS)
+MOD_SUBDIRS:=channels apps formats cdr res $(LOCAL_MOD_SUBDIRS)
+OTHER_SUBDIRS:=
+SUBDIRS:=$(OTHER_SUBDIRS) $(MOD_SUBDIRS)
+SUBDIRS_INSTALL:=$(SUBDIRS:%=%-install)
+SUBDIRS_CLEAN:=$(SUBDIRS:%=%-clean)
+SUBDIRS_DIST_CLEAN:=$(SUBDIRS:%=%-dist-clean)
+SUBDIRS_UNINSTALL:=$(SUBDIRS:%=%-uninstall)
+MOD_SUBDIRS_EMBED_LDSCRIPT:=$(MOD_SUBDIRS:%=%-embed-ldscript)
+MOD_SUBDIRS_EMBED_LDFLAGS:=$(MOD_SUBDIRS:%=%-embed-ldflags)
+MOD_SUBDIRS_EMBED_LIBS:=$(MOD_SUBDIRS:%=%-embed-libs)
+MOD_SUBDIRS_MENUSELECT_TREE:=$(MOD_SUBDIRS:%=%-menuselect-tree)
ifeq ($(OSARCH),Darwin)
SOLINK=-dynamic -bundle -undefined suppress -force_flat_namespace
@@ -74,19 +86,73 @@
SOLINK=-shared -fpic -L$(CROSS_COMPILE_TARGET)/usr/local/ssl/lib
endif
-__all: all
- @echo " +---- Asterisk-Addons Build Complete ----+"
- @echo " + +"
- @echo " + Addons has successfully been built . +"
- @echo " + If you would like to install it : +"
- @echo " + +"
- @echo " + $(MAKE) install +"
- @echo " +---------------------------------------------+"
-
-all: config.status menuselect.makeopts
- @$(MAKE) _all
-
-_all: $(SELECTED_MODS)
+# comment to print directories during submakes
+#PRINT_DIR=yes
+
+SILENTMAKE:=$(MAKE) --quiet --no-print-directory
+ifneq ($(PRINT_DIR)$(NOISY_BUILD),)
+SUBMAKE:=$(MAKE) --quiet
+else
+SUBMAKE:=$(MAKE) --quiet --no-print-directory
+endif
+
+# $(MAKE) is printed in several places, and we want it to be a
+# fixed size string. Define a variable whose name has also the
+# same size, so we can easily align text.
+ifeq ($(MAKE), gmake)
+ mK="gmake"
+else
+ mK=" make"
+endif
+
+all: _all
+ @echo " +---- Asterisk-Addons Build Complete ----+"
+ @echo " + +"
+ @echo " + Addons has successfully been built . +"
+ @echo " + If you would like to install it : +"
+ @echo " + +"
+ @echo " + $(mK) install +"
+ @echo " +-------------------------------------------+"
+
+_all: cleantest makeopts $(SUBDIRS)
+
+makeopts: configure
+ @echo "****"
+ @echo "**** The configure script must be executed before running '$(MAKE)'."
+ @echo "**** Please run \"./configure\"."
+ @echo "****"
+ @exit 1
+
+menuselect.makeopts: menuselect/menuselect menuselect-tree
+ menuselect/menuselect --check-deps $(GLOBAL_MAKEOPTS) $(USER_MAKEOPTS) menuselect.makeopts
+
+$(MOD_SUBDIRS_EMBED_LDSCRIPT):
+ @echo "EMBED_LDSCRIPTS+="`$(SILENTMAKE) -C $(@:-embed-ldscript=) SUBDIR=$(@:-embed-ldscript=) __embed_ldscript` >> makeopts.embed_rules
+
+$(MOD_SUBDIRS_EMBED_LDFLAGS):
+ @echo "EMBED_LDFLAGS+="`$(SILENTMAKE) -C $(@:-embed-ldflags=) SUBDIR=$(@:-embed-ldflags=) __embed_ldflags` >> makeopts.embed_rules
+
+$(MOD_SUBDIRS_EMBED_LIBS):
+ @echo "EMBED_LIBS+="`$(SILENTMAKE) -C $(@:-embed-libs=) SUBDIR=$(@:-embed-libs=) __embed_libs` >> makeopts.embed_rules
+
+$(MOD_SUBDIRS_MENUSELECT_TREE):
+ @$(SUBMAKE) -C $(@:-menuselect-tree=) SUBDIR=$(@:-menuselect-tree=) moduleinfo
+ @$(SUBMAKE) -C $(@:-menuselect-tree=) SUBDIR=$(@:-menuselect-tree=) makeopts
+
+makeopts.embed_rules: menuselect.makeopts
+ @echo "Generating embedded module rules ..."
+ @rm -f $@
+ @$(MAKE) $(PRINT_DIR) $(MOD_SUBDIRS_EMBED_LDSCRIPT)
+ @$(MAKE) $(PRINT_DIR) $(MOD_SUBDIRS_EMBED_LDFLAGS)
+ @$(MAKE) $(PRINT_DIR) $(MOD_SUBDIRS_EMBED_LIBS)
+
+$(SUBDIRS): makeopts.embed_rules
+
+$(MOD_SUBDIRS):
+ @ASTCFLAGS="$(MOD_SUBDIR_CFLAGS) $(ASTCFLAGS)" ASTLDFLAGS="$(ASTLDFLAGS)" $(MAKE) $(PRINT_DIR) --no-builtin-rules -C $@ SUBDIR=$@ all
+
+$(OTHER_SUBDIRS):
+ @ASTCFLAGS="$(OTHER_SUBDIR_CFLAGS) $(ASTCFLAGS)" ASTLDFLAGS="$(ASTLDFLAGS)" $(MAKE) $(PRINT_DIR) --no-builtin-rules -C $@ SUBDIR=$@ all
config.status: configure
@./configure
@@ -96,14 +162,7 @@
@echo "****"
@exit 1
-install: all
- for x in $(filter-out format_mp3.so chan_ooh323.so,$(SELECTED_MODS)); do $(INSTALL) -m 755 $$x $(DESTDIR)$(MODULES_DIR) ; done
- @if test "x$(findstring format_mp3.so,$(SELECTED_MODS))" != "x" ; then \
- $(MAKE) -C format_mp3 install ; \
- fi
- @if test "x$(findstring chan_ooh323.so,$(SELECTED_MODS))" != "x" ; then \
- $(MAKE) -C asterisk-ooh323c install ; \
- fi
+install: _all $(SUBDIRS_INSTALL)
@echo " +---- Asterisk-Addons Installation Complete ----+"
@echo " + +"
@echo " + Addons has successfully been installed. +"
@@ -114,54 +173,32 @@
@echo " + $(MAKE) samples +"
@echo " +-----------------------------------------------+"
-distclean: clean
- @$(MAKE) -C menuselect distclean
- @if [ -f asterisk-ooh323c/Makefile ] ; then \
- $(MAKE) -C asterisk-ooh323c distclean ; \
- fi
- rm -f build_tools/menuselect-deps
- rm -f menuselect.makeopts makeopts menuselect.makedeps
+cleantest:
+
+$(SUBDIRS_INSTALL):
+ @DESTDIR="$(DESTDIR)" ASTSBINDIR="$(ASTSBINDIR)" $(MAKE) --quiet $(PRINT_DIR) -C $(@:-install=) install
+
+$(SUBDIRS_UNINSTALL):
+ @$(MAKE) $(PRINT_DIR) -C $(@:-uninstall=) uninstall
+
+$(SUBDIRS_CLEAN):
+ @$(MAKE) $(PRINT_DIR) -C $(@:-clean=) clean
+
+$(SUBDIRS_DIST_CLEAN):
+ @$(MAKE) $(PRINT_DIR) -C $(@:-dist-clean=) dist-clean
+
+clean: $(SUBDIRS_CLEAN)
+ @$(MAKE) -C menuselect clean
+
+dist-clean: distclean
+
+distclean: $(SUBDIRS_DIST_CLEAN) clean
+ @$(MAKE) -C menuselect dist-clean
+ rm -f menuselect.makeopts makeopts menuselect-tree menuselect.makedeps
+ rm -f makeopts.embed_rules
rm -f config.log config.status
rm -rf autom4te.cache
-
-clean:
- rm -f *.so *.o .depend
- rm -f .*.o.d
- @$(MAKE) -C format_mp3 clean
- @$(MAKE) -C menuselect clean
- @if [ -f asterisk-ooh323c/Makefile ] ; then \
- $(MAKE) -C asterisk-ooh323c clean ; \
- fi
-
-ifneq ($(wildcard .*.d),)
- include .*.d
-endif
-
-ASTCFLAGS+=$(ASTERISK_INCLUDE)
-
-app_fax.so: app_fax.o
- $(CC) $(SOLINK) -o $@ $< $(SPANDSP_LIB)
-
-cdr_addon_mysql.so: cdr_addon_mysql.o
- $(CC) $(SOLINK) -o $@ $< $(MYSQLCLIENT_LIB)
-
-res_config_mysql.so: res_config_mysql.o
- $(CC) $(SOLINK) -o $@ $< $(MYSQLCLIENT_LIB)
-
-app_addon_sql_mysql.so: app_addon_sql_mysql.o
- $(CC) $(SOLINK) -o $@ $< $(MYSQLCLIENT_LIB)
-
-chan_mobile.so: chan_mobile.o
- $(CC) $(SOLINK) -o $@ $< $(BLUETOOTH_LIB)
-
-chan_ooh323.so:
- @if [ ! -f asterisk-ooh323c/Makefile ] ; then \
- cd asterisk-ooh323c && ./configure ; \
- fi
- @$(MAKE) -C asterisk-ooh323c
-
-format_mp3.so:
- @INCLUDE="$(ASTCFLAGS)" $(MAKE) -C format_mp3 all CC="$(CC)"
+ rm -f build_tools/menuselect-deps
samples:
mkdir -p $(DESTDIR)$(ASTETCDIR)
@@ -198,15 +235,35 @@
echo "Not under version control"; \
fi
-menuselect.makeopts menuselect.makedeps: menuselect/menuselect menuselect-tree
- @menuselect/menuselect --check-deps $(GLOBAL_MAKEOPTS) $(USER_MAKEOPTS) menuselect.makeopts
-
menuconfig: menuselect
+
+gmenuconfig: gmenuselect
menuselect: menuselect/menuselect menuselect-tree
- at menuselect/menuselect $(GLOBAL_MAKEOPTS) $(USER_MAKEOPTS) menuselect.makeopts && echo "menuselect changes saved!" || echo "menuselect changes NOT saved!"
-menuselect/menuselect: menuselect/menuselect.c menuselect/menuselect_curses.c menuselect/menuselect_stub.c menuselect/menuselect.h menuselect/linkedlists.h config.status
- @$(MAKE) -C menuselect
-
-include Makefile.rules
+gmenuselect: menuselect/gmenuselect menuselect-tree
+ - at menuselect/gmenuselect $(GLOBAL_MAKEOPTS) $(USER_MAKEOPTS) menuselect.makeopts && echo "menuselect changes saved!" || echo "menuselect changes NOT saved!"
+
+# options for make in menuselect/
+MAKE_MENUSELECT=CC="$(HOST_CC)" CXX="$(CXX)" LD="" AR="" RANLIB="" CFLAGS="" $(MAKE) -C menuselect CONFIGURE_SILENT="--silent"
+
+menuselect/menuselect: menuselect/makeopts
+ $(MAKE_MENUSELECT)
+
+menuselect/gmenuselect: menuselect/makeopts
+ $(MAKE_MENUSELECT) gmenuselect
+
+menuselect/makeopts:
+ $(MAKE_MENUSELECT) makeopts
+
+menuselect-tree: $(foreach dir,$(filter-out main,$(MOD_SUBDIRS)),$(wildcard $(dir)/*.c) $(wildcard $(dir)/*.cc)) configure
+ @echo "Generating input for menuselect ..."
+ @echo "<?xml version=\"1.0\"?>" > $@
+ @echo >> $@
+ @echo "<menu name=\"Asterisk-addons Module Selection\">" >> $@
+ @for dir in $(sort $(filter-out main,$(MOD_SUBDIRS))); do $(SUBMAKE) -C $${dir} SUBDIR=$${dir} moduleinfo >> $@; done
+ @for dir in $(sort $(filter-out main,$(MOD_SUBDIRS))); do $(SUBMAKE) -C $${dir} SUBDIR=$${dir} makeopts >> $@; done
+ @echo "</menu>" >> $@
+
+.PHONY: menuselect clean dist-clean distclean all cleantest uninstall _uninstall uninstall-all dont-optimize $(SUBDIRS_INSTALL) $(SUBDIRS_DIST_CLEAN) $(SUBDIRS_CLEAN) $(SUBDIRS_UNINSTALL) $(SUBDIRS) $(MOD_SUBDIRS_EMBED_LDSCRIPT) $(MOD_SUBDIRS_EMBED_LDFLAGS) $(MOD_SUBDIRS_EMBED_LIBS)
Modified: trunk/Makefile.rules
URL: http://svn.digium.com/view/asterisk-addons/trunk/Makefile.rules?view=diff&rev=523&r1=522&r2=523
==============================================================================
--- trunk/Makefile.rules (original)
+++ trunk/Makefile.rules Thu Feb 7 14:59:47 2008
@@ -3,7 +3,7 @@
#
# Makefile rules
#
-# Copyright (C) 2006, Digium, Inc.
+# Copyright (C) 2006-2008, Digium, Inc.
#
# Kevin P. Fleming <kpfleming at digium.com>
#
@@ -11,6 +11,7 @@
# the GNU General Public License
#
+# Rules for various build phases.
# Each command is preceded by a short comment on what to do.
# Prefixing one or the other with @\# or @ or nothing makes the desired
# behaviour. ECHO_PREFIX prefixes the comment, CMD_PREFIX prefixes the command.
@@ -19,44 +20,48 @@
.PHONY: dist-clean
+# extra cflags to build dependencies. Recursively expanded.
+MAKE_DEPS= -MMD -MT $@ -MF .$(subst /,_,$@).d -MP
+
ifeq ($(NOISY_BUILD),)
- ECHO_PREFIX=@
- CMD_PREFIX=@
+ ECHO_PREFIX=@
+ CMD_PREFIX=@
else
- ECHO_PREFIX=@\#
- CMD_PREFIX=
+ ECHO_PREFIX=@\#
+ CMD_PREFIX=
endif
ifeq ($(findstring DONT_OPTIMIZE,$(MENUSELECT_CFLAGS)),)
-# More GSM codec optimization
-# Uncomment to enable MMXTM optimizations for x86 architecture CPU's
-# which support MMX instructions. This should be newer pentiums,
-# ppro's, etc, as well as the AMD K6 and K7.
-#K6OPT=-DK6OPT
+ # More GSM codec optimization
+ # Uncomment to enable MMXTM optimizations for x86 architecture CPU's
+ # which support MMX instructions. This should be newer pentiums,
+ # ppro's, etc, as well as the AMD K6 and K7.
+ #K6OPT=-DK6OPT
-OPTIMIZE?=-O6
-ASTCFLAGS+=$(OPTIMIZE)
+ OPTIMIZE?=-O6
+ ASTCFLAGS+=$(OPTIMIZE)
endif
+# build rules for various targets
%.o: %.c
$(ECHO_PREFIX) echo " [CC] $< -> $@"
- $(CMD_PREFIX) $(CC) -o $@ -c $< $(PTHREAD_CFLAGS) $(ASTCFLAGS) -MMD -MT $@ -MF .$(subst /,_,$@).d -MP
+ $(CMD_PREFIX) $(CC) -o $@ -c $< $(PTHREAD_CFLAGS) $(ASTCFLAGS) $(MAKE_DEPS)
%.o: %.i
- $(ECHO_PREFIX) echo " [CC] $< -> $@"
- $(CMD_PREFIX) $(CC) -o $@ -c $< $(PTHREAD_CFLAGS) $(ASTCFLAGS) -MMD -MT $@ -MF .$(subst /,_,$@).d -MP
+ $(ECHO_PREFIX) echo " [CCi] $< -> $@"
+ $(CMD_PREFIX) $(CC) -o $@ -c $< $(PTHREAD_CFLAGS) $(ASTCFLAGS) $(MAKE_DEPS)
%.i: %.c
- $(ECHO_PREFIX) echo " [CC] $< -> $@"
- $(CMD_PREFIX) $(CC) -o $@ -E $< $(PTHREAD_CFLAGS) $(ASTCFLAGS) -MMD -MT $@ -MF .$(subst /,_,$@).d -MP
+ $(ECHO_PREFIX) echo " [CPP] $< -> $@"
+ $(CMD_PREFIX) $(CC) -o $@ -E $< $(PTHREAD_CFLAGS) $(ASTCFLAGS) $(MAKE_DEPS)
%.o: %.s
$(ECHO_PREFIX) echo " [AS] $< -> $@"
- $(CMD_PREFIX) $(CC) -o $@ -c $< $(PTHREAD_CFLAGS) $(ASTCFLAGS) -MMD -MT $@ -MF .$(subst /,_,$@).d -MP
+ $(CMD_PREFIX) $(CC) -o $@ -c $< $(PTHREAD_CFLAGS) $(ASTCFLAGS) $(MAKE_DEPS)
%.oo: %.cc
$(ECHO_PREFIX) echo " [CXX] $< -> $@"
- $(CMD_PREFIX) $(CXX) -o $@ -c $< $(PTHREAD_CFLAGS) $(filter-out -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations,$(ASTCFLAGS)) -MMD -MT $@ -MF .$(subst /,_,$@).d -MP
+ $(CMD_PREFIX) $(CXX) -o $@ -c $< $(PTHREAD_CFLAGS) $(filter-out -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations,$(ASTCFLAGS)) $(MAKE_DEPS)
%.c: %.y
$(ECHO_PREFIX) echo " [BISON] $< -> $@"
@@ -80,7 +85,7 @@
$(CMD_PREFIX) $(LD) -r -T .$@.ld -o $@ $<
$(CMD_PREFIX) rm -f .$@.ld
-%.eoo: %.o
+%.eo: %.oo
$(ECHO_PREFIX) echo " [EMBED] $< -> $@"
$(CMD_PREFIX) $(ASTTOPDIR)/build_tools/make_linker_eo_script $* > .$@.ld
$(CMD_PREFIX) $(LD) -r -T .$@.ld -o $@ $<
Propchange: trunk/apps/
------------------------------------------------------------------------------
--- svn:ignore (added)
+++ svn:ignore Thu Feb 7 14:59:47 2008
@@ -1,0 +1,10 @@
+*.a
+*.d
+*.eo
+*.eoo
+*.i
+*.makeopts
+*.moduleinfo
+*.s
+*.so
+modules.link
Propchange: trunk/cdr/
------------------------------------------------------------------------------
--- svn:ignore (added)
+++ svn:ignore Thu Feb 7 14:59:47 2008
@@ -1,0 +1,10 @@
+*.a
+*.d
+*.eo
+*.eoo
+*.i
+*.makeopts
+*.moduleinfo
+*.s
+*.so
+modules.link
Propchange: trunk/channels/
------------------------------------------------------------------------------
--- svn:ignore (added)
+++ svn:ignore Thu Feb 7 14:59:47 2008
@@ -1,0 +1,10 @@
+*.a
+*.d
+*.eo
+*.eoo
+*.i
+*.makeopts
+*.moduleinfo
+*.s
+*.so
+modules.link
Propchange: trunk/channels/ooh323c/COPYING
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: trunk/channels/ooh323c/COPYING
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision
Propchange: trunk/channels/ooh323c/COPYING
------------------------------------------------------------------------------
svn:mime-type = text/plain
Propchange: trunk/channels/ooh323c/README
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: trunk/channels/ooh323c/README
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision
Propchange: trunk/channels/ooh323c/README
------------------------------------------------------------------------------
svn:mime-type = text/plain
Propchange: trunk/channels/ooh323c/src/Makefile.in
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: trunk/channels/ooh323c/src/Makefile.in
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision
Propchange: trunk/channels/ooh323c/src/Makefile.in
------------------------------------------------------------------------------
svn:mime-type = text/plain
Propchange: trunk/channels/ooh323c/src/context.c
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: trunk/channels/ooh323c/src/context.c
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision
Propchange: trunk/channels/ooh323c/src/context.c
------------------------------------------------------------------------------
svn:mime-type = text/plain
Propchange: trunk/channels/ooh323c/src/decode.c
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: trunk/channels/ooh323c/src/decode.c
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision
Propchange: trunk/channels/ooh323c/src/decode.c
------------------------------------------------------------------------------
svn:mime-type = text/plain
Propchange: trunk/channels/ooh323c/src/dlist.c
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: trunk/channels/ooh323c/src/dlist.c
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision
Propchange: trunk/channels/ooh323c/src/dlist.c
------------------------------------------------------------------------------
svn:mime-type = text/plain
Propchange: trunk/channels/ooh323c/src/dlist.h
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: trunk/channels/ooh323c/src/dlist.h
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision
Propchange: trunk/channels/ooh323c/src/dlist.h
------------------------------------------------------------------------------
svn:mime-type = text/plain
Propchange: trunk/channels/ooh323c/src/encode.c
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: trunk/channels/ooh323c/src/encode.c
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision
Propchange: trunk/channels/ooh323c/src/encode.c
------------------------------------------------------------------------------
svn:mime-type = text/plain
Propchange: trunk/channels/ooh323c/src/errmgmt.c
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: trunk/channels/ooh323c/src/errmgmt.c
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision
Propchange: trunk/channels/ooh323c/src/errmgmt.c
------------------------------------------------------------------------------
svn:mime-type = text/plain
Propchange: trunk/channels/ooh323c/src/eventHandler.c
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: trunk/channels/ooh323c/src/eventHandler.c
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision
Propchange: trunk/channels/ooh323c/src/eventHandler.c
------------------------------------------------------------------------------
svn:mime-type = text/plain
Propchange: trunk/channels/ooh323c/src/eventHandler.h
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: trunk/channels/ooh323c/src/eventHandler.h
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision
Propchange: trunk/channels/ooh323c/src/eventHandler.h
------------------------------------------------------------------------------
svn:mime-type = text/plain
Propchange: trunk/channels/ooh323c/src/h323/H235-SECURITY-MESSAGES.h
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: trunk/channels/ooh323c/src/h323/H235-SECURITY-MESSAGES.h
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision
Propchange: trunk/channels/ooh323c/src/h323/H235-SECURITY-MESSAGES.h
------------------------------------------------------------------------------
svn:mime-type = text/plain
Propchange: trunk/channels/ooh323c/src/h323/H235-SECURITY-MESSAGESDec.c
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: trunk/channels/ooh323c/src/h323/H235-SECURITY-MESSAGESDec.c
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision
Propchange: trunk/channels/ooh323c/src/h323/H235-SECURITY-MESSAGESDec.c
------------------------------------------------------------------------------
svn:mime-type = text/plain
Propchange: trunk/channels/ooh323c/src/h323/H235-SECURITY-MESSAGESEnc.c
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: trunk/channels/ooh323c/src/h323/H235-SECURITY-MESSAGESEnc.c
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision
Propchange: trunk/channels/ooh323c/src/h323/H235-SECURITY-MESSAGESEnc.c
------------------------------------------------------------------------------
svn:mime-type = text/plain
Propchange: trunk/channels/ooh323c/src/h323/H323-MESSAGES.c
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: trunk/channels/ooh323c/src/h323/H323-MESSAGES.c
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision
Propchange: trunk/channels/ooh323c/src/h323/H323-MESSAGES.c
------------------------------------------------------------------------------
svn:mime-type = text/plain
Propchange: trunk/channels/ooh323c/src/h323/H323-MESSAGES.h
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: trunk/channels/ooh323c/src/h323/H323-MESSAGES.h
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision
Propchange: trunk/channels/ooh323c/src/h323/H323-MESSAGES.h
------------------------------------------------------------------------------
svn:mime-type = text/plain
Propchange: trunk/channels/ooh323c/src/h323/H323-MESSAGESDec.c
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: trunk/channels/ooh323c/src/h323/H323-MESSAGESDec.c
[... 698 lines stripped ...]
More information about the asterisk-addons-commits
mailing list