diff options
author | Benny Prijono <bennylp@teluu.com> | 2007-03-12 10:44:38 +0000 |
---|---|---|
committer | Benny Prijono <bennylp@teluu.com> | 2007-03-12 10:44:38 +0000 |
commit | 995cbba603dabe48637e1216b4da79996b4e9231 (patch) | |
tree | 021f6430ed7d9af41dca27fc4e4966f08a8937d3 /build.mak.in | |
parent | 64f5af70111821e4319624057b9271066591935c (diff) |
Ticket #168: Added some variables in build.mak that can be used by application in its makefile
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@1055 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'build.mak.in')
-rw-r--r-- | build.mak.in | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/build.mak.in b/build.mak.in index 86a4155f..43633e1f 100644 --- a/build.mak.in +++ b/build.mak.in @@ -6,3 +6,30 @@ export CC_NAME := gcc export TARGET_NAME := @target@ export CROSS_COMPILE := @ac_cross_compile@ export LINUX_POLL := @ac_linux_poll@ + +# Application can use this +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)/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)/pjmedia/lib\ + -L$(PJDIR)/pjsip/lib\ + @LDFLAGS@ +export APP_LDLIBS := -lpjsua-$(TARGET_NAME)\ + -lpjsip-ua-$(TARGET_NAME)\ + -lpjsip-simple-$(TARGET_NAME)\ + -lpjsip-$(TARGET_NAME)\ + -lpjmedia-codec-$(TARGET_NAME)\ + -lpjmedia-$(TARGET_NAME)\ + -lpjmedia-codec-$(TARGET_NAME)\ + -lpjlib-util-$(TARGET_NAME)\ + -lpj-$(TARGET_NAME)\ + @LIBS@ + |