summaryrefslogtreecommitdiffstats
path: root/freebsd/dependencies/tqt3-mysql-plugin/files/Makefile.bsd
blob: 6648767d0c133470c90ae9401ca6901099b3d08c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
SHLIB_NAME=	libqsql${DB}.so

VPATH=		${PLUGIN}:${DRIVER}
CXXFLAGS+=	-I${PLUGIN} -I${DRIVER} \
		-I${LOCALBASE}/include \
		-I${LOCALBASE}/include/tqt3 \
		-I${LOCALBASE}/include/mysql \
		${PTHREAD_CFLAGS} -DQT_THREAD_SUPPORT
LDADD=		-L${LOCALBASE}/lib \
		-L${LOCALBASE}/lib/mysql \
		${PTHREAD_LIBS} -ltqt-mt -lmysqlclient
SRCS=		main.cpp qsql_${DB}.cpp

LIBDIR=		${PREFIX}/lib/tqt3/plugins/sqldrivers

${DESTDIR}${LIBDIR}:
	mkdir -p ${DESTDIR}${LIBDIR}

beforeinstall:	${DESTDIR}${LIBDIR}

.include <bsd.lib.mk>