Split capability definitions into own source file
[asterisk/asterisk.git] / channels / h323 / Makefile.in
1 #
2 # Makefile
3 #
4 # Make file for OpenH323 support layer
5 #
6
7 .PHONY: Makefile.ast clean
8
9 default::       @OPENH323_BUILD@
10
11 # Verify those options with main Makefile
12 STDCCFLAGS      = -DNDEBUG
13 STDCCFLAGS      += -I../../include -include ../../include/asterisk/autoconfig.h
14 STDCCFLAGS      += -fPIC
15 #OPTCCFLAGS     +=
16 CFLAGS          = -pipe
17 TARGET          = libchanh323.a
18 TARGET          += Makefile.ast
19 SOURCES         = ast_h323.cxx compat_h323.cxx cisco-h225.cxx caps_h323.cxx
20 OBJDIR          = .
21 OBJS            =
22
23 ifndef OPENH323DIR
24 OPENH323DIR=@OPENH323DIR@
25 endif
26
27 include $(OPENH323DIR)/openh323u.mak
28
29 notrace::
30         $(MAKE) NOTRACE=1 opt
31
32 $(SOURCES)::    Makefile ../../Makefile
33         touch $@
34
35 libchanh323.a:  $(OBJS)
36         ar crv $@ $(OBJS)
37
38 cisco-h225.cxx::        cisco-h225.asn
39         asnparser -m CISCO_H225 -c $<
40
41 Makefile.ast:
42         @echo H323CFLAGS  = $(STDCCFLAGS) $(OPTCCFLAGS) $(CFLAGS) >$@.tmp
43         @echo H323LDFLAGS = $(CFLAGS) $(LDFLAGS) >>$@.tmp
44         @echo H323LDLIBS  = $(LDLIBS) $(ENDLDLIBS) $(ENDLDFLAGS) >>$@.tmp
45         @if [ -r $@ ] && cmp -s $@ $@.tmp; then rm -f $@.tmp; else mv -f $@.tmp $@; fi
46
47 clean::
48         rm -f $(TARGET) $(OBJS) Makefile.ast *.dep