# Copyright (C) 2000, Ciber-Net; afernand@lanet.com.ar
# This Makefile is free software; Ciber-Net gives unlimited permission 
# to copy and/or distribute it, with or without modifications, as long 
# as this notice is preserved. Any change, please send us a copy
# for the sake of feedback this soft

# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
# PARTICULAR PURPOSE.


SHELL = /bin/sh
#TEXT=-DTMP_FILE_TXT

srcdir = .
prefix = /usr/local/mysql
exec_prefix = ${prefix}

bindir = ${exec_prefix}/bin
libdir = ${exec_prefix}/lib
includedir = ${prefix}/include

pkgdatadir = $(datadir)/mysql
pkglibdir = $(libdir)/mysql
pkgincludedir = $(includedir)/mysql


SOURCE=sqlmy.c dbf.c
HEADER=sqlmy.h dbf.h
CC = gcc
CFLAGS = -O6 -shared
LIBDIR=-L${pkglibdir}
LIB=-lFlagShip -lmysqlclient
INCLUDE=-I${pkgincludedir}

all:	sqlmy.o

sqlmy.o: sqlmy.c Makefile $(HEADER) $(SOURCE)
	$(CC) $(CFLAGS) $(TEXT) $(LIBDIR) $(INCLUDE) $(LIB) $(SOURCE) -o sqlmy.o
	cp sqlmy.o /usr/lib
