aboutsummaryrefslogtreecommitdiffstats
path: root/res/Makefile
diff options
context:
space:
mode:
authorkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2005-10-28 23:53:07 +0000
committerkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2005-10-28 23:53:07 +0000
commite7ab16d2442daa76a3c60282894fb36a42877a12 (patch)
tree8fcb01b8d5faefc9872fe5a89a3c103b9f8df7d6 /res/Makefile
parentcf35e9f2b1a6d8e9548abc5b1814f1ab68cf95c5 (diff)
find OSP toolkit library properly
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6887 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'res/Makefile')
-rwxr-xr-xres/Makefile18
1 files changed, 14 insertions, 4 deletions
diff --git a/res/Makefile b/res/Makefile
index 47e0c4f9b..d02021aed 100755
--- a/res/Makefile
+++ b/res/Makefile
@@ -27,13 +27,23 @@ ifneq ($(NOCRYPTO),yes)
MODS+=res_crypto.so
endif
-ifneq ($(wildcard $(CROSS_COMPILE_TARGET)/usr/local/include/osp/osp.h),)
+ifneq ($(wildcard $(CROSS_COMPILE_TARGET)/usr/lib/libosptk.a),)
MODS+=res_osp.so
- OSPLIB=$(CROSS_COMPILE_TARGET)/usr/local/lib/libosptk.a
+ OSPLIB=$(CROSS_COMPILE_TARGET)/usr/lib/libosptk.a
else
- ifneq ($(wildcard $(CROSS_COMPILE_TARGET)/usr/include/osp/osp.h),)
+ ifneq ($(wildcard $(CROSS_COMPILE_TARGET)/usr/local/lib/libosptk.a),)
MODS+=res_osp.so
- OSPLIB=$(CROSS_COMPILE_TARGET)/usr/lib/libosp.a
+ OSPLIB=$(CROSS_COMPILE_TARGET)/usr/local/lib/libosptk.a
+ endif
+endif
+
+ifneq ($(wildcard $(CROSS_COMPILE_TARGET)/usr/lib/libosp.a),)
+ MODS+=res_osp.so
+ OSPLIB=$(CROSS_COMPILE_TARGET)/usr/lib/libosp.a
+else
+ ifneq ($(wildcard $(CROSS_COMPILE_TARGET)/usr/local/lib/libosp.a),)
+ MODS+=res_osp.so
+ OSPLIB=$(CROSS_COMPILE_TARGET)/usr/local/lib/libosp.a
endif
endif