[552] | 1 | ###########################################################################
|
---|
| 2 | #
|
---|
| 3 | # Makefile -- Makefile for db2txt
|
---|
[558] | 4 | # A component of the Greenstone digital library software
|
---|
| 5 | # from the New Zealand Digital Library Project at the
|
---|
| 6 | # University of Waikato, New Zealand.
|
---|
| 7 | #
|
---|
[552] | 8 | # Copyright (C) 1999 Rodger McNab, Stefan Boddie
|
---|
| 9 | #
|
---|
[558] | 10 | #
|
---|
[552] | 11 | # This program is free software; you can redistribute it and/or modify
|
---|
| 12 | # it under the terms of the GNU General Public License as published by
|
---|
| 13 | # the Free Software Foundation; either version 2 of the License, or
|
---|
| 14 | # (at your option) any later version.
|
---|
| 15 | #
|
---|
| 16 | # This program is distributed in the hope that it will be useful,
|
---|
| 17 | # but WITHOUT ANY WARRANTY; without even the implied warranty of
|
---|
| 18 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
---|
| 19 | # GNU General Public License for more details.
|
---|
| 20 | #
|
---|
| 21 | # You should have received a copy of the GNU General Public License
|
---|
| 22 | # along with this program; if not, write to the Free Software
|
---|
| 23 | # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
---|
| 24 | #
|
---|
| 25 | # @(#)Makefile.in 1.3 16 Mar 1994
|
---|
| 26 | #
|
---|
| 27 | ###########################################################################
|
---|
| 28 |
|
---|
| 29 |
|
---|
| 30 | AR = ar
|
---|
| 31 | CC = @CC@
|
---|
[15551] | 32 | CXX = @CXX@
|
---|
| 33 | CFLAGS = -Wall @CFLAGS@ @COMPAT32BITFLAGS@
|
---|
| 34 | CXXFLAGS= -Wall @CXXFLAGS@ @COMPAT32BITFLAGS@
|
---|
[552] | 35 | DEFS = @DEFS@
|
---|
| 36 | RANLIB = @RANLIB@
|
---|
[15230] | 37 | INCLUDES = -I../../../lib @GDBM_INCLUDE@
|
---|
[15551] | 38 | LDFLAGS = @LDFLAGS@ @COMPAT32BITFLAGS@
|
---|
[578] | 39 | DPLIBS =
|
---|
[2371] | 40 | LIBS = @GDBM_LIBPATH@ -lgdbm @LIBS@
|
---|
[558] | 41 | GSDLOS = @gsdlos@
|
---|
[2900] | 42 | INSTALL = @INSTALL@
|
---|
[552] | 43 |
|
---|
[15551] | 44 | COMPILE = $(CC) -c $(DEFS) $(INCLUDES) $(CFLAGS)
|
---|
| 45 | CXXCOMPILE = $(CXX) -c $(DEFS) $(INCLUDES) $(CXXFLAGS)
|
---|
[552] | 46 | LINK = $(CC) $(LDFLAGS) -o $@
|
---|
[15551] | 47 | CXXLINK = $(CXX) $(LDFLAGS) -o $@
|
---|
[552] | 48 |
|
---|
| 49 | .SUFFIXES:
|
---|
| 50 | .SUFFIXES: .c .o
|
---|
| 51 | .c.o:
|
---|
| 52 | $(COMPILE) $<
|
---|
| 53 |
|
---|
| 54 | .SUFFIXES: .cpp .o
|
---|
| 55 | .cpp.o:
|
---|
[15551] | 56 | $(CXXCOMPILE) $<
|
---|
[552] | 57 |
|
---|
| 58 |
|
---|
| 59 | HEADERS =
|
---|
| 60 |
|
---|
| 61 | SOURCES = db2txt.cpp
|
---|
| 62 |
|
---|
| 63 | OBJECTS = db2txt.o
|
---|
| 64 |
|
---|
[573] | 65 | EXEC = db2txt
|
---|
[552] | 66 |
|
---|
| 67 | all : $(EXEC)
|
---|
| 68 |
|
---|
| 69 | install: $(EXEC)
|
---|
[15230] | 70 | $(INSTALL) -d ../../../bin/$(GSDLOS)
|
---|
| 71 | $(INSTALL) -m 755 -s $(EXEC) ../../../bin/$(GSDLOS)
|
---|
[552] | 72 |
|
---|
[992] | 73 | distclean:
|
---|
| 74 | rm -f $(OBJECTS) $(EXEC) Makefile
|
---|
| 75 |
|
---|
[552] | 76 | clean:
|
---|
| 77 | rm -f $(OBJECTS) $(EXEC)
|
---|
| 78 |
|
---|
| 79 | depend:
|
---|
[15551] | 80 | makedepend -Y -- $(DEFS) $(INCLUDES) $(CFLAGS) -- $(SOURCES)
|
---|
[552] | 81 |
|
---|
| 82 |
|
---|
| 83 | # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
|
---|
| 84 |
|
---|
| 85 | DB2TXT_OBJS = db2txt.o
|
---|
| 86 |
|
---|
[578] | 87 | db2txt: $(DB2TXT_OBJS) $(DPLIBS)
|
---|
[15551] | 88 | $(CXXLINK) $(DB2TXT_OBJS) $(LIBS)
|
---|