########################################################################### # # Makefile -- Makefile for db2txt # 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@ DPLIBS = LIBS = @GDBM_LIBPATH@ -lgdbm @LIBS@ GSDLOS = @gsdlos@ INSTALL = @INSTALL@ COMPILE = $(CC) -c $(DEFS) $(INCLUDES) $(CFLAGS) CXXCOMPILE = $(CXX) -c $(DEFS) $(INCLUDES) $(CXXFLAGS) LINK = $(CC) $(LDFLAGS) -o $@ CXXLINK = $(CXX) $(LDFLAGS) -o $@ .SUFFIXES: .SUFFIXES: .c .o .c.o: $(COMPILE) $< .SUFFIXES: .cpp .o .cpp.o: $(CXXCOMPILE) $< HEADERS = SOURCES = db2txt.cpp OBJECTS = db2txt.o EXEC = db2txt 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) # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # DB2TXT_OBJS = db2txt.o db2txt: $(DB2TXT_OBJS) $(DPLIBS) $(CXXLINK) $(DB2TXT_OBJS) $(LIBS)