[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@
|
---|
[1860] | 32 | CPP = @CXX@
|
---|
[577] | 33 | CCFLAGS = -Wall @CFLAGS@
|
---|
[552] | 34 | DEFS = @DEFS@
|
---|
| 35 | RANLIB = @RANLIB@
|
---|
| 36 | INCLUDES = -I../../lib
|
---|
[1802] | 37 | LDFLAGS = @LDFLAGS@
|
---|
[578] | 38 | DPLIBS =
|
---|
[985] | 39 | #LIBS = -lstdc++ -lgdbm
|
---|
| 40 | LIBS = @LIBS@
|
---|
[558] | 41 | GSDLOS = @gsdlos@
|
---|
[552] | 42 |
|
---|
| 43 |
|
---|
| 44 | COMPILE = $(CC) -c $(DEFS) $(INCLUDES) $(CCFLAGS)
|
---|
[1860] | 45 | CPPCOMPILE = $(CPP) -c $(DEFS) $(INCLUDES) $(CCFLAGS)
|
---|
[552] | 46 | LINK = $(CC) $(LDFLAGS) -o $@
|
---|
[1860] | 47 | CPPLINK = $(CPP) $(LDFLAGS) -o $@
|
---|
[552] | 48 |
|
---|
| 49 | .SUFFIXES:
|
---|
| 50 | .SUFFIXES: .c .o
|
---|
| 51 | .c.o:
|
---|
| 52 | $(COMPILE) $<
|
---|
| 53 |
|
---|
| 54 | .SUFFIXES: .cpp .o
|
---|
| 55 | .cpp.o:
|
---|
[1860] | 56 | $(CPPCOMPILE) $<
|
---|
[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)
|
---|
[1004] | 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:
|
---|
| 80 | makedepend -Y -- $(DEFS) $(INCLUDES) $(CCFLAGS) -- $(SOURCES)
|
---|
| 81 |
|
---|
| 82 |
|
---|
| 83 | # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
|
---|
| 84 |
|
---|
| 85 | DB2TXT_OBJS = db2txt.o
|
---|
| 86 |
|
---|
[578] | 87 | db2txt: $(DB2TXT_OBJS) $(DPLIBS)
|
---|
[552] | 88 | $(LINK) $(DB2TXT_OBJS) $(LIBS)
|
---|