Index: res/Makefile =================================================================== RCS file: /usr/cvsroot/asterisk/res/Makefile,v retrieving revision 1.18 diff -u -r1.18 Makefile --- res/Makefile 17 Jul 2004 20:58:01 -0000 1.18 +++ res/Makefile 11 Oct 2004 20:02:03 -0000 @@ -16,12 +16,15 @@ 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) +MODS+=$(shell if [ -f "/usr/include/mysql/mysql.h" ]; then echo "res_config_mysql.so"; fi) CRYPTO_LIBS=-lssl -lcrypto CFLAGS+= CFLAGS+=$(shell [ -f /usr/include/linux/zaptel.h ] && echo " -DZAPATA_MOH") CFLAGS+=$(shell [ -f /usr/local/include/zaptel.h ] && echo " -DZAPATA_MOH") +CFLAGS+=$(shell [ -f /usr/include/mysql/mysql.h ] && echo " -I/usr/include/mysql/") + # # Work around buggy RedHat 9.0 # @@ -47,6 +50,9 @@ res_osp.so: res_osp.o $(OSPLIB) $(CC) $(SOLINK) -o $@ $< $(OSPLIB) + +res_config_mysql.so: res_config_mysql.o + $(CC) $(SOLINK) -o $@ $< -L/usr/lib/mysql -lmysqlclient -lz %.so : %.o $(CC) $(SOLINK) -o $@ $<