aboutsummaryrefslogtreecommitdiffstats
path: root/channels/Makefile
diff options
context:
space:
mode:
authorrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2009-03-29 05:32:04 +0000
committerrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2009-03-29 05:32:04 +0000
commitedfa5ac696d7ed825154cc09df202c02841e9fa7 (patch)
treec4666ef43d350d96f66ed0453dc0149a5a9e00a1 /channels/Makefile
parentcd087880812193641cc44c3b28f786d3644f8a95 (diff)
Simplify chan_h323 build to not require a second run of "make".
(closes issue #14715) Reported by: jthurman Patches: h323-makefile-1.6.2.0-beta1.patch uploaded by jthurman (license 614) Tested by: tzafrir, russell git-svn-id: http://svn.digium.com/svn/asterisk/trunk@184838 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels/Makefile')
-rw-r--r--channels/Makefile25
1 files changed, 10 insertions, 15 deletions
diff --git a/channels/Makefile b/channels/Makefile
index 9081e0cf0..ecdf96e40 100644
--- a/channels/Makefile
+++ b/channels/Makefile
@@ -57,25 +57,14 @@ ifneq ($(findstring $(OSARCH), mingw32 cygwin ),)
LIBS+= -lres_monitor.so -lres_features.so
endif
-clean::
- $(MAKE) -C misdn clean
-
ifneq ($(wildcard h323/Makefile.ast),)
- include h323/Makefile.ast
+include h323/Makefile.ast
+endif
H323LDFLAGS+=-Wl,--version-script=h323/noexport.map
+
clean::
+ $(MAKE) -C misdn clean
if [ -f h323/Makefile ]; then $(MAKE) -C h323 clean; fi
-else
-h323/libchanh323.a h323/Makefile.ast:
- $(CMD_PREFIX) $(MAKE) -C h323
- $(CMD_PREFIX) rm -f ../main/asterisk
- $(CMD_PREFIX) echo "***************************************************************"
- $(CMD_PREFIX) echo
- $(CMD_PREFIX) echo "********** Re-run 'make' to pick up H.323 parameters **********"
- $(CMD_PREFIX) echo
- $(CMD_PREFIX) echo "***************************************************************"
- $(CMD_PREFIX) exit 1
-endif
dist-clean::
rm -f h323/Makefile
@@ -107,4 +96,10 @@ chan_usbradio.o: ./xpmr/xpmr.c ./xpmr/xpmr.h ./xpmr/xpmr_coef.h
chan_usbradio.so: LIBS+=-lusb -lasound
chan_usbradio.so: ASTCFLAGS+=-DNDEBUG
+h323/Makefile.ast:
+ $(CMD_PREFIX) $(MAKE) -C h323 Makefile.ast
+
+h323/libchanh323.a:
+ $(CMD_PREFIX) $(MAKE) -C h323 libchanh323.a
+