summaryrefslogtreecommitdiff
path: root/build.mak.in
diff options
context:
space:
mode:
authorBenny Prijono <bennylp@teluu.com>2007-04-17 16:16:01 +0000
committerBenny Prijono <bennylp@teluu.com>2007-04-17 16:16:01 +0000
commit05faf09b3f03f8b704e00c1ee533fa2534682109 (patch)
treedfffccc9dc00fbb0e427022207eda071f4e211a9 /build.mak.in
parentc82fed9c2902aed74ea5da08148983159e581ad7 (diff)
Fixed build system for third_party
git-svn-id: http://svn.pjsip.org/repos/pjproject/branches/split-3rd-party@1201 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'build.mak.in')
-rw-r--r--build.mak.in35
1 files changed, 33 insertions, 2 deletions
diff --git a/build.mak.in b/build.mak.in
index 43633e1f..7df03a82 100644
--- a/build.mak.in
+++ b/build.mak.in
@@ -7,20 +7,43 @@ export TARGET_NAME := @target@
export CROSS_COMPILE := @ac_cross_compile@
export LINUX_POLL := @ac_linux_poll@
-# Application can use this
+# Determine which party libraries to use
+export APP_THIRD_PARTY_LIBS := -lresample-$(TARGET_NAME)
+
+ifneq (@ac_no_gsm_codec@,1)
+APP_THIRD_PARTY_LIBS += -lgsmcodec-$(TARGET_NAME)
+endif
+
+ifneq (@ac_no_speex_codec@,1)
+APP_THIRD_PARTY_LIBS += -lspeex-$(TARGET_NAME)
+endif
+
+ifneq (@ac_no_ilbc_codec@,1)
+APP_THIRD_PARTY_LIBS += -lilbccodec-$(TARGET_NAME)
+endif
+
+ifneq ($(findstring pa,@ac_pjmedia_snd@),)
+APP_THIRD_PARTY_LIBS += -lportaudio-$(TARGET_NAME)
+endif
+
+
+# CFLAGS, LDFLAGS, and LIBS to be used by applications
export PJDIR := @ac_pjdir@
export APP_CC := $(CROSS_COMPILE)$(CC_NAME)
export APP_CFLAGS := -DPJ_AUTOCONF=1\
@CFLAGS@\
-I$(PJDIR)/pjlib/include\
-I$(PJDIR)/pjlib-util/include\
+ -I$(PJDIR)/pjnath/include\
-I$(PJDIR)/pjmedia/include\
-I$(PJDIR)/pjsip/include
export APP_CXXFLAGS := $(APP_CFLAGS)
export APP_LDFLAGS := -L$(PJDIR)/pjlib/lib\
-L$(PJDIR)/pjlib-util/lib\
+ -L$(PJDIR)/pjnath/lib\
-L$(PJDIR)/pjmedia/lib\
-L$(PJDIR)/pjsip/lib\
+ -L$(PJDIR)/third_party/lib\
@LDFLAGS@
export APP_LDLIBS := -lpjsua-$(TARGET_NAME)\
-lpjsip-ua-$(TARGET_NAME)\
@@ -28,8 +51,16 @@ export APP_LDLIBS := -lpjsua-$(TARGET_NAME)\
-lpjsip-$(TARGET_NAME)\
-lpjmedia-codec-$(TARGET_NAME)\
-lpjmedia-$(TARGET_NAME)\
- -lpjmedia-codec-$(TARGET_NAME)\
+ -lpjnath-$(TARGET_NAME)\
-lpjlib-util-$(TARGET_NAME)\
+ $(APP_THIRD_PARTY_LIBS)\
-lpj-$(TARGET_NAME)\
@LIBS@
+export PJ_DIR := $(PJDIR)
+export PJ_CC := $(APP_CC)
+export PJ_CFLAGS := $(APP_CFLAGS)
+export PJ_CXXFLAGS := $(APP_CXXFLAGS)
+export PJ_LDFLAGS := $(APP_LDFLAGS)
+export PJ_LDLIBS := $(APP_LDLIBS)
+