|
@@ -1,41 +0,0 @@
|
|
|
-# $Id$
|
|
|
-#
|
|
|
-# WARNING: do not run this directly, it should be run by the master Makefile
|
|
|
-
|
|
|
-include ../../Makefile.defs
|
|
|
-auto_gen=
|
|
|
-NAME=db_mysql.so
|
|
|
-
|
|
|
-# set CROSS_COMPILE to true if you want to skip
|
|
|
-# the autodetection
|
|
|
-# CROSS_COMPILE=true
|
|
|
-
|
|
|
-ifeq ($(CROSS_COMPILE),)
|
|
|
-MYSQLCFG=$(shell which mysql_config)
|
|
|
-endif
|
|
|
-
|
|
|
-ifneq ($(MYSQLCFG),)
|
|
|
-
|
|
|
- # use autodetection
|
|
|
- DEFS += $(shell $(MYSQLCFG) --include | sed 's/\(-I.*\)\/mysql/\1/g' )
|
|
|
- LIBS = $(shell $(MYSQLCFG) --libs)
|
|
|
-
|
|
|
-else
|
|
|
-
|
|
|
- # use standard know paths
|
|
|
- # mysql.h locations (freebsd,openbsd solaris)
|
|
|
- DEFS +=-I$(LOCALBASE)/include -I$(LOCALBASE)/include/mysql \
|
|
|
- -I$(LOCALBASE)/mysql/include/mysql -I$(LOCALBASE)/mysql/include \
|
|
|
- -I$(SYSBASE)/include/mysql
|
|
|
-
|
|
|
- # libmysqlclient locations on RH/Suse, Solaris /OpenBSD, FreeBSD
|
|
|
- # (Debian does the right thing and puts it in /usr/lib)
|
|
|
- LIBS=-L$(SYSBASE)/lib/mysql -L$(LOCALBASE)/lib -L$(LOCALBASE)/lib/mysql \
|
|
|
- -L$(LOCALBASE)/mysql/lib/mysql/ \
|
|
|
- -L$(LOCALBASE)/mysql/lib \
|
|
|
- -L$(SYSBASE)/lib64/mysql \
|
|
|
- -lm -lmysqlclient -lz
|
|
|
-
|
|
|
-endif
|
|
|
-
|
|
|
-include ../../Makefile.modules
|