# _____       _    _    Corso   Italia,  178
# (_|__   .  (_   |_|_  56125           Pisa
# (_|_) |)|(()_)()| |   tel.  +39  050 46380
#   |   |               picosoft@picosoft.it

#  Copyright (C) Picosoft s.r.l. 1994-2002

#  This program is free software; you can redistribute it and/or modify
#  it under the terms of the GNU General Public License as published by
#  the Free Software Foundation; either version 2, or (at your option)
#  any later version.

#  This program is distributed in the hope that it will be useful,
#  but WITHOUT ANY WARRANTY; without even the implied warranty of
#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#  GNU General Public License for more details.

#  You should have received a copy of the GNU General Public License
#  along with this program; if not, write to the Free Software
#  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.

CFLAGS=-O -I../inc -I../picocpp -I../picoisam -I../picoblob -DTRANSACTION
CCPP=g++
.SUFFIXES: .o .cpp
OBJS=	attribut.o catalog.o cfield.o conditn.o connect.o \
	database.o dberror.o envirini.o environ.o execute.o \
	express.o indexprt.o info.o lex.o odbcdate.o options.o \
	parscat.o parsddl.o prepare.o relation.o relobjec.o \
        relview.o results.o serchidx.o \
	sort.o sortrel.o sqlpars.o stmtattr.o \
	stmtrel.o stmtrlvw.o trace.o where.o \
	like.o win4unix.o blob.o parscall.o
HDRS=	attribut.h catalog.h cfield.h conditn.h connect.h \
	database.h dberror.h envirini.h environ.h execute.h \
	express.h indexprt.h info.h lex.h odbcdate.h options.h \
	parscat.h parsddl.h prepare.h relation.h relobjec.h \
        relview.h results.h serchidx.h \
	sort.h sortrel.h sqlpars.h stmtattr.h \
	stmtrel.h stmtrlvw.h trace.h where.h blob.h parscall.h \
	../inc/win4unix.h
LIBPICOSQL=../lib/libsqlengine.a

$(LIBPICOSQL):$(OBJS)
	ar rv $(LIBPICOSQL) $(OBJS)

.cpp.o:$(HDRS)
	$(CCPP) -c $(CFLAGS) $(INCL) $<

.c.o:
	gcc -c $(CFLAGS) $<

clean:
	rm -f *.o $(LIBPICOSQL)
