########################################################################### # # Makefile -- Makefile for txt2db # A component of the Greenstone digital library software # from the New Zealand Digital Library Project at the # University of Waikato, New Zealand. # # Copyright (C) 1999 Rodger McNab, Stefan Boddie # # 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., 675 Mass Ave, Cambridge, MA 02139, USA. # # @(#)Makefile.in 1.3 16 Mar 1994 # ########################################################################### AR = ar CC = @CC@ CXX = @CXX@ CFLAGS = -Wall @CFLAGS@ @COMPAT32BITFLAGS@ CXXFLAGS = -Wall @CXXFLAGS@ @COMPAT32BITFLAGS@ DEFS = @DEFS@ RANLIB = @RANLIB@ INCLUDES = -I../../../lib @GDBM_INCLUDE@ LDFLAGS = @LDFLAGS@ @COMPAT32BITFLAGS@ INDEXERS_DIR=../../../indexers DPLIBS = ../../../lib/gsdllib.a $(INDEXERS_DIR)/mg/lib/unitool.o LIBS = ../../../lib/gsdllib.a $(INDEXERS_DIR)/mg/lib/unitool.o @GDBM_LIBPATH@ -lgdbm @LIBS@ GSDLOS = @gsdlos@ INSTALL = @INSTALL@ COMPILE = $(CC) -c $(DEFS) $(INCLUDES) $(CFLAGS) CXXCOMPILE = $(CXX) -c $(DEFS) $(INCLUDES) $(CXXFLAGS) MCOMPILE = ../../../bin/linux/mico-c++ $(MCFLAGS) $(DEFS) $(MINCLUDES) -c LINK = $(CC) $(LDFLAGS) -o $@ MLINK = ../../../bin/linux/mico-ld $(LDFLAGS) -lmico2.2.7 -o $@ CXXLINK = $(CXX) $(LDFLAGS) -o $@ .SUFFIXES: .SUFFIXES: .c .o .c.o: $(COMPILE) $< .SUFFIXES: .cpp .o .cpp.o: $(CXXCOMPILE) $< .SUFFIXES: .mpp .o .mpp.o: $(MCOMPILE) $< HEADERS = SOURCES = txt2db.cpp OBJECTS = txt2db.o EXEC = txt2db all : $(EXEC) install: $(EXEC) $(INSTALL) -d ../../../bin/$(GSDLOS) $(INSTALL) -m 755 -s $(EXEC) ../../../bin/$(GSDLOS) distclean: rm -f $(OBJECTS) $(EXEC) Makefile clean: rm -f $(OBJECTS) $(EXEC) depend: makedepend -Y -- $(DEFS) $(INCLUDES) $(CFLAGS) -- $(SOURCES) # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # TXT2DB_OBJS = txt2db.o txt2db: $(TXT2DB_OBJS) $(DPLIBS) $(CXXLINK) $(TXT2DB_OBJS) $(LIBS)