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

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

Added a new "PACKAGE_DIRS" path value in the Makefiles to make paths a bit shorter.

  • 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
33CPP = @CXX@
34CPPFLAGS = @CXXFLAGS@
35DEFS = @DEFS@
36INCLUDES = @GDBM_INCLUDE@ -I$(GSDL_DIR) -I$(INDEXERS_DIR)/mg/lib
37RANLIB = @RANLIB@
38
39
40CPPCOMPILE = $(CPP) -c $(CCFLAGS) $(DEFS) $(INCLUDES)
41
42
43.SUFFIXES:
44.SUFFIXES: .cpp .o
45.cpp.o:
46    $(CPPCOMPILE) $<
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
88gsdllib.a: $(OBJECTS)
89    rm -f gsdllib.a
90    $(AR) cru gsdllib.a $(OBJECTS)
91    $(RANLIB) gsdllib.a
92
93all: $(LIBRARY)
94
95install: $(LIBRARY)
96
97clean:
98    rm -f $(OBJECTS) gsdllib.a
99
100distclean:
101    rm -f $(OBJECTS) gsdllib.a Makefile
102
103depend:
104    makedepend -Y -- $(DEFS) $(INCLUDES) $(CPPFLAGS) -- $(SOURCES)
Note: See TracBrowser for help on using the browser.