1 | ###########################################################################
|
---|
2 | #
|
---|
3 | # Makefile -- Makefile for db2txt
|
---|
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 | #
|
---|
8 | # Copyright (C) 1999 Rodger McNab, Stefan Boddie
|
---|
9 | #
|
---|
10 | #
|
---|
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@
|
---|
32 | CCFLAGS = -Wall @CFLAGS@
|
---|
33 | DEFS = @DEFS@
|
---|
34 | RANLIB = @RANLIB@
|
---|
35 | INCLUDES = -I../../lib
|
---|
36 | LDFLAGS =
|
---|
37 | DPLIBS =
|
---|
38 | LIBS = -lstdc++ -lgdbm
|
---|
39 | GSDLOS = @gsdlos@
|
---|
40 |
|
---|
41 |
|
---|
42 | COMPILE = $(CC) -c $(DEFS) $(INCLUDES) $(CCFLAGS)
|
---|
43 | LINK = $(CC) $(LDFLAGS) -o $@
|
---|
44 |
|
---|
45 | .SUFFIXES:
|
---|
46 | .SUFFIXES: .c .o
|
---|
47 | .c.o:
|
---|
48 | $(COMPILE) $<
|
---|
49 |
|
---|
50 | .SUFFIXES: .cpp .o
|
---|
51 | .cpp.o:
|
---|
52 | $(COMPILE) $<
|
---|
53 |
|
---|
54 |
|
---|
55 | HEADERS =
|
---|
56 |
|
---|
57 | SOURCES = db2txt.cpp
|
---|
58 |
|
---|
59 | OBJECTS = db2txt.o
|
---|
60 |
|
---|
61 | EXEC = db2txt
|
---|
62 |
|
---|
63 | all : $(EXEC)
|
---|
64 |
|
---|
65 | install: $(EXEC)
|
---|
66 | install -m 755 -s $(EXEC) ../../bin/$(GSDLOS)
|
---|
67 |
|
---|
68 | clean:
|
---|
69 | rm -f $(OBJECTS) $(EXEC)
|
---|
70 |
|
---|
71 | depend:
|
---|
72 | makedepend -Y -- $(DEFS) $(INCLUDES) $(CCFLAGS) -- $(SOURCES)
|
---|
73 |
|
---|
74 |
|
---|
75 | # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
|
---|
76 |
|
---|
77 | DB2TXT_OBJS = db2txt.o
|
---|
78 |
|
---|
79 | db2txt: $(DB2TXT_OBJS) $(DPLIBS)
|
---|
80 | $(LINK) $(DB2TXT_OBJS) $(LIBS)
|
---|