source: gsdl/trunk/lib/Makefile.in@ 15508

Last change on this file since 15508 was 15508, checked in by mdewsnip, 16 years ago

Added @GDBM_INCLUDE@ to handle cases where GDBM isn't on the default include path.

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