1 | ###########################################################################
|
---|
2 | #
|
---|
3 | # Makefile -- lib
|
---|
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 The New Zealand Digital Library Project
|
---|
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 | ###########################################################################
|
---|
26 |
|
---|
27 | GSDL_DIR = ..
|
---|
28 | INDEXERS_DIR = $(GSDL_DIR)/indexers
|
---|
29 |
|
---|
30 | AR = ar
|
---|
31 | CPP = @CXX@
|
---|
32 | CPPFLAGS = @CXXFLAGS@
|
---|
33 | DEFS = @DEFS@
|
---|
34 | INCLUDES = -I$(GSDL_DIR) -I$(INDEXERS_DIR)/mg/lib
|
---|
35 | RANLIB = @RANLIB@
|
---|
36 |
|
---|
37 |
|
---|
38 | CPPCOMPILE = $(CPP) -c $(CCFLAGS) $(DEFS) $(INCLUDES)
|
---|
39 |
|
---|
40 |
|
---|
41 | .SUFFIXES:
|
---|
42 | .SUFFIXES: .cpp .o
|
---|
43 | .cpp.o:
|
---|
44 | $(CPPCOMPILE) $<
|
---|
45 |
|
---|
46 |
|
---|
47 | SOURCES = \
|
---|
48 | cfgread.cpp \
|
---|
49 | cnfgable.cpp \
|
---|
50 | cnfgator.cpp \
|
---|
51 | dbclass.cpp \
|
---|
52 | display.cpp \
|
---|
53 | fileutil.cpp \
|
---|
54 | gdbmclass.cpp \
|
---|
55 | gsdlsitecfg.cpp \
|
---|
56 | gsdltimes.cpp \
|
---|
57 | gsdltools.cpp \
|
---|
58 | gsdlunicode.cpp \
|
---|
59 | infodbclass.cpp \
|
---|
60 | md5.cpp \
|
---|
61 | OIDtools.cpp \
|
---|
62 | phrases.cpp \
|
---|
63 | text_t.cpp
|
---|
64 |
|
---|
65 | OBJECTS = \
|
---|
66 | cfgread.o \
|
---|
67 | cnfgable.o \
|
---|
68 | cnfgator.o \
|
---|
69 | dbclass.o \
|
---|
70 | display.o \
|
---|
71 | fileutil.o \
|
---|
72 | gdbmclass.o \
|
---|
73 | gsdlsitecfg.o \
|
---|
74 | gsdltimes.o \
|
---|
75 | gsdltools.o \
|
---|
76 | gsdlunicode.o \
|
---|
77 | infodbclass.o \
|
---|
78 | md5.o \
|
---|
79 | OIDtools.o \
|
---|
80 | phrases.o \
|
---|
81 | text_t.o
|
---|
82 |
|
---|
83 | LIBRARY = gsdllib.a
|
---|
84 |
|
---|
85 |
|
---|
86 | gsdllib.a: $(OBJECTS)
|
---|
87 | rm -f gsdllib.a
|
---|
88 | $(AR) cru gsdllib.a $(OBJECTS)
|
---|
89 | $(RANLIB) gsdllib.a
|
---|
90 |
|
---|
91 | all: $(LIBRARY)
|
---|
92 |
|
---|
93 | install: $(LIBRARY)
|
---|
94 |
|
---|
95 | clean:
|
---|
96 | rm -f $(OBJECTS) gsdllib.a
|
---|
97 |
|
---|
98 | distclean:
|
---|
99 | rm -f $(OBJECTS) gsdllib.a Makefile
|
---|
100 |
|
---|
101 | depend:
|
---|
102 | makedepend -Y -- $(DEFS) $(INCLUDES) $(CPPFLAGS) -- $(SOURCES)
|
---|