ea533f932d29a1191084dafeda63f5c5e5b31f76
[asterisk/asterisk.git] / res / Makefile
1 #
2 # Asterisk -- A telephony toolkit for Linux.
3
4 # Makefile for CDR backends (dynamically loaded)
5 #
6 # Copyright (C) 1999, Mark Spencer
7 #
8 # Mark Spencer <markster@linux-support.net>
9 #
10 # This program is free software, distributed under the terms of
11 # the GNU General Public License
12 #
13
14 MODS=res_adsi.so res_parking.so res_crypto.so res_musiconhold.so res_indications.so
15
16 CRYPTO_LIBS=-lssl -lcrypto
17
18 CFLAGS+=
19 CFLAGS+=$(shell [ -f /usr/include/zap.h ] && echo " -DZAPATA_MOH")
20
21 all: $(MODS)
22
23 install: all
24         for x in $(MODS); do $(INSTALL) -m 755 $$x $(MODULES_DIR) ; done
25
26 res_crypto.so: res_crypto.o
27         $(CC) -shared -Xlinker -x -o $@ $< $(CRYPTO_LIBS)
28
29 clean:
30         rm -f *.so *.o
31
32 %.so : %.o
33         $(CC) -shared -Xlinker -x -o $@ $<