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 | CPP = @CXX@
|
---|
33 | CCFLAGS = -Wall @CFLAGS@
|
---|
34 | DEFS = @DEFS@
|
---|
35 | RANLIB = @RANLIB@
|
---|
36 | INCLUDES = -I../../lib @GDBM_INCLUDE@
|
---|
37 | LDFLAGS = @LDFLAGS@
|
---|
38 | DPLIBS =
|
---|
39 | LIBS = @GDBM_LIBPATH@ -lgdbm @LIBS@
|
---|
40 | GSDLOS = @gsdlos@
|
---|
41 | INSTALL = @INSTALL@
|
---|
42 |
|
---|
43 | COMPILE = $(CC) -c $(DEFS) $(INCLUDES) $(CCFLAGS)
|
---|
44 | CPPCOMPILE = $(CPP) -c $(DEFS) $(INCLUDES) $(CCFLAGS)
|
---|
45 | LINK = $(CC) $(LDFLAGS) -o $@
|
---|
46 | CPPLINK = $(CPP) $(LDFLAGS) -o $@
|
---|
47 |
|
---|
48 | .SUFFIXES:
|
---|
49 | .SUFFIXES: .c .o
|
---|
50 | .c.o:
|
---|
51 | $(COMPILE) $<
|
---|
52 |
|
---|
53 | .SUFFIXES: .cpp .o
|
---|
54 | .cpp.o:
|
---|
55 | $(CPPCOMPILE) $<
|
---|
56 |
|
---|
57 |
|
---|
58 | HEADERS =
|
---|
59 |
|
---|
60 | SOURCES = db2txt.cpp
|
---|
61 |
|
---|
62 | OBJECTS = db2txt.o
|
---|
63 |
|
---|
64 | EXEC = db2txt
|
---|
65 |
|
---|
66 | all : $(EXEC)
|
---|
67 |
|
---|
68 | install: $(EXEC)
|
---|
69 | $(INSTALL) -d ../../bin/$(GSDLOS)
|
---|
70 | $(INSTALL) -m 755 -s $(EXEC) ../../bin/$(GSDLOS)
|
---|
71 |
|
---|
72 | distclean:
|
---|
73 | rm -f $(OBJECTS) $(EXEC) Makefile
|
---|
74 |
|
---|
75 | clean:
|
---|
76 | rm -f $(OBJECTS) $(EXEC)
|
---|
77 |
|
---|
78 | depend:
|
---|
79 | makedepend -Y -- $(DEFS) $(INCLUDES) $(CCFLAGS) -- $(SOURCES)
|
---|
80 |
|
---|
81 |
|
---|
82 | # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
|
---|
83 |
|
---|
84 | DB2TXT_OBJS = db2txt.o
|
---|
85 |
|
---|
86 | db2txt: $(DB2TXT_OBJS) $(DPLIBS)
|
---|
87 | $(CPPLINK) $(DB2TXT_OBJS) $(LIBS)
|
---|