aboutsummaryrefslogtreecommitdiffstats
path: root/res/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'res/Makefile')
-rwxr-xr-xres/Makefile32
1 files changed, 32 insertions, 0 deletions
diff --git a/res/Makefile b/res/Makefile
new file mode 100755
index 000000000..9c4bffb6c
--- /dev/null
+++ b/res/Makefile
@@ -0,0 +1,32 @@
+#
+# Asterisk -- A telephony toolkit for Linux.
+#
+# Makefile for CDR backends (dynamically loaded)
+#
+# Copyright (C) 1999, Mark Spencer
+#
+# Mark Spencer <markster@linux-support.net>
+#
+# This program is free software, distributed under the terms of
+# the GNU General Public License
+#
+
+MODS=res_adsi.so res_parking.so res_crypto.so
+
+CRYPTO_LIBS=-lssl -lcrypto
+
+CFLAGS+=
+
+all: $(MODS)
+
+install: all
+ for x in $(MODS); do $(INSTALL) -m 755 $$x $(MODULES_DIR) ; done
+
+res_crypto.so: res_crypto.o
+ $(CC) -shared -Xlinker -x -o $@ $< $(CRYPTO_LIBS)
+
+clean:
+ rm -f *.so *.o
+
+%.so : %.o
+ $(CC) -shared -Xlinker -x -o $@ $<