Add support for ICE/STUN/TURN in res_rtp_asterisk and chan_sip.
[asterisk/asterisk.git] / res / pjproject / third_party / build / g7221 / Makefile
1 include ../../../build.mak
2 include ../../../build/common.mak
3
4 export LIBDIR := ../../lib
5
6 RULES_MAK := $(PJDIR)/build/rules.mak
7
8 export G7221_CODEC_LIB := ../../lib/libg7221codec-$(TARGET_NAME)$(LIBEXT)
9
10 ###############################################################################
11 # Gather all flags.
12 #
13 export _CFLAGS  := $(CC_CFLAGS) $(OS_CFLAGS) $(HOST_CFLAGS) $(M_CFLAGS) \
14                    $(CFLAGS) $(CC_INC)../.. $(CC_INC)../../g7221/common \
15                    $(CC_INC)../../g7221/common/stl-files \
16                    $(CC_INC)../../../pjlib/include
17 export _CXXFLAGS:= $(_CFLAGS) $(CC_CXXFLAGS) $(OS_CXXFLAGS) $(M_CXXFLAGS) \
18                    $(HOST_CXXFLAGS) $(CXXFLAGS)
19 export _LDFLAGS := $(CC_LDFLAGS) $(OS_LDFLAGS) $(M_LDFLAGS) $(HOST_LDFLAGS) \
20                    $(LDFLAGS) 
21
22 export G7221_CODEC_SRCDIR = ../../g7221
23 export G7221_CODEC_OBJS = common/common.o common/huff_tab.o common/tables.o \
24                         common/basic_op.o  \
25                         decode/coef2sam.o decode/dct4_s.o decode/decoder.o \
26                         encode/dct4_a.o encode/sam2coef.o encode/encoder.o
27
28 export G7221_CODEC_CFLAGS = $(_CFLAGS)
29
30
31 export CC_OUT CC AR RANLIB HOST_MV HOST_RM HOST_RMDIR HOST_MKDIR OBJEXT LD LDOUT 
32 ###############################################################################
33 # Main entry
34 #
35 # $(TARGET) is defined in os-$(OS_NAME).mak file in current directory.
36 #
37 TARGETS := libg7221codec
38
39 all: $(TARGETS)
40
41 doc:
42         cd .. && doxygen docs/doxygen.cfg
43
44 dep: depend
45 distclean: realclean
46
47 .PHONY: dep depend libg7221codec clean realclean distclean
48
49 libg7221codec:
50         $(MAKE) -f $(RULES_MAK) APP=G7221_CODEC app=libg7221codec $(G7221_CODEC_LIB)
51
52 clean print_lib:
53         $(MAKE) -f $(RULES_MAK) APP=G7221_CODEC app=libg7221codec $@
54
55 realclean:
56         $(subst @@,$(subst /,$(HOST_PSEP),.ilbc-$(TARGET_NAME).depend),$(HOST_RMR))
57         
58         $(MAKE) -f $(RULES_MAK) APP=G7221_CODEC app=libg7221codec $@
59
60 depend:
61         $(MAKE) -f $(RULES_MAK) APP=G7221_CODEC app=libg7221codec $@
62
63