# $Id: Makefile.000.in,v 1.19 2000/10/12 21:24:41 cnidr Exp $ # # See ../Makefile for compilation instructions. # SHELL=/bin/sh # # Compiler # CC=g++ # # Compiler Flags # # Uncomment the appropriate entry # #CFLAGS=-O2 -DUNIX -Wall CFLAGS=-g -DUNIX -Wall -Wno-unused # # Install Directory # # Where should I install executables (make install)? # INSTALL=/usr/local/bin # # Executables Directory # # Where should I place executables? # BIN_DIR=../bin # # Document Type Directory # # Where are document type sources located? # DOCTYPE_DIR=../doctype DOCLIB= # # That should be all you need to configure # LIB = libIsearch.a AR = ar ARFLAGS = r LDFLAGS= LIBS=-lIsearch -lm #-lc EXTRA_LIBS= RANLIB=@RANLIB@ RANLIB_TEST = [ -f /usr/bin/ranlib -o -f /bin/ranlib ] OBJ= defs.o vlist.o registry.o opobj.o operand.o operator.o termobj.o sterm.o \ opstack.o squery.o fprec.o fpt.o strlist.o dtreg.o idb.o \ string.o common.o result.o rset.o iresult.o irset.o record.o \ reclist.o mdt.o mdtrec.o index.o attr.o attrlist.o dfd.o \ dfdt.o dft.o df.o fc.o fct.o tokengen.o strstack.o \ infix2rpn.o glist.o gstack.o rcache.o merge.o multiterm.o \ nfield.o nlist.o intfield.o intlist.o mergeunit.o vidb.o \ memcntl.o marclib.o marc.o hash.o filemap.o soundex.o \ numsearch.o datesearch.o geosearch.o date.o Debug.o Firewall.o \ thesaurus.o md5.o md5sum.o \ ###DTOBJ### H= gdt.h vlist.hxx sw.hxx opobj.hxx operand.hxx operator.hxx \ termobj.hxx sterm.hxx opstack.hxx squery.hxx registry.hxx \ fprec.hxx fpt.hxx strlist.hxx dtreg.hxx idb.hxx \ string.hxx common.hxx result.hxx rset.hxx iresult.hxx \ irset.hxx record.hxx reclist.hxx mdt.hxx mdtrec.hxx \ index.hxx attr.hxx attrlist.hxx dfd.hxx dfdt.hxx dft.hxx \ df.hxx fc.hxx fct.hxx defs.hxx idbobj.hxx \ tokengen.hxx strstack.hxx infix2rpn.hxx glist.hxx gstack.hxx \ rcache.hxx nfield.hxx nfldmgr.hxx nlist.hxx vidb.hxx \ intfield.hxx intlist.hxx merge.hxx hash.hxx mergeunit.hxx \ memcntl.hxx marclib.hxx marcdefs.hxx marc.hxx soundex.hxx \ filemap.hxx date.hxx Debug.h Firewall.h thesaurus.hxx md5.hxx \ ###DTHXX### INC= -I$(DOCTYPE_DIR) -I../src RM= rm -f all: $(OBJ) $(LIB) Iindex.o Isearch.o Iutil.o Iget.o zsearch.o \ zpresent.o Iindex Isearch Iutil Iget zsearch zpresent #gdt-sys.h: # /bin/sh ./configure $(CC) Iindex.o:$(H) Iindex.cxx $(CC) $(CFLAGS) $(INC) -o $@ -c Iindex.cxx Isearch.o:$(H) Isearch.cxx $(CC) $(CFLAGS) $(INC) -o $@ -c Isearch.cxx Iutil.o:$(H) Iutil.cxx $(CC) $(CFLAGS) $(INC) -o $@ -c Iutil.cxx Iget.o:$(H) Iget.cxx $(CC) $(CFLAGS) $(INC) -o $@ -c Iget.cxx zsearch.o:$(H) zsearch.cxx $(CC) $(CFLAGS) $(INC) -o $@ -c zsearch.cxx zpresent.o:$(H) zpresent.cxx $(CC) $(CFLAGS) $(INC) -o $@ -c zpresent.cxx defs.o:$(H) defs.cxx $(CC) $(CFLAGS) $(INC) -o $@ -c defs.cxx vlist.o:$(H) vlist.cxx $(CC) $(CFLAGS) $(INC) -o $@ -c vlist.cxx registry.o:$(H) registry.cxx $(CC) $(CFLAGS) $(INC) -o $@ -c registry.cxx opobj.o:$(H) opobj.cxx $(CC) $(CFLAGS) $(INC) -o $@ -c opobj.cxx opstack.o:$(H) opstack.cxx $(CC) $(CFLAGS) $(INC) -o $@ -c opstack.cxx operand.o:$(H) operand.cxx $(CC) $(CFLAGS) $(INC) -o $@ -c operand.cxx operator.o:$(H) operator.cxx $(CC) $(CFLAGS) $(INC) -o $@ -c operator.cxx termobj.o:$(H) termobj.cxx $(CC) $(CFLAGS) $(INC) -o $@ -c termobj.cxx sterm.o:$(H) sterm.cxx $(CC) $(CFLAGS) $(INC) -o $@ -c sterm.cxx fprec.o:$(H) fprec.cxx $(CC) $(CFLAGS) $(INC) -o $@ -c fprec.cxx fpt.o:$(H) fpt.cxx $(CC) $(CFLAGS) $(INC) -o $@ -c fpt.cxx strlist.o:$(H) strlist.cxx $(CC) $(CFLAGS) $(INC) -o $@ -c strlist.cxx dtreg.o:$(H) dtreg.cxx $(CC) $(CFLAGS) $(INC) -o $@ -c dtreg.cxx idb.o:$(H) idb.cxx $(CC) $(CFLAGS) $(INC) -o $@ -c idb.cxx string.o:$(H) string.cxx $(CC) $(CFLAGS) $(INC) -o $@ -c string.cxx strstack.o:$(H) strstack.cxx $(CC) $(CFLAGS) $(INC) -o $@ -c strstack.cxx tokengen.o:$(H) tokengen.cxx $(CC) $(CFLAGS) $(INC) -o $@ -c tokengen.cxx infix2rpn.o:$(H) infix2rpn.cxx $(CC) $(CFLAGS) $(INC) -o $@ -c infix2rpn.cxx common.o:$(H) common.cxx $(CC) $(CFLAGS) $(INC) -o $@ -c common.cxx result.o:$(H) result.cxx $(CC) $(CFLAGS) $(INC) -o $@ -c result.cxx merge.o:$(H) merge.cxx $(CC) $(CFLAGS) $(INC) -o $@ -c merge.cxx rset.o:$(H) rset.cxx $(CC) $(CFLAGS) $(INC) -o $@ -c rset.cxx iresult.o:$(H) iresult.cxx $(CC) $(CFLAGS) $(INC) -o $@ -c iresult.cxx irset.o:$(H) irset.cxx $(CC) $(CFLAGS) $(INC) -o $@ -c irset.cxx squery.o:$(H) squery.cxx $(CC) $(CFLAGS) $(INC) -o $@ -c squery.cxx record.o:$(H) record.cxx $(CC) $(CFLAGS) $(INC) -o $@ -c record.cxx reclist.o:$(H) reclist.cxx $(CC) $(CFLAGS) $(INC) -o $@ -c reclist.cxx mdt.o:$(H) mdt.cxx $(CC) $(CFLAGS) $(INC) -o $@ -c mdt.cxx mdtrec.o:$(H) mdtrec.cxx $(CC) $(CFLAGS) $(INC) -o $@ -c mdtrec.cxx index.o:$(H) index.cxx $(CC) $(CFLAGS) $(INC) -o $@ -c index.cxx numsearch.o:$(H) numsearch.cxx $(CC) $(CFLAGS) $(INC) -o $@ -c numsearch.cxx datesearch.o:$(H) datesearch.cxx $(CC) $(CFLAGS) $(INC) -o $@ -c datesearch.cxx geosearch.o:$(H) geosearch.cxx $(CC) $(CFLAGS) $(INC) -o $@ -c geosearch.cxx attr.o:$(H) attr.cxx $(CC) $(CFLAGS) $(INC) -o $@ -c attr.cxx attrlist.o:$(H) attrlist.cxx $(CC) $(CFLAGS) $(INC) -o $@ -c attrlist.cxx dfd.o:$(H) dfd.cxx $(CC) $(CFLAGS) $(INC) -o $@ -c dfd.cxx dfdt.o:$(H) dfdt.cxx $(CC) $(CFLAGS) $(INC) -o $@ -c dfdt.cxx dft.o:$(H) dft.cxx $(CC) $(CFLAGS) $(INC) -o $@ -c dft.cxx df.o:$(H) df.cxx $(CC) $(CFLAGS) $(INC) -o $@ -c df.cxx fc.o:$(H) fc.cxx $(CC) $(CFLAGS) $(INC) -o $@ -c fc.cxx fct.o:$(H) fct.cxx $(CC) $(CFLAGS) $(INC) -o $@ -c fct.cxx soundex.o:$(H) soundex.cxx $(CC) $(CFLAGS) $(INC) -o $@ -c soundex.cxx glist.o:$(H) glist.cxx $(CC) $(CFLAGS) $(INC) -o $@ -c glist.cxx gstack.o:$(H) gstack.cxx $(CC) $(CFLAGS) $(INC) -o $@ -c gstack.cxx memcntl.o: $(H) memcntl.cxx $(CC) $(CFLAGS) $(INC) -o $@ -c memcntl.cxx marclib.o: $(H) marclib.cxx $(CC) $(CFLAGS) $(INC) -o $@ -c marclib.cxx marc.o: $(H) marc.cxx $(CC) $(CFLAGS) $(INC) -o $@ -c marc.cxx rcache.o:$(H) rcache.cxx $(CC) $(CFLAGS) $(INC) -o $@ -c rcache.cxx nfield.o: $(H) nfield.cxx $(CC) $(CFLAGS) $(INC) -o $@ -c nfield.cxx nfldmgr.o: $(H) nfldmgr.cxx $(CC) $(CFLAGS) $(INC) -o $@ -c nfldmgr.cxx nlist.o: $(H) nlist.cxx $(CC) $(CFLAGS) $(INC) -o $@ -c nlist.cxx nlatlon.o: $(H) nlatlon.cxx $(CC) $(CFLAGS) $(INC) -o $@ -c nlatlon.cxx intlist.o: $(H) intlist.cxx $(CC) $(CFLAGS) $(INC) -o $@ -c intlist.cxx intfield.o: $(H) intfield.cxx $(CC) $(CFLAGS) $(INC) -o $@ -c intfield.cxx stopword.o: $(H) stopword.cxx $(CC) $(CFLAGS) $(INC) -o $@ -c stopword.cxx hash.o: $(H) hash.cxx $(CC) $(CFLAGS) $(INC) -o $@ -c hash.cxx mergeunit.o:$(H) mergeunit.cxx $(CC) $(CFLAGS) $(INC) -o $@ -c mergeunit.cxx filemap.o:$(H) filemap.cxx $(CC) $(CFLAGS) $(INC) -o $@ -c filemap.cxx multiterm.o:$(H) multiterm.cxx $(CC) $(CFLAGS) $(INC) -o $@ -c multiterm.cxx date.o:$(H) date.cxx $(CC) $(CFLAGS) $(INC) -o $@ -c date.cxx vidb.o:$(H) vidb.cxx $(CC) $(CFLAGS) $(INC) -o $@ -c vidb.cxx thesaurus.o:$(H) thesaurus.cxx $(CC) $(CFLAGS) $(INC) -o $@ -c thesaurus.cxx Debug.o:Debug.h Debug.cc $(CC) $(CFLAGS) $(INC) -o $@ -c Debug.cc Firewall.o:Firewall.h Firewall.cc $(CC) $(CFLAGS) $(INC) -o $@ -c Firewall.cc md5.o:$(H) md5.cxx $(CC) $(CFLAGS) $(INC) -o $@ -c md5.cxx md5sum.o:$(H) md5sum.cxx $(CC) $(CFLAGS) $(INC) -o $@ -c md5sum.cxx ###DTMAKE### doctype.o:$(H) $(DOCTYPE_DIR)/doctype.cxx $(CC) $(CFLAGS) $(INC) -o $@ -c $(DOCTYPE_DIR)/doctype.cxx $(LIB):$(BIN_DIR)/$(LIB) @true $(BIN_DIR)/$(LIB):$(OBJ) # $(AR) $(ARFLAGS) $(BIN_DIR)/$(LIB) $(OBJ) $(AR) $(ARFLAGS) $@ $? `if $(RANLIB_TEST) ; \ then $(RANLIB) $(BIN_DIR)/$(LIB) ; \ else true ; fi` Iindex:$(BIN_DIR)/Iindex @true $(BIN_DIR)/Iindex:$(BIN_DIR)/$(LIB) Iindex.o $(RM) $@ $(CC) $(LDFLAGS) -o $@ Iindex.o -L$(BIN_DIR) \ $(LIBS) $(DOCLIB) $(EXTRA_LIBS) Isearch:$(BIN_DIR)/Isearch @true $(BIN_DIR)/Isearch:$(BIN_DIR)/$(LIB) Isearch.o $(RM) $@ $(CC) $(LDFLAGS) -o $@ Isearch.o -L$(BIN_DIR) \ $(LIBS) $(DOCLIB) $(EXTRA_LIBS) Iutil:$(BIN_DIR)/Iutil @true $(BIN_DIR)/Iutil:$(BIN_DIR)/$(LIB) Iutil.o $(RM) $@ $(CC) $(LDFLAGS) -o $@ Iutil.o -L$(BIN_DIR) \ $(LIBS) $(DOCLIB) $(EXTRA_LIBS) Iget:$(BIN_DIR)/Iget @true $(BIN_DIR)/Iget:$(BIN_DIR)/$(LIB) Iget.o $(RM) $@ $(CC) $(LDFLAGS) -o $@ Iget.o -L$(BIN_DIR) \ $(LIBS) $(DOCLIB) $(EXTRA_LIBS) zsearch:$(BIN_DIR)/zsearch @true $(BIN_DIR)/zsearch:$(BIN_DIR)/$(LIB) zsearch.o $(RM) $@ $(CC) $(LDFLAGS) -o $@ zsearch.o -L$(BIN_DIR) \ $(LIBS) $(DOCLIB) $(EXTRA_LIBS) zpresent:$(BIN_DIR)/zpresent @true $(BIN_DIR)/zpresent:$(BIN_DIR)/$(LIB) zpresent.o $(RM) $@ $(CC) $(LDFLAGS) -o $@ zpresent.o -L$(BIN_DIR) \ $(LIBS) $(DOCLIB) $(EXTRA_LIBS) clean: $(RM) *.o *~ core $(BIN_DIR)/$(LIB) $(BIN_DIR)/Iindex \ $(BIN_DIR)/Isearch $(BIN_DIR)/Iutil $(BIN_DIR)/Iget $(BIN_DIR)/zsearch $(BIN_DIR)/zpresent realclean: $(RM) *.o *~ core Makefile Makefile.000 conf.h $(BIN_DIR)/Iindex \ $(BIN_DIR)/Isearch $(BIN_DIR)/Iutil $(BIN_DIR)/$(LIB) \ $(BIN_DIR)/Iget $(BIN_DIR)/zsearch $(BIN_DIR)/zpresent distclean: $(RM) *.o *~ core Makefile Makefile.000 conf.h $(BIN_DIR)/Iindex \ $(BIN_DIR)/Isearch $(BIN_DIR)/Iutil $(BIN_DIR)/$(LIB) \ $(BIN_DIR)/Iget $(BIN_DIR)/zsearch $(BIN_DIR)/zpresent build: make -i realclean make all install: @echo "*** Copying Isearch executables to $(INSTALL)/. ***" cp $(BIN_DIR)/Iindex $(INSTALL)/. cp $(BIN_DIR)/Isearch $(INSTALL)/. cp $(BIN_DIR)/Iutil $(INSTALL)/. cp $(BIN_DIR)/Iget $(INSTALL)/. cp $(BIN_DIR)/zsearch $(INSTALL)/. cp $(BIN_DIR)/zpresent $(INSTALL)/.