2 # Asterisk -- An open source telephony toolkit.
6 # Copyright (C) 1999-2010, Digium, Inc.
8 # Mark Spencer <markster@digium.com>
10 # This program is free software, distributed under the terms of
11 # the GNU General Public License
14 # All Makefiles use the following variables:
16 # ASTCFLAGS - compiler options provided by the user (if any)
17 # _ASTCFLAGS - compiler options provided by the build system
18 # ASTLDFLAGS - linker flags (not libraries) provided by the user (if any)
19 # _ASTLDFLAGS - linker flags (not libraries) provided by the build system
20 # LIBS - additional libraries, at top-level for all links,
21 # on a single object just for that object
22 # SOLINK - linker flags used only for creating dynamically loadable modules
24 # DYLINK - linker flags used only for creating shared libaries
25 # (.so files on Unix-type platforms, .dylib on Darwin)
27 # Values for ASTCFLAGS and ASTLDFLAGS can be specified in the
28 # environment when running make, as follows:
30 # $ ASTCFLAGS="-Werror" make ...
32 # or as a variable value on the make command line itself:
34 # $ make ASTCFLAGS="-Werror" ...
36 export ASTTOPDIR # Top level dir, used in subdirs' Makefiles
37 export ASTERISKVERSION
38 export ASTERISKVERSIONNUM
40 #--- values used for default paths
42 # DESTDIR is the staging (or final) directory where files are copied
43 # during the install process. Define it before 'export', otherwise
44 # export will set it to the empty string making ?= fail.
45 # Trying to run asterisk from the DESTDIR is completely unsupported
47 # WARNING: do not put spaces or comments after the value.
48 DESTDIR?=$(INSTALL_PATH)
51 export INSTALL_PATH # Additional prefix for the following paths
52 export ASTETCDIR # Path for config files
68 export OSARCH # Operating system
70 export NOISY_BUILD # Used in Makefile.rules
71 export MENUSELECT_CFLAGS # Options selected in menuselect.
72 export AST_DEVMODE # Set to "yes" for additional compiler
74 export AST_DEVMODE_STRICT # Enables shadow warnings (-Wshadow)
76 export _SOLINK # linker flags for all shared objects
77 export SOLINK # linker flags for loadable modules
78 export DYLINK # linker flags for shared libraries
79 export STATIC_BUILD # Additional cflags, set to -static
80 # for static builds. Probably
81 # should go directly to ASTLDFLAGS
83 #--- paths to various commands
96 export WGET_EXTRA_ARGS
101 # even though we could use '-include makeopts' here, use a wildcard
102 # lookup anyway, so that make won't try to build makeopts if it doesn't
103 # exist (other rules will force it to be built if needed)
104 ifneq ($(wildcard makeopts),)
108 # start the primary CFLAGS and LDFLAGS with any that were provided
109 # to the configure script
110 _ASTCFLAGS:=$(CONFIG_CFLAGS)
111 _ASTLDFLAGS:=$(CONFIG_LDFLAGS)
113 # Some build systems, such as the one in openwrt, like to pass custom target
114 # CFLAGS and LDFLAGS in the COPTS and LDOPTS variables; these should also
115 # go before any build-system computed flags, since they are defaults, not
118 _ASTLDFLAGS+=$(LDOPTS)
121 _ASTCFLAGS+=$(LIBXML2_INCLUDE)
123 #Uncomment this to see all build commands instead of 'quiet' output
127 space:=$(empty) $(empty)
128 ASTTOPDIR:=$(subst $(space),\$(space),$(CURDIR))
130 # Overwite config files on "make samples"
133 # Include debug and macro symbols in the executables (-g) and profiling info (-pg)
136 # Asterisk.conf is located in ASTETCDIR or by using the -C flag
137 # when starting Asterisk
138 ASTCONFPATH=$(ASTETCDIR)/asterisk.conf
139 AGI_DIR=$(ASTDATADIR)/agi-bin
141 # If you use Apache, you may determine by a grep 'DocumentRoot' of your httpd.conf file
142 HTTP_DOCSDIR=/var/www/html
143 # Determine by a grep 'ScriptAlias' of your Apache httpd.conf file
144 HTTP_CGIDIR=/var/www/cgi-bin
146 # If your platform's linker expects a prefix on symbols generated from compiling C
147 # source files, set LINKER_SYMBOL_PREFIX to that value. On some systems, exported symbols
148 # from C source files are prefixed with '_', for example. If this value is not set
149 # properly, the linker scripts that live in the '*.exports' files in various places
150 # in this tree will unintentionally suppress symbols that should be visible
151 # in the final binary objects.
152 LINKER_SYMBOL_PREFIX=
154 # Uncomment this to use the older DSP routines
155 #_ASTCFLAGS+=-DOLD_DSP_ROUTINES
157 # If the file .asterisk.makeopts is present in your home directory, you can
158 # include all of your favorite menuselect options so that every time you download
159 # a new version of Asterisk, you don't have to run menuselect to set them.
160 # The file /etc/asterisk.makeopts will also be included but can be overridden
161 # by the file in your home directory.
163 GLOBAL_MAKEOPTS=$(wildcard /etc/asterisk.makeopts)
164 USER_MAKEOPTS=$(wildcard ~/.asterisk.makeopts)
166 MOD_SUBDIR_CFLAGS="-I$(ASTTOPDIR)/include"
167 OTHER_SUBDIR_CFLAGS="-I$(ASTTOPDIR)/include"
169 # Create OPTIONS variable, but probably we can assign directly to ASTCFLAGS
172 ifeq ($(OSARCH),linux-gnu)
173 # flag to tell 'ldconfig' to only process specified directories
177 ifeq ($(findstring -save-temps,$(_ASTCFLAGS) $(ASTCFLAGS)),)
178 ifeq ($(findstring -pipe,$(_ASTCFLAGS) $(ASTCFLAGS)),)
183 ifeq ($(findstring -Wall,$(_ASTCFLAGS) $(ASTCFLAGS)),)
187 _ASTCFLAGS+=-Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations $(AST_NESTED_FUNCTIONS) $(DEBUG)
190 ifeq ($(AST_DEVMODE),yes)
193 _ASTCFLAGS+=$(AST_DECLARATION_AFTER_STATEMENT)
194 _ASTCFLAGS+=$(AST_FORTIFY_SOURCE)
195 _ASTCFLAGS+=$(AST_TRAMPOLINES)
197 _ASTCFLAGS+=-Wmissing-format-attribute
198 _ASTCFLAGS+=-Wformat=2
199 ifeq ($(AST_DEVMODE_STRICT),yes)
202 ADDL_TARGETS+=validate-docs
205 ifneq ($(findstring BSD,$(OSARCH)),)
206 _ASTCFLAGS+=-isystem /usr/local/include
209 ifeq ($(OSARCH),FreeBSD)
210 # -V is understood by BSD Make, not by GNU make.
211 BSDVERSION=$(shell make -V OSVERSION -f /usr/share/mk/bsd.port.subdir.mk)
212 _ASTCFLAGS+=$(shell if test $(BSDVERSION) -lt 500016 ; then echo "-D_THREAD_SAFE"; fi)
213 # flag to tell 'ldconfig' to only process specified directories
217 ifeq ($(OSARCH),NetBSD)
218 _ASTCFLAGS+=-pthread -I/usr/pkg/include
221 ifeq ($(OSARCH),OpenBSD)
222 _ASTCFLAGS+=-pthread -ftrampolines
225 ifeq ($(OSARCH),SunOS)
226 _ASTCFLAGS+=-Wcast-align -DSOLARIS -I../include/solaris-compat -I/opt/ssl/include -I/usr/local/ssl/include -D_XPG4_2 -D__EXTENSIONS__
229 ASTERISKVERSION:=$(shell GREP=$(GREP) AWK=$(AWK) GIT=$(GIT) build_tools/make_version .)
231 ifneq ($(wildcard .version),)
232 ASTERISKVERSIONNUM:=$(shell $(AWK) -F. '{printf "%01d%02d%02d", $$1, $$2, $$3}' .version)
235 ifneq ($(wildcard .svn),)
236 ASTERISKVERSIONNUM:=999999
239 _ASTCFLAGS+=$(OPTIONS)
241 MOD_SUBDIRS:=channels pbx apps codecs formats cdr cel bridges funcs tests main res addons $(LOCAL_MOD_SUBDIRS)
242 OTHER_SUBDIRS:=utils agi
243 SUBDIRS:=$(OTHER_SUBDIRS) $(MOD_SUBDIRS)
244 SUBDIRS_INSTALL:=$(SUBDIRS:%=%-install)
245 SUBDIRS_CLEAN:=$(SUBDIRS:%=%-clean)
246 SUBDIRS_DIST_CLEAN:=$(SUBDIRS:%=%-dist-clean)
247 SUBDIRS_UNINSTALL:=$(SUBDIRS:%=%-uninstall)
248 MOD_SUBDIRS_EMBED_LDSCRIPT:=$(MOD_SUBDIRS:%=%-embed-ldscript)
249 MOD_SUBDIRS_EMBED_LDFLAGS:=$(MOD_SUBDIRS:%=%-embed-ldflags)
250 MOD_SUBDIRS_EMBED_LIBS:=$(MOD_SUBDIRS:%=%-embed-libs)
251 MOD_SUBDIRS_MENUSELECT_TREE:=$(MOD_SUBDIRS:%=%-menuselect-tree)
253 ifneq ($(findstring darwin,$(OSARCH)),)
254 _ASTCFLAGS+=-D__Darwin__
255 _SOLINK=-Xlinker -macosx_version_min -Xlinker 10.4 -Xlinker -undefined -Xlinker dynamic_lookup -force_flat_namespace
256 ifeq ($(shell if test `/usr/bin/sw_vers -productVersion | cut -c4` -gt 5; then echo 6; else echo 0; fi),6)
257 _SOLINK+=/usr/lib/bundle1.o
259 SOLINK=-bundle $(_SOLINK)
260 DYLINK=-Xlinker -dylib $(_SOLINK)
261 _ASTLDFLAGS+=-L/usr/local/lib
263 # These are used for all but Darwin
266 ifneq ($(findstring BSD,$(OSARCH)),)
267 _ASTLDFLAGS+=-L/usr/local/lib
271 ifeq ($(OSARCH),SunOS)
272 SOLINK=-shared -fpic -L/usr/local/ssl/lib -lrt
276 ifeq ($(OSARCH),OpenBSD)
281 # comment to print directories during submakes
284 ifneq ($(INSIDE_EMACS),)
288 SILENTMAKE:=$(MAKE) --quiet --no-print-directory
289 ifneq ($(PRINT_DIR)$(NOISY_BUILD),)
292 SUBMAKE:=$(MAKE) --quiet --no-print-directory
295 # $(MAKE) is printed in several places, and we want it to be a
296 # fixed size string. Define a variable whose name has also the
297 # same size, so we can easily align text.
298 ifeq ($(MAKE), gmake)
305 @echo " +--------- Asterisk Build Complete ---------+"
306 @echo " + Asterisk has successfully been built, and +"
307 @echo " + can be installed by running: +"
309 @echo " + $(mK) install +"
310 @echo " +-------------------------------------------+"
312 full: _cleantest_all_full
313 @echo " +--------- Asterisk Build Complete ---------+"
314 @echo " + Asterisk has successfully been built, and +"
315 @echo " + can be installed by running: +"
317 @echo " + $(mK) install +"
318 @echo " +-------------------------------------------+"
321 # For parallel builds, we must call cleantest *before* running the
322 # other dependencies on _all.
323 _cleantest_all: cleantest
326 # For parallel builds, we must call cleantest *before* running the
327 # other dependencies on _all.
328 _cleantest_all_full: cleantest
331 _all: makeopts $(SUBDIRS) doc/core-en_US.xml $(ADDL_TARGETS)
333 _all_full: makeopts $(SUBDIRS) doc/full-en_US.xml $(ADDL_TARGETS)
337 @echo "**** The configure script must be executed before running '$(MAKE)'."
338 @echo "**** Please run \"./configure\"."
342 menuselect.makeopts: menuselect/menuselect menuselect-tree makeopts build_tools/menuselect-deps $(GLOBAL_MAKEOPTS) $(USER_MAKEOPTS)
343 ifeq ($(filter %menuselect,$(MAKECMDGOALS)),)
344 menuselect/menuselect --check-deps $@
345 menuselect/menuselect --check-deps $@ $(GLOBAL_MAKEOPTS) $(USER_MAKEOPTS)
348 $(MOD_SUBDIRS_EMBED_LDSCRIPT):
349 +@echo "EMBED_LDSCRIPTS+="`$(SILENTMAKE) -C $(@:-embed-ldscript=) SUBDIR=$(@:-embed-ldscript=) __embed_ldscript` >> makeopts.embed_rules
351 $(MOD_SUBDIRS_EMBED_LDFLAGS):
352 +@echo "EMBED_LDFLAGS+="`$(SILENTMAKE) -C $(@:-embed-ldflags=) SUBDIR=$(@:-embed-ldflags=) __embed_ldflags` >> makeopts.embed_rules
354 $(MOD_SUBDIRS_EMBED_LIBS):
355 +@echo "EMBED_LIBS+="`$(SILENTMAKE) -C $(@:-embed-libs=) SUBDIR=$(@:-embed-libs=) __embed_libs` >> makeopts.embed_rules
357 $(MOD_SUBDIRS_MENUSELECT_TREE):
358 +@$(SUBMAKE) -C $(@:-menuselect-tree=) SUBDIR=$(@:-menuselect-tree=) moduleinfo
359 +@$(SUBMAKE) -C $(@:-menuselect-tree=) SUBDIR=$(@:-menuselect-tree=) makeopts
361 makeopts.embed_rules: menuselect.makeopts
362 @echo "Generating embedded module rules ..."
364 +@$(SUBMAKE) $(MOD_SUBDIRS_EMBED_LDSCRIPT)
365 +@$(SUBMAKE) $(MOD_SUBDIRS_EMBED_LDFLAGS)
366 +@$(SUBMAKE) $(MOD_SUBDIRS_EMBED_LIBS)
368 $(SUBDIRS): main/version.c include/asterisk/build.h include/asterisk/buildopts.h defaults.h makeopts.embed_rules
370 ifeq ($(findstring $(OSARCH), mingw32 cygwin ),)
372 # ensure that all module subdirectories are processed before 'main' during
373 # a parallel build, since if there are modules selected to be embedded the
374 # directories containing them must be completed before the main Asterisk
375 # binary can be built
376 main: $(filter-out main,$(MOD_SUBDIRS))
378 # Windows: we need to build main (i.e. the asterisk dll) first,
379 # followed by res, followed by the other directories, because
380 # dll symbols must be resolved during linking and not at runtime.
381 D1:= $(filter-out main,$(MOD_SUBDIRS))
382 D1:= $(filter-out res,$(D1))
389 +@_ASTCFLAGS="$(MOD_SUBDIR_CFLAGS) $(_ASTCFLAGS)" ASTCFLAGS="$(ASTCFLAGS)" _ASTLDFLAGS="$(_ASTLDFLAGS)" ASTLDFLAGS="$(ASTLDFLAGS)" $(SUBMAKE) --no-builtin-rules -C $@ SUBDIR=$@ all
392 +@_ASTCFLAGS="$(OTHER_SUBDIR_CFLAGS) $(_ASTCFLAGS)" ASTCFLAGS="$(ASTCFLAGS)" _ASTLDFLAGS="$(_ASTLDFLAGS)" ASTLDFLAGS="$(ASTLDFLAGS)" $(SUBMAKE) --no-builtin-rules -C $@ SUBDIR=$@ all
394 defaults.h: makeopts build_tools/make_defaults_h
395 @build_tools/make_defaults_h > $@.tmp
396 @cmp -s $@.tmp $@ || mv $@.tmp $@
399 main/version.c: FORCE
400 @build_tools/make_version_c > $@.tmp
401 @cmp -s $@.tmp $@ || mv $@.tmp $@
404 include/asterisk/buildopts.h: menuselect.makeopts
405 @build_tools/make_buildopts_h > $@.tmp
406 @cmp -s $@.tmp $@ || mv $@.tmp $@
409 include/asterisk/build.h:
410 @build_tools/make_build_h > $@.tmp
411 @cmp -s $@.tmp $@ || mv $@.tmp $@
415 +@$(SUBMAKE) -C $(@:-clean=) clean
417 $(SUBDIRS_DIST_CLEAN):
418 +@$(SUBMAKE) -C $(@:-dist-clean=) dist-clean
420 clean: $(SUBDIRS_CLEAN) _clean
424 rm -f include/asterisk/build.h
426 rm -f doc/core-en_US.xml
427 rm -f doc/full-en_US.xml
428 @$(MAKE) -C menuselect clean
429 cp -f .cleancount .lastclean
431 dist-clean: distclean
433 distclean: $(SUBDIRS_DIST_CLEAN) _clean
434 @$(MAKE) -C menuselect dist-clean
435 @$(MAKE) -C sounds dist-clean
436 rm -f menuselect.makeopts makeopts menuselect-tree menuselect.makedeps
437 rm -f makeopts.embed_rules
438 rm -f config.log config.status config.cache
439 rm -rf autom4te.cache
440 rm -f include/asterisk/autoconfig.h
441 rm -f include/asterisk/buildopts.h
443 rm -f build_tools/menuselect-deps
445 datafiles: _cleantest_all doc/core-en_US.xml
446 CFLAGS="$(_ASTCFLAGS) $(ASTCFLAGS)" build_tools/mkpkgconfig "$(DESTDIR)$(libdir)/pkgconfig";
447 # Should static HTTP be installed during make samples or even with its own target ala
448 # webvoicemail? There are portions here that *could* be customized but might also be
449 # improved a lot. I'll put it here for now.
451 for x in static-http/*; do \
452 $(INSTALL) -m 644 $$x "$(DESTDIR)$(ASTDATADIR)/static-http" ; \
454 $(INSTALL) -m 644 doc/core-en_US.xml "$(DESTDIR)$(ASTDATADIR)/static-http";
455 if [ -d doc/tex/asterisk ] ; then \
456 $(INSTALL) -d "$(DESTDIR)$(ASTDATADIR)/static-http/docs" ; \
457 for n in doc/tex/asterisk/* ; do \
458 $(INSTALL) -m 644 $$n "$(DESTDIR)$(ASTDATADIR)/static-http/docs" ; \
461 for x in images/*.jpg; do \
462 $(INSTALL) -m 644 $$x "$(DESTDIR)$(ASTDATADIR)/images" ; \
464 $(MAKE) -C sounds install
466 doc/core-en_US.xml: $(foreach dir,$(MOD_SUBDIRS),$(shell $(GREP) -l "language=\"en_US\"" $(dir)/*.c $(dir)/*.cc 2>/dev/null))
467 @printf "Building Documentation For: "
468 @echo "<?xml version=\"1.0\" encoding=\"UTF-8\"?>" > $@
469 @echo "<!DOCTYPE docs SYSTEM \"appdocsxml.dtd\">" >> $@
470 @echo "<docs xmlns:xi=\"http://www.w3.org/2001/XInclude\">" >> $@
471 @for x in $(MOD_SUBDIRS); do \
473 for i in $$x/*.c; do \
474 $(AWK) -f build_tools/get_documentation $$i >> $@ ; \
478 @echo "</docs>" >> $@
480 doc/full-en_US.xml: $(foreach dir,$(MOD_SUBDIRS),$(shell $(GREP) -l "language=\"en_US\"" $(dir)/*.c $(dir)/*.cc 2>/dev/null))
482 @echo "--------------------------------------------------------------------------"
483 @echo "--- Please install python to build full documentation ---"
484 @echo "--------------------------------------------------------------------------"
486 @printf "Building Documentation For: "
487 @echo "<?xml version=\"1.0\" encoding=\"UTF-8\"?>" > $@
488 @echo "<!DOCTYPE docs SYSTEM \"appdocsxml.dtd\">" >> $@
489 @echo "<docs xmlns:xi=\"http://www.w3.org/2001/XInclude\">" >> $@
490 @for x in $(MOD_SUBDIRS); do \
492 for i in $$x/*.c; do \
493 $(PYTHON) build_tools/get_documentation.py < $$i >> $@ ; \
497 @echo "</docs>" >> $@
498 @$(PYTHON) build_tools/post_process_documentation.py -i $@ -o "doc/core-en_US.xml"
501 validate-docs: doc/core-en_US.xml
502 ifeq ($(XMLSTARLET)$(XMLLINT),::)
503 @echo "--------------------------------------------------------------------------"
504 @echo "--- Please install xmllint or xmlstarlet to validate the documentation ---"
505 @echo "--------------------------------------------------------------------------"
508 $(XMLLINT) --dtdvalid doc/appdocsxml.dtd --noout $<
510 $(XMLSTARLET) val -d doc/appdocsxml.dtd $<
515 @if [ -d .svn ]; then \
516 echo "Updating from Subversion..." ; \
517 fromrev="`svn info | $(AWK) '/Revision: / {print $$2}'`"; \
518 svn update | tee update.out; \
519 torev="`svn info | $(AWK) '/Revision: / {print $$2}'`"; \
520 echo "`date` Updated from revision $${fromrev} to $${torev}." >> update.log; \
522 if [ `grep -c ^C update.out` -gt 0 ]; then \
523 echo ; echo "The following files have conflicts:" ; \
524 grep ^C update.out | cut -b4- ; \
528 echo "Not under version control"; \
531 NEWHEADERS=$(notdir $(wildcard include/asterisk/*.h))
532 OLDHEADERS=$(filter-out $(NEWHEADERS) $(notdir $(DESTDIR)$(ASTHEADERDIR)),$(notdir $(wildcard $(DESTDIR)$(ASTHEADERDIR)/*.h)))
533 INSTALLDIRS="$(ASTLIBDIR)" "$(ASTMODDIR)" "$(ASTSBINDIR)" "$(ASTETCDIR)" "$(ASTVARRUNDIR)" \
534 "$(ASTSPOOLDIR)" "$(ASTSPOOLDIR)/dictate" "$(ASTSPOOLDIR)/meetme" \
535 "$(ASTSPOOLDIR)/monitor" "$(ASTSPOOLDIR)/system" "$(ASTSPOOLDIR)/tmp" \
536 "$(ASTSPOOLDIR)/voicemail" "$(ASTHEADERDIR)" "$(ASTHEADERDIR)/doxygen" \
537 "$(ASTLOGDIR)" "$(ASTLOGDIR)/cdr-csv" "$(ASTLOGDIR)/cdr-custom" \
538 "$(ASTLOGDIR)/cel-custom" "$(ASTDATADIR)" "$(ASTDATADIR)/documentation" \
539 "$(ASTDATADIR)/documentation/thirdparty" "$(ASTDATADIR)/firmware" \
540 "$(ASTDATADIR)/firmware/iax" "$(ASTDATADIR)/images" "$(ASTDATADIR)/keys" \
541 "$(ASTDATADIR)/phoneprov" "$(ASTDATADIR)/static-http" "$(ASTDATADIR)/sounds" \
542 "$(ASTDATADIR)/moh" "$(ASTMANDIR)/man8" "$(AGI_DIR)" "$(ASTDBDIR)"
545 @for i in $(INSTALLDIRS); do \
546 if [ ! -z "$${i}" -a ! -d "$(DESTDIR)$${i}" ]; then \
547 $(INSTALL) -d "$(DESTDIR)$${i}"; \
552 +@DESTDIR="$(DESTDIR)" ASTSBINDIR="$(ASTSBINDIR)" ASTLIBDIR="$(ASTLIBDIR)" $(SUBMAKE) -C main bininstall
554 bininstall: _cleantest_all installdirs $(SUBDIRS_INSTALL) main-bininstall
555 $(INSTALL) -m 755 contrib/scripts/astgenkey "$(DESTDIR)$(ASTSBINDIR)/"
556 $(INSTALL) -m 755 contrib/scripts/autosupport "$(DESTDIR)$(ASTSBINDIR)/"
557 if [ ! -f "$(DESTDIR)$(ASTSBINDIR)/safe_asterisk" -a ! -f /sbin/launchd ]; then \
558 cat contrib/scripts/safe_asterisk | sed 's|__ASTERISK_SBIN_DIR__|$(ASTSBINDIR)|;s|__ASTERISK_VARRUN_DIR__|$(ASTVARRUNDIR)|;s|__ASTERISK_LOG_DIR__|$(ASTLOGDIR)|;' > contrib/scripts/safe.tmp ; \
559 $(INSTALL) -m 755 contrib/scripts/safe.tmp "$(DESTDIR)$(ASTSBINDIR)/safe_asterisk" ; \
560 rm -f contrib/scripts/safe.tmp ; \
562 $(INSTALL) -m 644 include/asterisk.h "$(DESTDIR)$(includedir)"
563 $(INSTALL) -m 644 include/asterisk/*.h "$(DESTDIR)$(ASTHEADERDIR)"
564 $(INSTALL) -m 644 include/asterisk/doxygen/*.h "$(DESTDIR)$(ASTHEADERDIR)/doxygen"
565 if [ -n "$(OLDHEADERS)" ]; then \
566 for h in $(OLDHEADERS); do rm -f "$(DESTDIR)$(ASTHEADERDIR)/$$h"; done \
569 $(INSTALL) -m 644 doc/core-*.xml "$(DESTDIR)$(ASTDATADIR)/documentation"
570 $(INSTALL) -m 644 doc/appdocsxml.dtd "$(DESTDIR)$(ASTDATADIR)/documentation"
571 $(INSTALL) -m 644 doc/asterisk.8 "$(DESTDIR)$(ASTMANDIR)/man8"
572 $(INSTALL) -m 644 contrib/scripts/astgenkey.8 "$(DESTDIR)$(ASTMANDIR)/man8"
573 $(INSTALL) -m 644 contrib/scripts/autosupport.8 "$(DESTDIR)$(ASTMANDIR)/man8"
574 $(INSTALL) -m 644 contrib/scripts/safe_asterisk.8 "$(DESTDIR)$(ASTMANDIR)/man8"
575 if [ -f contrib/firmware/iax/iaxy.bin ] ; then \
576 $(INSTALL) -m 644 contrib/firmware/iax/iaxy.bin "$(DESTDIR)$(ASTDATADIR)/firmware/iax/iaxy.bin"; \
580 +@DESTDIR="$(DESTDIR)" ASTSBINDIR="$(ASTSBINDIR)" $(SUBMAKE) -C $(@:-install=) install
582 NEWMODS:=$(foreach d,$(MOD_SUBDIRS),$(notdir $(wildcard $(d)/*.so)))
583 OLDMODS=$(filter-out $(NEWMODS) $(notdir $(DESTDIR)$(ASTMODDIR)),$(notdir $(wildcard $(DESTDIR)$(ASTMODDIR)/*.so)))
586 @if [ -n "$(OLDMODS)" ]; then \
587 echo " WARNING WARNING WARNING" ;\
589 echo " Your Asterisk modules directory, located at" ;\
590 echo " $(DESTDIR)$(ASTMODDIR)" ;\
591 echo " contains modules that were not installed by this " ;\
592 echo " version of Asterisk. Please ensure that these" ;\
593 echo " modules are compatible with this version before" ;\
594 echo " attempting to run Asterisk." ;\
596 for f in $(OLDMODS); do \
600 echo " WARNING WARNING WARNING" ;\
604 ifneq ($(findstring ~,$(DESTDIR)),)
605 @echo "Your shell doesn't do ~ expansion when expected (specifically, when doing \"make install DESTDIR=~/path\")."
606 @echo "Try replacing ~ with \$$HOME, as in \"make install DESTDIR=\$$HOME/path\"."
610 install: badshell bininstall datafiles
611 @if [ -x /usr/sbin/asterisk-post-install ]; then \
612 /usr/sbin/asterisk-post-install "$(DESTDIR)" . ; \
614 @echo " +---- Asterisk Installation Complete -------+"
616 @echo " + YOU MUST READ THE SECURITY DOCUMENT +"
618 @echo " + Asterisk has successfully been installed. +"
619 @echo " + If you would like to install the sample +"
620 @echo " + configuration files (overwriting any +"
621 @echo " + existing config files), run: +"
623 @echo " + $(mK) samples +"
625 @echo " +----------------- or ---------------------+"
627 @echo " + You can go ahead and install the asterisk +"
628 @echo " + program documentation now or later run: +"
630 @echo " + $(mK) progdocs +"
632 @echo " + **Note** This requires that you have +"
633 @echo " + doxygen installed on your local system +"
634 @echo " +-------------------------------------------+"
635 @$(MAKE) -s oldmodcheck
641 # XXX why *.adsi is installed first ?
643 @echo Installing adsi config files...
644 $(INSTALL) -d "$(DESTDIR)$(ASTETCDIR)"
645 @for x in configs/*.adsi; do \
646 dst="$(DESTDIR)$(ASTETCDIR)/`$(BASENAME) $$x`" ; \
647 if [ -f "$${dst}" ] ; then \
648 echo "Overwriting $$x" ; \
650 echo "Installing $$x" ; \
652 $(INSTALL) -m 644 "$$x" "$(DESTDIR)$(ASTETCDIR)/`$(BASENAME) $$x`" ; \
656 @echo Installing other config files...
657 @for x in configs/*.sample; do \
658 dst="$(DESTDIR)$(ASTETCDIR)/`$(BASENAME) $$x .sample`" ; \
659 if [ -f "$${dst}" ]; then \
660 if [ "$(OVERWRITE)" = "y" ]; then \
661 if cmp -s "$${dst}" "$$x" ; then \
662 echo "Config file $$x is unchanged"; \
665 mv -f "$${dst}" "$${dst}.old" ; \
667 echo "Skipping config file $$x"; \
671 echo "Installing file $$x"; \
672 $(INSTALL) -m 644 "$$x" "$${dst}" ;\
674 if [ "$(OVERWRITE)" = "y" ]; then \
675 echo "Updating asterisk.conf" ; \
676 sed -e 's|^astetcdir.*$$|astetcdir => $(ASTETCDIR)|' \
677 -e 's|^astmoddir.*$$|astmoddir => $(ASTMODDIR)|' \
678 -e 's|^astvarlibdir.*$$|astvarlibdir => $(ASTVARLIBDIR)|' \
679 -e 's|^astdbdir.*$$|astdbdir => $(ASTDBDIR)|' \
680 -e 's|^astkeydir.*$$|astkeydir => $(ASTKEYDIR)|' \
681 -e 's|^astdatadir.*$$|astdatadir => $(ASTDATADIR)|' \
682 -e 's|^astagidir.*$$|astagidir => $(AGI_DIR)|' \
683 -e 's|^astspooldir.*$$|astspooldir => $(ASTSPOOLDIR)|' \
684 -e 's|^astrundir.*$$|astrundir => $(ASTVARRUNDIR)|' \
685 -e 's|^astlogdir.*$$|astlogdir => $(ASTLOGDIR)|' \
686 -e 's|^astsbindir.*$$|astsbindir => $(ASTSBINDIR)|' \
687 "$(DESTDIR)$(ASTCONFPATH)" > "$(DESTDIR)$(ASTCONFPATH).tmp" ; \
688 $(INSTALL) -m 644 "$(DESTDIR)$(ASTCONFPATH).tmp" "$(DESTDIR)$(ASTCONFPATH)" ; \
689 rm -f "$(DESTDIR)$(ASTCONFPATH).tmp" ; \
691 $(INSTALL) -d "$(DESTDIR)$(ASTSPOOLDIR)/voicemail/default/1234/INBOX"
692 build_tools/make_sample_voicemail "$(DESTDIR)/$(ASTDATADIR)" "$(DESTDIR)/$(ASTSPOOLDIR)"
694 @for x in phoneprov/*; do \
695 dst="$(DESTDIR)$(ASTDATADIR)/$$x" ; \
696 if [ -f "$${dst}" ]; then \
697 if [ "$(OVERWRITE)" = "y" ]; then \
698 if cmp -s "$${dst}" "$$x" ; then \
699 echo "Config file $$x is unchanged"; \
702 mv -f "$${dst}" "$${dst}.old" ; \
704 echo "Skipping config file $$x"; \
708 echo "Installing file $$x"; \
709 $(INSTALL) -m 644 "$$x" "$${dst}" ;\
713 @[ -d "$(DESTDIR)$(HTTP_DOCSDIR)/" ] || ( printf "http docs directory not found.\nUpdate assignment of variable HTTP_DOCSDIR in Makefile!\n" && exit 1 )
714 @[ -d "$(DESTDIR)$(HTTP_CGIDIR)" ] || ( printf "cgi-bin directory not found.\nUpdate assignment of variable HTTP_CGIDIR in Makefile!\n" && exit 1 )
715 $(INSTALL) -m 4755 contrib/scripts/vmail.cgi "$(DESTDIR)$(HTTP_CGIDIR)/vmail.cgi"
716 $(INSTALL) -d "$(DESTDIR)$(HTTP_DOCSDIR)/_asterisk"
717 for x in images/*.gif; do \
718 $(INSTALL) -m 644 $$x "$(DESTDIR)$(HTTP_DOCSDIR)/_asterisk/"; \
720 @echo " +--------- Asterisk Web Voicemail ----------+"
722 @echo " + Asterisk Web Voicemail is installed in +"
723 @echo " + your cgi-bin directory: +"
724 @echo " + $(DESTDIR)$(HTTP_CGIDIR)"
725 @echo " + IT USES A SETUID ROOT PERL SCRIPT, SO +"
726 @echo " + IF YOU DON'T LIKE THAT, UNINSTALL IT! +"
728 @echo " + Other static items have been stored in: +"
729 @echo " + $(DESTDIR)$(HTTP_DOCSDIR)"
731 @echo " + If these paths do not match your httpd +"
732 @echo " + installation, correct the definitions +"
733 @echo " + in your Makefile of HTTP_CGIDIR and +"
734 @echo " + HTTP_DOCSDIR +"
736 @echo " +-------------------------------------------+"
739 # Note, Makefile conditionals must not be tabbed out. Wasted hours with that.
741 @echo "Doxygen is not installed. Please install and re-run the configuration script."
744 @echo "DOT is not installed. Doxygen will not produce any diagrams. Please install and re-run the configuration script."
747 @echo "HAVE_DOT = YES" >> contrib/asterisk-ng-doxygen
749 # Set Doxygen PROJECT_NUMBER variable
750 ifneq ($(ASTERISKVERSION),UNKNOWN__and_probably_unsupported)
751 @echo "PROJECT_NUMBER = $(ASTERISKVERSION)" >> contrib/asterisk-ng-doxygen
753 echo "Asterisk Version is unknown, not configuring Doxygen PROJECT_NUMBER."
755 # Validate Doxygen Configuration
756 @doxygen -u contrib/asterisk-ng-doxygen
758 @doxygen contrib/asterisk-ng-doxygen
759 # Remove configuration backup file
760 @rm -f contrib/asterisk-ng-doxygen.bak
764 if [ ! -d "$(DESTDIR)$(ASTETCDIR)/../logrotate.d" ]; then \
765 $(INSTALL) -d "$(DESTDIR)$(ASTETCDIR)/../logrotate.d" ; \
767 sed 's#__LOGDIR__#$(ASTLOGDIR)#g' < contrib/scripts/asterisk.logrotate | sed 's#__SBINDIR__#$(ASTSBINDIR)#g' > contrib/scripts/asterisk.logrotate.tmp
768 $(INSTALL) -m 0644 contrib/scripts/asterisk.logrotate.tmp "$(DESTDIR)$(ASTETCDIR)/../logrotate.d/asterisk"
769 rm -f contrib/scripts/asterisk.logrotate.tmp
772 @if [ "${OSARCH}" = "linux-gnu" ]; then \
773 if [ -f /etc/redhat-release -o -f /etc/fedora-release ]; then \
774 cat contrib/init.d/rc.redhat.asterisk | sed 's|__ASTERISK_ETC_DIR__|$(ASTETCDIR)|;s|__ASTERISK_SBIN_DIR__|$(ASTSBINDIR)|;s|__ASTERISK_VARRUN_DIR__|$(ASTVARRUNDIR)|;' > contrib/init.d/rc.asterisk.tmp ; \
775 $(INSTALL) -m 755 contrib/init.d/rc.asterisk.tmp "$(DESTDIR)/etc/rc.d/init.d/asterisk" ; \
776 rm -f contrib/init.d/rc.asterisk.tmp ; \
777 if [ ! -f "$(DESTDIR)/etc/sysconfig/asterisk" ] ; then \
778 $(INSTALL) -m 644 contrib/init.d/etc_default_asterisk "$(DESTDIR)/etc/sysconfig/asterisk" ; \
780 if [ -z "$(DESTDIR)" ] ; then \
781 /sbin/chkconfig --add asterisk ; \
783 elif [ -f /etc/debian_version ] ; then \
784 cat contrib/init.d/rc.debian.asterisk | sed 's|__ASTERISK_ETC_DIR__|$(ASTETCDIR)|;s|__ASTERISK_SBIN_DIR__|$(ASTSBINDIR)|;s|__ASTERISK_VARRUN_DIR__|$(ASTVARRUNDIR)|;' > contrib/init.d/rc.asterisk.tmp ; \
785 $(INSTALL) -m 755 contrib/init.d/rc.asterisk.tmp "$(DESTDIR)/etc/init.d/asterisk" ; \
786 rm -f contrib/init.d/rc.asterisk.tmp ; \
787 if [ ! -f "$(DESTDIR)/etc/default/asterisk" ] ; then \
788 $(INSTALL) -m 644 contrib/init.d/etc_default_asterisk "$(DESTDIR)/etc/default/asterisk" ; \
790 if [ -z "$(DESTDIR)" ] ; then \
791 /usr/sbin/update-rc.d asterisk defaults 50 91 ; \
793 elif [ -f /etc/gentoo-release ] ; then \
794 cat contrib/init.d/rc.gentoo.asterisk | sed 's|__ASTERISK_ETC_DIR__|$(ASTETCDIR)|;s|__ASTERISK_SBIN_DIR__|$(ASTSBINDIR)|;s|__ASTERISK_VARRUN_DIR__|$(ASTVARRUNDIR)|;' > contrib/init.d/rc.asterisk.tmp ; \
795 $(INSTALL) -m 755 contrib/init.d/rc.asterisk.tmp "$(DESTDIR)/etc/init.d/asterisk" ; \
796 rm -f contrib/init.d/rc.asterisk.tmp ; \
797 if [ -z "$(DESTDIR)" ] ; then \
798 /sbin/rc-update add asterisk default ; \
800 elif [ -f /etc/mandrake-release -o -f /etc/mandriva-release ] ; then \
801 cat contrib/init.d/rc.mandriva.asterisk | sed 's|__ASTERISK_ETC_DIR__|$(ASTETCDIR)|;s|__ASTERISK_SBIN_DIR__|$(ASTSBINDIR)|;s|__ASTERISK_VARRUN_DIR__|$(ASTVARRUNDIR)|;' > contrib/init.d/rc.asterisk.tmp ; \
802 $(INSTALL) -m 755 contrib/init.d/rc.asterisk.tmp "$(DESTDIR)/etc/rc.d/init.d/asterisk" ; \
803 rm -f contrib/init.d/rc.asterisk.tmp ; \
804 if [ ! -f /etc/sysconfig/asterisk ] ; then \
805 $(INSTALL) -m 644 contrib/init.d/etc_default_asterisk "$(DESTDIR)/etc/sysconfig/asterisk" ; \
807 if [ -z "$(DESTDIR)" ] ; then \
808 /sbin/chkconfig --add asterisk ; \
810 elif [ -f /etc/SuSE-release -o -f /etc/novell-release ] ; then \
811 cat contrib/init.d/rc.suse.asterisk | sed 's|__ASTERISK_ETC_DIR__|$(ASTETCDIR)|;s|__ASTERISK_SBIN_DIR__|$(ASTSBINDIR)|;s|__ASTERISK_VARRUN_DIR__|$(ASTVARRUNDIR)|;' > contrib/init.d/rc.asterisk.tmp ; \
812 $(INSTALL) -m 755 contrib/init.d/rc.asterisk.tmp "$(DESTDIR)/etc/init.d/asterisk" ;\
813 rm -f contrib/init.d/rc.asterisk.tmp ; \
814 if [ ! -f /etc/sysconfig/asterisk ] ; then \
815 $(INSTALL) -m 644 contrib/init.d/etc_default_asterisk "$(DESTDIR)/etc/sysconfig/asterisk" ; \
817 if [ -z "$(DESTDIR)" ] ; then \
818 /sbin/chkconfig --add asterisk ; \
820 elif [ -f /etc/arch-release -o -f /etc/arch-release ] ; then \
821 cat contrib/init.d/rc.archlinux.asterisk | sed 's|__ASTERISK_ETC_DIR__|$(ASTETCDIR)|;s|__ASTERISK_SBIN_DIR__|$(ASTSBINDIR)|;s|__ASTERISK_VARRUN_DIR__|$(ASTVARRUNDIR)|;' > contrib/init.d/rc.asterisk.tmp ; \
822 $(INSTALL) -m 755 contrib/init.d/rc.asterisk.tmp "$(DESTDIR)/etc/rc.d/asterisk" ; \
823 rm -f contrib/init.d/rc.asterisk.tmp ; \
824 elif [ -d "$(DESTDIR)/Library/LaunchDaemons" ]; then \
825 if [ ! -f "$(DESTDIR)/Library/LaunchDaemons/org.asterisk.asterisk.plist" ]; then \
826 sed 's|__ASTERISK_SBIN_DIR__|$(ASTSBINDIR)|;' < contrib/init.d/org.asterisk.asterisk.plist > asterisk.plist ; \
827 $(INSTALL) -m 644 asterisk.plist "$(DESTDIR)/Library/LaunchDaemons/org.asterisk.asterisk.plist"; \
828 rm -f asterisk.plist; \
830 if [ ! -f "$(DESTDIR)/Library/LaunchDaemons/org.asterisk.muted.plist" ]; then \
831 sed 's|__ASTERISK_SBIN_DIR__|$(ASTSBINDIR)|;' < contrib/init.d/org.asterisk.muted.plist > muted.plist ; \
832 $(INSTALL) -m 644 muted.plist "$(DESTDIR)/Library/LaunchDaemons/org.asterisk.muted.plist"; \
835 elif [ -f /etc/slackware-version ]; then \
836 echo "Slackware is not currently supported, although an init script does exist for it."; \
838 echo "We could not install init scripts for your distribution." ; \
841 echo "We could not install init scripts for your operating system." ; \
845 $(MAKE) -C sounds all
847 # If the cleancount has been changed, force a make clean.
848 # .cleancount is the global clean count, and .lastclean is the
849 # last clean count we had
852 @cmp -s .cleancount .lastclean || $(MAKE) clean
853 @[ -f "$(DESTDIR)$(ASTDBDIR)/astdb.sqlite3" ] || [ ! -f "$(DESTDIR)$(ASTDBDIR)/astdb" ] || [ ! -f menuselect.makeopts ] || grep -q MENUSELECT_UTILS=.*astdb2sqlite3 menuselect.makeopts || (sed -i.orig -e's/MENUSELECT_UTILS=\(.*\)/MENUSELECT_UTILS=\1 astdb2sqlite3/' menuselect.makeopts && echo "Updating menuselect.makeopts to include astdb2sqlite3" && echo "Original version backed up to menuselect.makeopts.orig")
855 $(SUBDIRS_UNINSTALL):
856 +@$(SUBMAKE) -C $(@:-uninstall=) uninstall
859 +@DESTDIR="$(DESTDIR)" ASTSBINDIR="$(ASTSBINDIR)" ASTLIBDIR="$(ASTLIBDIR)" $(SUBMAKE) -C main binuninstall
861 _uninstall: $(SUBDIRS_UNINSTALL) main-binuninstall
862 rm -f "$(DESTDIR)$(ASTMODDIR)/"*
863 rm -f "$(DESTDIR)$(ASTSBINDIR)/astgenkey"
864 rm -f "$(DESTDIR)$(ASTSBINDIR)/autosupport"
865 rm -rf "$(DESTDIR)$(ASTHEADERDIR)"
866 rm -rf "$(DESTDIR)$(ASTDATADIR)/firmware"
867 rm -f "$(DESTDIR)$(ASTMANDIR)/man8/asterisk.8"
868 rm -f "$(DESTDIR)$(ASTMANDIR)/man8/astgenkey.8"
869 rm -f "$(DESTDIR)$(ASTMANDIR)/man8/autosupport.8"
870 rm -f "$(DESTDIR)$(ASTMANDIR)/man8/safe_asterisk.8"
871 $(MAKE) -C sounds uninstall
873 uninstall: _uninstall
874 @echo " +--------- Asterisk Uninstall Complete -----+"
875 @echo " + Asterisk binaries, sounds, man pages, +"
876 @echo " + headers, modules, and firmware builds, +"
877 @echo " + have all been uninstalled. +"
879 @echo " + To remove ALL traces of Asterisk, +"
880 @echo " + including configuration, spool +"
881 @echo " + directories, and logs, run the following +"
882 @echo " + command: +"
884 @echo " + $(mK) uninstall-all +"
885 @echo " +-------------------------------------------+"
887 uninstall-all: _uninstall
888 rm -rf "$(DESTDIR)$(ASTMODDIR)"
889 rm -rf "$(DESTDIR)$(ASTVARLIBDIR)"
890 rm -rf "$(DESTDIR)$(ASTDATADIR)"
891 rm -rf "$(DESTDIR)$(ASTSPOOLDIR)"
892 rm -rf "$(DESTDIR)$(ASTETCDIR)"
893 rm -rf "$(DESTDIR)$(ASTLOGDIR)"
895 menuconfig: menuselect
897 cmenuconfig: cmenuselect
899 gmenuconfig: gmenuselect
901 nmenuconfig: nmenuselect
903 menuselect: menuselect/cmenuselect menuselect/nmenuselect menuselect/gmenuselect
904 @if [ -x menuselect/nmenuselect ]; then \
905 $(MAKE) nmenuselect; \
906 elif [ -x menuselect/cmenuselect ]; then \
907 $(MAKE) cmenuselect; \
908 elif [ -x menuselect/gmenuselect ]; then \
909 $(MAKE) gmenuselect; \
911 echo "No menuselect user interface found. Install ncurses,"; \
912 echo "newt or GTK libraries to build one and re-rerun"; \
913 echo "'./configure' and 'make menuselect'."; \
916 cmenuselect: menuselect/cmenuselect menuselect-tree menuselect.makeopts
917 -@menuselect/cmenuselect menuselect.makeopts && (echo "menuselect changes saved!"; rm -f channels/h323/Makefile.ast main/asterisk) || echo "menuselect changes NOT saved!"
919 gmenuselect: menuselect/gmenuselect menuselect-tree menuselect.makeopts
920 -@menuselect/gmenuselect menuselect.makeopts && (echo "menuselect changes saved!"; rm -f channels/h323/Makefile.ast main/asterisk) || echo "menuselect changes NOT saved!"
922 nmenuselect: menuselect/nmenuselect menuselect-tree menuselect.makeopts
923 -@menuselect/nmenuselect menuselect.makeopts && (echo "menuselect changes saved!"; rm -f channels/h323/Makefile.ast main/asterisk) || echo "menuselect changes NOT saved!"
925 # options for make in menuselect/
926 MAKE_MENUSELECT=CC="$(BUILD_CC)" CXX="" LD="" AR="" RANLIB="" \
927 CFLAGS="$(BUILD_CFLAGS)" LDFLAGS="$(BUILD_LDFLAGS)" \
928 $(MAKE) -C menuselect CONFIGURE_SILENT="--silent"
930 menuselect/menuselect: menuselect/makeopts
931 +$(MAKE_MENUSELECT) menuselect
933 menuselect/cmenuselect: menuselect/makeopts
934 +$(MAKE_MENUSELECT) cmenuselect
936 menuselect/gmenuselect: menuselect/makeopts
937 +$(MAKE_MENUSELECT) gmenuselect
939 menuselect/nmenuselect: menuselect/makeopts
940 +$(MAKE_MENUSELECT) nmenuselect
942 menuselect/makeopts: makeopts
943 +$(MAKE_MENUSELECT) makeopts
945 menuselect-tree: $(foreach dir,$(filter-out main,$(MOD_SUBDIRS)),$(wildcard $(dir)/*.c) $(wildcard $(dir)/*.cc)) build_tools/cflags.xml build_tools/cflags-devmode.xml sounds/sounds.xml build_tools/embed_modules.xml utils/utils.xml agi/agi.xml configure makeopts
946 @echo "Generating input for menuselect ..."
947 @echo "<?xml version=\"1.0\"?>" > $@
949 @echo "<menu name=\"Asterisk Module and Build Option Selection\">" >> $@
950 +@for dir in $(sort $(filter-out main,$(MOD_SUBDIRS))); do $(SILENTMAKE) -C $${dir} SUBDIR=$${dir} moduleinfo >> $@; done
951 @cat build_tools/cflags.xml >> $@
952 +@for dir in $(sort $(filter-out main,$(MOD_SUBDIRS))); do $(SILENTMAKE) -C $${dir} SUBDIR=$${dir} makeopts >> $@; done
953 @if [ "${AST_DEVMODE}" = "yes" ]; then \
954 cat build_tools/cflags-devmode.xml >> $@; \
956 @cat utils/utils.xml >> $@
957 @cat agi/agi.xml >> $@
958 @cat build_tools/embed_modules.xml >> $@
959 @cat sounds/sounds.xml >> $@
960 @echo "</menu>" >> $@
970 .PHONY: _cleantest_all
975 .PHONY: uninstall-all
976 .PHONY: dont-optimize
979 .PHONY: validate-docs
981 .PHONY: $(SUBDIRS_INSTALL)
982 .PHONY: $(SUBDIRS_DIST_CLEAN)
983 .PHONY: $(SUBDIRS_CLEAN)
984 .PHONY: $(SUBDIRS_UNINSTALL)
986 .PHONY: $(MOD_SUBDIRS_EMBED_LDSCRIPT)
987 .PHONY: $(MOD_SUBDIRS_EMBED_LDFLAGS)
988 .PHONY: $(MOD_SUBDIRS_EMBED_LIBS)