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
RevLine 
[1076]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
[15464]27GSDL_DIR = ..
28INDEXERS_DIR = $(GSDL_DIR)/indexers
[1076]29
30AR = ar
[1860]31CPP = @CXX@
[15464]32CPPFLAGS = @CXXFLAGS@
[1076]33DEFS = @DEFS@
[15464]34INCLUDES = -I$(GSDL_DIR) -I$(INDEXERS_DIR)/mg/lib
[1076]35RANLIB = @RANLIB@
36
[15464]37
[1860]38CPPCOMPILE = $(CPP) -c $(CCFLAGS) $(DEFS) $(INCLUDES)
[1076]39
[15464]40
[1076]41.SUFFIXES:
42.SUFFIXES: .cpp .o
43.cpp.o:
[1860]44 $(CPPCOMPILE) $<
[1076]45
46
47SOURCES = \
[15464]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
[1076]64
65OBJECTS = \
[15464]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
[1076]82
[15464]83LIBRARY = gsdllib.a
[1076]84
85
[15464]86gsdllib.a: $(OBJECTS)
[1076]87 rm -f gsdllib.a
[15464]88 $(AR) cru gsdllib.a $(OBJECTS)
[1076]89 $(RANLIB) gsdllib.a
90
[15464]91all: $(LIBRARY)
92
93install: $(LIBRARY)
94
[1076]95clean:
[15462]96 rm -f $(OBJECTS) gsdllib.a
[1076]97
[15464]98distclean:
99 rm -f $(OBJECTS) gsdllib.a Makefile
[1076]100
101depend:
[15464]102 makedepend -Y -- $(DEFS) $(INCLUDES) $(CPPFLAGS) -- $(SOURCES)
Note: See TracBrowser for help on using the repository browser.