summaryrefslogtreecommitdiff
path: root/res/Makefile
diff options
context:
space:
mode:
authorMark Spencer <markster@digium.com>2004-06-25 03:59:07 +0000
committerMark Spencer <markster@digium.com>2004-06-25 03:59:07 +0000
commit1d473f25ddbfa8caabaf8e2aa83c190c2b3fc9d2 (patch)
tree10ec669a31a880a3a24a8a842bec640b09caeac5 /res/Makefile
parentb0972b8d1ff624462ddd8dfcc9389611d972c32a (diff)
Add outgoing OSP support (SIP only at this point)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3296 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'res/Makefile')
-rwxr-xr-xres/Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/res/Makefile b/res/Makefile
index fa6e3cf81..302c3499f 100755
--- a/res/Makefile
+++ b/res/Makefile
@@ -14,6 +14,7 @@
MODS=res_adsi.so res_parking.so res_crypto.so res_musiconhold.so res_indications.so res_monitor.so
MODS+=$(shell if [ -f "/usr/include/odbcinst.h" ]; then echo "res_odbc.so res_config_odbc.so"; fi)
MODS+=$(shell if [ -f "/usr/local/include/odbcinst.h" ]; then echo "res_odbc.so res_config_odbc.so"; fi)
+MODS+=$(shell if [ -f "/usr/include/osp/osp.h" ]; then echo "res_osp.so"; fi)
CRYPTO_LIBS=-lssl -lcrypto
@@ -24,6 +25,7 @@ CFLAGS+=$(shell [ -f /usr/local/include/zaptel.h ] && echo " -DZAPATA_MOH")
# Work around buggy RedHat 9.0
#
CFLAGS+=-DOPENSSL_NO_KRB5 -fPIC
+OSPLIB=/usr/lib/libosp.a
all: depend $(MODS)
@@ -39,6 +41,9 @@ clean:
res_odbc.so: res_odbc.o
$(CC) $(SOLINK) -o $@ $< -lodbc
+res_osp.so: res_osp.o $(OSPLIB)
+ $(CC) $(SOLINK) -o $@ $< $(OSPLIB)
+
%.so : %.o
$(CC) $(SOLINK) -o $@ $<