diff options
author | Matthew Fredrickson <creslin@digium.com> | 2006-09-19 17:07:22 +0000 |
---|---|---|
committer | Matthew Fredrickson <creslin@digium.com> | 2006-09-19 17:07:22 +0000 |
commit | 2cc96500bd8dec1a2085651b1f10ce9830b4c891 (patch) | |
tree | d60c1d44680a2468dac728d9ab7d40f2aa0d323f /channels/h323/Makefile | |
parent | d4d7a8b1325e6234847cbcdd9648900739c407f0 (diff) |
Mergeing in Paul Cadach's chan_h323 changes *holds breath*
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@43281 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'channels/h323/Makefile')
-rw-r--r-- | channels/h323/Makefile | 40 |
1 files changed, 28 insertions, 12 deletions
diff --git a/channels/h323/Makefile b/channels/h323/Makefile index 2b9fb4d4c..df309e6f6 100644 --- a/channels/h323/Makefile +++ b/channels/h323/Makefile @@ -4,34 +4,50 @@ # Make file for OpenH323 support layer # -.PHONY: Makefile.ast +.PHONY: Makefile.ast clean + +default:: opt # Verify those options with main Makefile -STDCCFLAGS += -DNDEBUG -STDCCFLAGS += $(shell grep ^DEBUG_THREADS ../../Makefile | sed -e "s/^DEBUG_THREADS[ ]*=//" -e "s/\([^\#]*\)\#.*/\1/") -STDCCFLAGS += -I../../include -include autoconfig.h +STDCCFLAGS = -DNDEBUG +STDCCFLAGS += -I../../include -include ../../include/asterisk/autoconfig.h +STDCCFLAGS += -fPIC #OPTCCFLAGS += -CFLAGS += -pipe -TARGET += libchanh323.a +CFLAGS = -pipe +TARGET = libchanh323.a TARGET += Makefile.ast -SOURCES = ast_h323.cxx +SOURCES = ast_h323.cxx compat_h323.cxx cisco-h225.cxx OBJDIR = . +OBJS = ifndef OPENH323DIR -OPENH323DIR=$(HOME)/openh323 +OPENH323DIR=/usr/src/OpenH323/openh323 endif include $(OPENH323DIR)/openh323u.mak -$(SOURCES):: $(SOURCES:.cxx=.cpp) - ln -f $< $@ +notrace:: + $(MAKE) NOTRACE=1 opt + +define module_cxx_template +$(1):: $(2) + ln -f $(2) $(1) +endef + +$(foreach mod,$(SOURCES),$(eval $(call module_cxx_template,$(mod),$(mod:.cxx=.cpp)))) +#$(SOURCES):: $(SOURCES:.cxx=.cpp) +# ln -f $(patsubst %.cxx, %.cpp, $@) $@ $(SOURCES):: Makefile ../../Makefile - touch $(SOURCES) + touch $@ libchanh323.a: $(OBJS) ar crv $@ $(OBJS) +cisco-h225.cpp:: cisco-h225.asn + asnparser -m CISCO_H225 -c $< + mv -f cisco-h225.cxx cisco-h225.cpp + Makefile.ast: @echo H323CFLAGS = $(STDCCFLAGS) $(OPTCCFLAGS) $(CFLAGS) >$@.tmp @echo H323LDFLAGS = $(CFLAGS) $(LDFLAGS) >>$@.tmp @@ -39,4 +55,4 @@ Makefile.ast: @if [ -r $@ ] && cmp -s $@ $@.tmp; then rm -f $@.tmp; else mv -f $@.tmp $@; fi clean:: - rm -f ast_h323.cxx libchanh323.a Makefile.ast *.dep + rm -f $(SOURCES) $(TARGET) $(OBJS) Makefile.ast *.dep |