source: gsdl/trunk/src/lib/Makefile.in@ 15910

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

Updated paths for "lib" -> "src/lib" fix.

  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
File size: 2.5 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
29PACKAGES_DIR = $(GSDL_DIR)/packages
30
31
32USE_SQLITE = @USE_SQLITE@
33ifeq ($(USE_SQLITE), 1)
34SQLITE_INCLUDES = -I$(PACKAGES_DIR)/sqlite/include
35SQLITE_OBJECTS = sqlitedbclass.o
36SQLITE_SOURCES = sqlitedbclass.cpp
37else
38SQLITE_INCLUDES =
39SQLITE_OBJECTS =
40SQLITE_SOURCES =
41endif
42
43
44AR = ar
45CXX = @CXX@
46CXXFLAGS = @CXXFLAGS@ @COMPAT32BITFLAGS@
47DEFS = @DEFS@
48INCLUDES = @GDBM_INCLUDE@ -I$(GSDL_DIR) -I$(INDEXERS_DIR)/mg/lib $(SQLITE_INCLUDES)
49RANLIB = @RANLIB@
50
51
52CXXCOMPILE = $(CXX) -c $(CXXFLAGS) $(DEFS) $(INCLUDES)
53
54
55.SUFFIXES:
56.SUFFIXES: .cpp .o
57.cpp.o:
58 $(CXXCOMPILE) $<
59
60
61SOURCES = \
62 cfgread.cpp \
63 cnfgable.cpp \
64 cnfgator.cpp \
65 dbclass.cpp \
66 display.cpp \
67 fileutil.cpp \
68 gdbmclass.cpp \
69 gsdlsitecfg.cpp \
70 gsdltimes.cpp \
71 gsdltools.cpp \
72 gsdlunicode.cpp \
73 infodbclass.cpp \
74 md5.cpp \
75 OIDtools.cpp \
76 phrases.cpp \
77 text_t.cpp \
78 $(SQLITE_SOURCES)
79
80OBJECTS = \
81 cfgread.o \
82 cnfgable.o \
83 cnfgator.o \
84 dbclass.o \
85 display.o \
86 fileutil.o \
87 gdbmclass.o \
88 gsdlsitecfg.o \
89 gsdltimes.o \
90 gsdltools.o \
91 gsdlunicode.o \
92 infodbclass.o \
93 md5.o \
94 OIDtools.o \
95 phrases.o \
96 text_t.o \
97 $(SQLITE_OBJECTS)
98
99LIBRARY = gsdllib.a
100
101
102# Default target: make gsdllib.a
103all: $(LIBRARY)
104
105gsdllib.a: $(OBJECTS)
106 rm -f $(LIBRARY)
107 $(AR) cru $(LIBRARY) $(OBJECTS)
108 $(RANLIB) $(LIBRARY)
109
110install:
111
112clean:
113 rm -f $(OBJECTS) $(LIBRARY)
114
115distclean:
116 rm -f $(OBJECTS) $(LIBRARY) Makefile
117
118depend:
119 makedepend -Y -- $(DEFS) $(INCLUDES) $(CXXFLAGS) -- $(SOURCES)
Note: See TracBrowser for help on using the repository browser.