root/gsdl/trunk/lib/Makefile.in @ 15580

Revision 15580, 2.2 KB (checked in by mdewsnip, 12 years ago)

Hopefully the last of the makefile tidy ups.

  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
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
29PACKAGES_DIR = $(GSDL_DIR)/packages
30
31
32AR = ar
33CXX = @CXX@
34CXXFLAGS = @CXXFLAGS@ @COMPAT32BITFLAGS@
35DEFS = @DEFS@
36INCLUDES = @GDBM_INCLUDE@ -I$(GSDL_DIR) -I$(INDEXERS_DIR)/mg/lib
37RANLIB = @RANLIB@
38
39
40CXXCOMPILE = $(CXX) -c $(CXXFLAGS) $(DEFS) $(INCLUDES)
41
42
43.SUFFIXES:
44.SUFFIXES: .cpp .o
45.cpp.o:
46    $(CXXCOMPILE) $<
47
48
49SOURCES = \
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
67OBJECTS = \
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
85LIBRARY = gsdllib.a
86
87
88# Default target: make gsdllib.a
89all: $(LIBRARY)
90
91gsdllib.a: $(OBJECTS)
92    rm -f $(LIBRARY)
93    $(AR) cru $(LIBRARY) $(OBJECTS)
94    $(RANLIB) $(LIBRARY)
95
96install:
97
98clean:
99    rm -f $(OBJECTS) $(LIBRARY)
100
101distclean:
102    rm -f $(OBJECTS) $(LIBRARY) Makefile
103
104depend:
105    makedepend -Y -- $(DEFS) $(INCLUDES) $(CXXFLAGS) -- $(SOURCES)
Note: See TracBrowser for help on using the browser.