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

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

Big tidy up of Makefile.

  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
File size: 2.1 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 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
30AR = ar
31CPP = @CXX@
32CPPFLAGS = @CXXFLAGS@
33DEFS = @DEFS@
34INCLUDES = -I$(GSDL_DIR) -I$(INDEXERS_DIR)/mg/lib
35RANLIB = @RANLIB@
36
37
38CPPCOMPILE = $(CPP) -c $(CCFLAGS) $(DEFS) $(INCLUDES)
39
40
41.SUFFIXES:
42.SUFFIXES: .cpp .o
43.cpp.o:
44 $(CPPCOMPILE) $<
45
46
47SOURCES = \
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
65OBJECTS = \
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
83LIBRARY = gsdllib.a
84
85
86gsdllib.a: $(OBJECTS)
87 rm -f gsdllib.a
88 $(AR) cru gsdllib.a $(OBJECTS)
89 $(RANLIB) gsdllib.a
90
91all: $(LIBRARY)
92
93install: $(LIBRARY)
94
95clean:
96 rm -f $(OBJECTS) gsdllib.a
97
98distclean:
99 rm -f $(OBJECTS) gsdllib.a Makefile
100
101depend:
102 makedepend -Y -- $(DEFS) $(INCLUDES) $(CPPFLAGS) -- $(SOURCES)
Note: See TracBrowser for help on using the repository browser.