32 lines
527 B
Makefile
32 lines
527 B
Makefile
|
|
mysql_LIBS = `mysql_config --libs`
|
|
mysql_CFLAGS = `mysql_config --cflags`
|
|
|
|
vn_mysql_libdir = /usr/lib/mysql/plugin
|
|
|
|
if MYSQL8
|
|
|
|
MYSQLD_SOURCE = /var/mysql/mysql-8.0.15
|
|
vn_mysql_CFLAGS = \
|
|
-Wall -O3 \
|
|
-DMYSQL8=1 \
|
|
-I$(MYSQLD_SOURCE)/include \
|
|
-I$(MYSQLD_SOURCE) \
|
|
-I$(MYSQLD_SOURCE)/bld/include \
|
|
-I$(MYSQLD_SOURCE)libbinlogevents/export \
|
|
$(mysql_CFLAGS)
|
|
|
|
else
|
|
|
|
vn_mysql_CFLAGS = \
|
|
-Wall -O3 \
|
|
$(mysql_CFLAGS)
|
|
|
|
endif
|
|
|
|
vn_mysql_LDFLAGS = \
|
|
-no-undefined \
|
|
-module \
|
|
-avoid-version \
|
|
-export-dynamic \
|
|
$(mysql_LIBS)
|