summaryrefslogtreecommitdiff
path: root/res/Makefile
diff options
context:
space:
mode:
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 $@ $<