Archived
14
0
Fork 0
This repository has been archived on 2022-02-17. You can view files and clone it, but cannot push or open issues or pull requests.
asterisk/channels/h323/Makefile.in
russell 6c3c30a57d Fix build error when chan_h323 is not being built.
(reported by cai1982 in #asterisk-dev)


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@184910 f38db490-d61c-443f-a65b-d21fe96a405b
2009-03-30 13:55:44 +00:00

51 lines
1.1 KiB
Makefile

#
# Makefile
#
# Make file for OpenH323 support layer
#
.PHONY: Makefile.ast clean
default:: @OPENH323_BUILD@
# Verify those options with main Makefile
STDCCFLAGS = -DNDEBUG
STDCCFLAGS += -I../../include -include ../../include/asterisk/autoconfig.h
STDCCFLAGS += -fPIC
#OPTCCFLAGS +=
CFLAGS = -pipe
TARGET = libchanh323.a
TARGET += Makefile.ast
SOURCES = ast_h323.cxx compat_h323.cxx cisco-h225.cxx caps_h323.cxx
OBJDIR = .
OBJS =
ifndef OPENH323DIR
OPENH323DIR=@OPENH323DIR@
endif
ifneq ($(wildcard $(OPENH323DIR)/openh323u.mak),)
include $(OPENH323DIR)/openh323u.mak
endif
notrace::
$(MAKE) NOTRACE=1 opt
$(SOURCES):: Makefile ../../Makefile
touch $@
libchanh323.a: $(OBJS)
ar crv $@ $(OBJS)
cisco-h225.cxx:: cisco-h225.asn
asnparser -m CISCO_H225 -c $<
Makefile.ast:
@echo H323CFLAGS = $(STDCCFLAGS) $(OPTCCFLAGS) $(CFLAGS) >$@.tmp
@echo H323LDFLAGS = $(CFLAGS) $(LDFLAGS) >>$@.tmp
@echo H323LDLIBS = $(LDLIBS) $(ENDLDLIBS) $(ENDLDFLAGS) >>$@.tmp
@if [ -r $@ ] && cmp -s $@ $@.tmp; then rm -f $@.tmp; else mv -f $@.tmp $@; fi
clean::
rm -f $(TARGET) $(OBJS) Makefile.ast *.dep