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