Makefile.in
上传用户:dgyhgb
上传日期:2007-01-07
资源大小:676k
文件大小:2k
- ##########################################################################
- ## GNU SQL Server Sorter ##
- ##########################################################################
- ##
- ## $Id: Makefile.src.engine.sort.in,v 1.246 1997/04/16 09:39:37 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=@srcdir@
- VPATH=@srcdir@
- include ../../Makefile_h
- all: install
- install: bin
- - [ -d $(SERVBIN) ] || mkdir -p $(SERVBIN)
- $(CP) sort $(SERVBIN)/srt
- bin: sort
- SRC=cmpkey.c extsrt.c push.c puts.c quicksor.c rkfrm.c sort.c srtipc.c tidsrt.c
- SRCOBS= ${SRC:.c=.$(O)}
- SRT_H_DEPS= dessrt.h $(IINC)/destrn.h $(IINC)/rnmtp.h $(IINC)/pupsi.h
- $(IINC)/tptrn.h $(IINC)/pupans.h $(IINC)/fieldtp.h $(IINC)/deftr.h
- $(IINC)/totdecl.h fdclsrt.h
- sort : $(SRCOBS) ../trans/cmpftn.$(O)
- echo -- generating $@
- - $(RM) $@
- # here we need to do very awful activity
- $(LD) $(SRCOBS) ../trans/cmpftn.$(O) $(LIB)/xmem.$(O) $(LIB)/sql_decl.$(O) -o $@
- # the following line should be used instead but it's impossible because of name conflicts
- # $(LD) $(SRCOBS) $(SRLIBS) -o $@
- clean::
- - $(RM) sort
- cmpkey.$(O) : cmpkey.c $(SRT_H_DEPS)
- extsrt.$(O) : extsrt.c $(SRT_H_DEPS)
- push.$(O) : push.c $(SRT_H_DEPS)
- puts.$(O) : puts.c $(SRT_H_DEPS)
- quicksor.$(O) : quicksor.c $(SRT_H_DEPS)
- rkfrm.$(O) : rkfrm.c $(SRT_H_DEPS)
- sort.$(O) : sort.c $(SRT_H_DEPS)
- srtipc.$(O) : srtipc.c $(SRT_H_DEPS) $(IINC)/inpop.h $(IINC)/strml.h
- tidsrt.$(O) : tidsrt.c $(SRT_H_DEPS)