#
# $Id: Makefile,v 1.7 2006/12/11 12:29:44 marceloanelli Exp $
#

ROOT = ../../

ifeq ($(HB_ARCHITECTURE),linux)

# MYSQL_INC_PATH is a directory name of installed mysql.h
# If you install mysql by RPM(Red-hat package manager) then it is be /usr/include/mysql.
# MYSQL_LIB_PATH does not use at make libmysql.a but use at compile application that used libmysql.a
# 
# MYSQL_LIB_PATH=/usr/local/mysql/lib/mysql
# MYSQL_INC_PATH=/usr/local/mysql/include/mysql
# C_USR += -I$(MYSQL_INC_PATH)
# LINKPATH += -L$(MYSQL_LIB_PATH)

# a workaround of a problem with different include directories 
# for mysql header files between different unix distributions
C_USR += -I/usr/include/mysql -I/usr/local/include/mysql \
          -I/usr/local/mysql/include/mysql -I/usr/include

endif

ifneq ($(HB_ARCHITECTURE),dos)

C_SOURCES=\
        mysql.c \

PRG_SOURCES=\
        tmysql.prg  \
        tsqlbrw.prg \
        mysqlrdd.prg \

LIBNAME=mysql
ifneq ($(HB_ARCHITECTURE),dos)
MT_LIBNAME=mysqlmt
endif

include $(TOP)$(ROOT)config/lib.cf

endif

