mirror of
https://github.com/asterisk/asterisk.git
synced 2026-04-29 02:03:18 +00:00
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@267445 65c4cc65-6c06-0410-ace0-fbb531ad65f3
54 lines
1.2 KiB
Makefile
54 lines
1.2 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)
|
|
|
|
#
|
|
# We have this file in svn, so this is commented out to ensure it doesn't try
|
|
# to run implicitly. However, it's still here for reference.
|
|
#
|
|
#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::
|