summaryrefslogtreecommitdiff
path: root/apps/Makefile
diff options
context:
space:
mode:
authorMark Spencer <markster@digium.com>2005-03-27 22:39:17 +0000
committerMark Spencer <markster@digium.com>2005-03-27 22:39:17 +0000
commita0a2592025a299cba579a3159a240ec11983333c (patch)
tree967c042d6622322a809a26724fb2af4e57684e66 /apps/Makefile
parentb0b916c16c0e2bdd2e46b3b229e92260519a50fd (diff)
Fix cross compiling (bug #3868)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5278 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'apps/Makefile')
-rwxr-xr-xapps/Makefile13
1 files changed, 6 insertions, 7 deletions
diff --git a/apps/Makefile b/apps/Makefile
index 8a4d5bfb7..0feec316d 100755
--- a/apps/Makefile
+++ b/apps/Makefile
@@ -52,18 +52,17 @@ endif
#APPS+=app_ivrdemo.so
#APPS+=app_skel.so
-APPS+=$(shell if [ -f /usr/include/linux/zaptel.h ]; then echo "app_zapras.so app_meetme.so app_flash.so app_zapbarge.so app_zapscan.so" ; fi)
-APPS+=$(shell if [ -f /usr/local/include/zaptel.h ]; then echo "app_zapras.so app_meetme.so app_flash.so app_zapbarge.so app_zapscan.so" ; fi)
-APPS+=$(shell if [ -f /usr/include/osp/osp.h ]; then echo "app_osplookup.so" ; fi)
+APPS+=$(shell if [ -f $(CROSS_COMPILE_TARGET)/usr/include/linux/zaptel.h ]; then echo "app_zapras.so app_meetme.so app_flash.so app_zapbarge.so app_zapscan.so" ; fi)
+APPS+=$(shell if [ -f $(CROSS_COMPILE_TARGET)/usr/local/include/zaptel.h ]; then echo "app_zapras.so app_meetme.so app_flash.so app_zapbarge.so app_zapscan.so" ; fi)
+APPS+=$(shell if [ -f $(CROSS_COMPILE_TARGET)/usr/include/osp/osp.h ]; then echo "app_osplookup.so" ; fi)
-CURLLIBS=$(shell curl-config --libs)
+CURLLIBS=$(shell $(CROSS_COMPILE_BIN)curl-config --libs)
ifneq (${CURLLIBS},)
APPS+=app_curl.so
ifeq (${OSARCH},OpenBSD)
- CFLAGS+=-I/usr/local/include
+ CFLAGS+=-I$(CROSS_COMPILE_TARGET)/usr/local/include
endif
-endif
-
+endif
CFLAGS+=-fPIC
#
# If you have MySQL 4.1 or later you can use ODBC