mirror of
https://github.com/VCMP-SqMod/SqMod.git
synced 2024-11-08 16:57:16 +01:00
33 lines
730 B
Plaintext
33 lines
730 B
Plaintext
|
#
|
||
|
# MySQL.make
|
||
|
#
|
||
|
# Makefile fragment for finding MySQL library
|
||
|
#
|
||
|
|
||
|
ifndef POCO_MYSQL_INCLUDE
|
||
|
ifeq (0, $(shell test -d /usr/local/include/mysql; echo $$?))
|
||
|
POCO_MYSQL_INCLUDE = /usr/local/include
|
||
|
else
|
||
|
ifeq (0, $(shell test -d /usr/local/opt/mysql-client/include; echo $$?))
|
||
|
POCO_MYSQL_INCLUDE = /usr/local/opt/mysql-client/include
|
||
|
endif
|
||
|
endif
|
||
|
endif
|
||
|
|
||
|
ifndef POCO_MYSQL_LIB
|
||
|
ifeq (0, $(shell test -d /usr/local/include/mysql; echo $$?))
|
||
|
POCO_MYSQL_LIB = /usr/local/lib
|
||
|
else
|
||
|
ifeq (0, $(shell test -d /usr/local/opt/mysql-client/lib; echo $$?))
|
||
|
POCO_MYSQL_LIB = /usr/local/opt/mysql-client/lib
|
||
|
endif
|
||
|
endif
|
||
|
endif
|
||
|
|
||
|
ifdef POCO_MYSQL_INCLUDE
|
||
|
INCLUDE += -I$(POCO_MYSQL_INCLUDE)
|
||
|
endif
|
||
|
ifdef POCO_MYSQL_LIB
|
||
|
SYSLIBS += -L$(POCO_MYSQL_LIB)
|
||
|
endif
|