Add support for ICE/STUN/TURN in res_rtp_asterisk and chan_sip.
[asterisk/asterisk.git] / res / pjproject / third_party / build / portaudio / Makefile
1 # @configure_input@
2 include ../../../build.mak
3 include $(PJDIR)/build/common.mak
4
5 export LIBDIR := ../../lib
6
7 RULES_MAK := $(PJDIR)/build/rules.mak
8
9 export PORTAUDIO_LIB:=../../lib/libportaudio-$(TARGET_NAME)$(LIBEXT)
10
11 PORTAUDIO_OBJS += pa_allocation.o \
12                   pa_converters.o \
13                   pa_cpuload.o \
14                   pa_dither.o \
15                   pa_debugprint.o \
16                   pa_front.o \
17                   pa_process.o \
18                   pa_skeleton.o \
19                   pa_stream.o \
20                   pa_trace.o
21
22
23 ###############################################################################
24 # Gather all flags.
25 #
26 export _CFLAGS  += $(CC_CFLAGS) $(OS_CFLAGS) $(HOST_CFLAGS) $(M_CFLAGS) \
27                    $(CFLAGS) $(CC_INC). $(CC_INC)src 
28 export _CXXFLAGS+= $(_CFLAGS) $(CC_CXXFLAGS) $(OS_CXXFLAGS) $(M_CXXFLAGS) \
29                    $(HOST_CXXFLAGS) $(CXXFLAGS)
30 export _LDFLAGS += $(CC_LDFLAGS) $(OS_LDFLAGS) $(M_LDFLAGS) $(HOST_LDFLAGS) \
31                    $(LDFLAGS) 
32
33 ###############################################################################
34 # Defines for building PORTAUDIO library
35 #
36 export PORTAUDIO_SRCDIR = src
37 export PORTAUDIO_OBJS += 
38 export PORTAUDIO_CFLAGS += $(_CFLAGS)
39
40 export CC_OUT CC AR RANLIB HOST_MV HOST_RM HOST_RMDIR HOST_MKDIR OBJEXT LD LDOUT 
41 ###############################################################################
42 # Main entry
43 #
44 # $(TARGET) is defined in os-$(OS_NAME).mak file in current directory.
45 #
46 TARGETS := libportaudio
47
48 all: $(TARGETS)
49
50 dep: depend
51 distclean: realclean
52
53 .PHONY: dep depend libportaudio clean realclean distclean
54
55 libportaudio:
56         $(MAKE) -f $(RULES_MAK) APP=PORTAUDIO app=libportaudio $(PORTAUDIO_LIB)
57
58 clean:
59         $(MAKE) -f $(RULES_MAK) APP=PORTAUDIO app=libportaudio $@
60
61 realclean:
62         $(subst @@,$(subst /,$(HOST_PSEP),.libportaudio-$(TARGET_NAME).depend),$(HOST_RMR))
63         
64         $(MAKE) -f $(RULES_MAK) APP=PORTAUDIO app=libportaudio $@
65
66 depend:
67         $(MAKE) -f $(RULES_MAK) APP=PORTAUDIO app=libportaudio $@
68