TCL_VERSION?=	tcl8.3
TCL_NODOT?=	${TCL_VERSION:S/.//}
LIB	=	TclMySQL
SHLIB_MAJOR=	1
SHLIB_MINOR=	0

SRCS	=	sql-mysql.cc sql.cc sql-manager.cc
CXXFLAGS+=	-I${LOCALBASE}/include/${TCL_VERSION} -DUSE_TCL_STUBS
CXXFLAGS+=	-I${LOCALBASE}/include/mysql
LDADD  +=	-L${LOCALBASE}/lib -l${TCL_NODOT:S/tcl/tclstub/}
LDADD  +=	-L${LOCALBASE}/lib/mysql -lmysqlclient
LDADD  +=	-lgcc
INTERNALLIB=	yeah, don't make the useless static lib

printname:
	@echo -n ${SHLIB_NAME}

.include <bsd.lib.mk>
