# Generated automatically from Makefile.in by configure.
##============================================================##
##       GNU SQL compiler (engine interface library)          ##
##============================================================##
## $Id: Makefile.src.comp-lib.in,v 1.245 1997/03/31 03:46:38 kml Exp $
##
## This file is a part of GNU SQL Server
##
## Copyright (c) 1996, 1997, Free Software Foundation, Inc
## Developed at Institute of System Programming of Russian Academy of Science
## This file is written by Michael Kimelman
##
## 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 of the License, 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.,
## 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
##
## Contacts: gss@ispras.ru
##

srcdir=/var/tmp/gnusql-0.7b5/src/comp-lib
VPATH=/var/tmp/gnusql-0.7b5/src/comp-lib
include ../Makefile_h

UTILS=base runadm finadm 
LOADLIBS=$(LIBCL)
################################################################
#          Compiler support library                            #
################################################################
all: $(LIBSER) 
binaries: $(UTILS)
clean ::
	- $(RM) $(UTILS)

libgss_ser : catfun.$(O) copy.$(O) libfunc1.$(O) \
             lib1.$(O) db_cre_ser.$(O)
	echo $? >$@
install	: $(LIBCL_DEP) $(UTILS)
	for util in $(UTILS) ; do \
	$(CP)  $$util $(SERVBIN)/$$util ; done
################################################################
# create  data base ( system catalogs )
################################################################
ADMOBJ= db_cre_cli.$(O)
base    :$(ADMOBJ) 
	echo -- generating $@
	- $(RM) $@ 
	$(LD) $(ADMOBJ) $(CLLIBS) -o $@
################################################################
#       adm terminator                                         #
################################################################
FINOBJS = finadm.$(O)
finadm : $(FINOBJS)
	echo --  generating $@
	- $(RM) $@ 
	$(LD) $(FINOBJS)  $(CLLIBS) -o $@
################################################################
#       adm initiator                                          #
################################################################
INITOBJS = runadm.$(O)
runadm : $(INITOBJS)
	echo --  generating $@
	- $(RM) $@ 
	$(LD) $(INITOBJS) $(CLLIBS) -o $@
################################################################
#                 object files dependencies                    #
################################################################
H=      ${IINC}/rnmtp.h ${IINC}/pupsi.h ${IINC}/expop.h \
        ${IINC}/pupans.h ${IINC}/fieldtp.h  $(INC)/exti.h \
        ${IINC}/tptrn.h $(INC)/sql_type.h $(INC)/typeif.h \
        $(INC)/funall.h

copy.$(O)	: copy.c $(H) 
libfunc1.$(O)	: libfunc1.c $(H) $(INC)/global.h ${IINC}/fdcltrn.h $(INC)/type_lib.h
lib1.$(O)	: lib1.c $(H) $(INC)/global.h ${IINC}/fdcltrn.h $(INC)/type_lib.h
catfun.$(O)	: catfun.c $(H) $(INC)/global.h $(INC)/type_lib.h $(INC)/sql.h $(INC)/const.h index.h
db_cre_cli.$(O)	: db_cre_cli.c $(INC)/cl_lib.h $(LINC)/gsqltrn.h
db_cre_ser.$(O)	: db_cre_ser.c $(H) $(INC)/global.h $(INC)/const.h $(INC)/type_lib.h
finadm.$(O)	: finadm.c $(H) ${LIINC}/dispatch.h 
runadm.$(O)	: runadm.c $(H) ${LIINC}/dispatch.h 
