source: gsdl/trunk/gs2runtime/src/recpt/Makefile.in@ 16563

Last change on this file since 16563 was 16563, checked in by davidb, 13 years ago

Mods to Makefile.in and configure.in to work with newly organized files: gs2build gs2common and gs2runtime

  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
File size: 5.5 KB
Line 
1###########################################################################
2#
3# Makefile -- src/recpt
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 = ../../..
28COMMON_DIR = $(GSDL_DIR)/gs2common
29RUNTIME_DIR = $(GSDL_DIR)/gs2runtime
30
31INDEXERS_DIR = $(COMMON_DIR)/indexers
32PACKAGES_DIR = $(RUNTIME_DIR)/packages
33COLSERVR_DIR = $(RUNTIME_DIR)/src/colservr
34PROTOCOL_DIR = $(RUNTIME_DIR)/src/protocol
35Z3950_DIR = $(RUNTIME_DIR)/src/z3950
36
37
38ENABLE_ACCENTFOLD = @ENABLE_ACCENTFOLD@
39ifeq ($(ENABLE_ACCENTFOLD), 1)
40ACCENTFOLD_LIBS = $(INDEXERS_DIR)/packages/unac/libunac.a
41else
42ACCENTFOLD_LIBS =
43endif
44
45USE_FASTCGI = @USE_FASTCGI@
46ifeq ($(USE_FASTCGI), 1)
47FASTCGI_DEFS = -DUSE_FASTCGI
48FASTCGI_INCLUDES = -I$(PACKAGES_DIR)/fcgi/include
49FASTCGI_LIBS = $(PACKAGES_DIR)/fcgi/libfcgi/libfcgi.a
50else
51FASTCGI_DEFS =
52FASTCGI_INCLUDES =
53FASTCGI_LIBS =
54endif
55
56USE_SQLITE = @USE_SQLITE@
57ifeq ($(USE_SQLITE), 1)
58SQLITE_LIBS = $(COMMON_DIR)/packages/sqlite/lib/libsqlite3.a -ldl -lpthread
59else
60SQLITE_LIBS =
61endif
62
63USE_Z3950 = @USE_Z3950@
64ifeq ($(USE_Z3950), 1)
65Z3950_DEFS = -DUSE_Z3950
66Z3950_INCLUDES = -I$(Z3950_DIR)
67Z3950_LIBS = $(Z3950_DIR)/gsdlz3950.a $(PACKAGES_DIR)/yaz/lib/libyaz.a
68else
69Z3950_DEFS =
70Z3950_INCLUDES =
71Z3950_LIBS =
72endif
73
74
75AR = ar
76CC = @CC@
77CFLAGS=@CFLAGS@ @COMPAT32BITFLAGS@
78CXX = @CXX@
79CXXFLAGS = @CXXFLAGS@ @COMPAT32BITFLAGS@
80DEFS = @DEFS@ -DNZDL -DQUIET -DSHORT_SUFFIX -DPARADOCNUM -DHAVE_CONFIG_H $(FASTCGI_DEFS) $(Z3950_DEFS)
81INCLUDES = @GDBM_INCLUDE@ -I. -I$(GSDL_DIR) -I$(COMMON_DIR)/src/lib \
82 -I$(COLSERVR_DIR) -I$(PROTOCOL_DIR) \
83 -I$(INDEXERS_DIR)/mg -I$(INDEXERS_DIR)/mg/lib -I$(INDEXERS_DIR)/mgpp/text \
84 -I$(PACKAGES_DIR)/expat/include $(FASTCGI_INCLUDES) $(Z3950_INCLUDES)
85INSTALL = @INSTALL@
86LDFLAGS = @LDFLAGS@ @COMPAT32BITFLAGS@
87LIBS = @LIBS@ @GDBM_LIBPATH@ -lgdbm -L$(PACKAGES_DIR)/expat/lib -lexpat $(ACCENTFOLD_LIBS) \
88 $(FASTCGI_LIBS) $(SQLITE_LIBS) $(Z3950_LIBS)
89RANLIB = @RANLIB@
90
91
92CXXCOMPILE = $(CXX) -c $(CXXFLAGS) $(DEFS) $(INCLUDES)
93CXXLINK = $(CXX) $(LDFLAGS) -o $@
94
95
96.SUFFIXES:
97.SUFFIXES: .cpp .o
98.cpp.o:
99 $(CXXCOMPILE) $<
100
101
102SOURCES = \
103 action.cpp \
104 argdb.cpp \
105 authenaction.cpp \
106 browseaction.cpp \
107 browseactiontools.cpp \
108 browserclass.cpp \
109 browsetoolsclass.cpp \
110 cgiargs.cpp \
111 cgiutils.cpp \
112 cgiwrapper.cpp \
113 collectoraction.cpp \
114 converter.cpp \
115 datelistbrowserclass.cpp \
116 depositoraction.cpp \
117 documentaction.cpp \
118 dynamicclassifieraction.cpp \
119 extlinkaction.cpp \
120 formattools.cpp \
121 gtiaction.cpp \
122 highlighttext.cpp \
123 historydb.cpp \
124 hlistbrowserclass.cpp \
125 htmlbrowserclass.cpp \
126 htmlutils.cpp \
127 invbrowserclass.cpp \
128 librarymain.cpp \
129 maincfg.cpp \
130 pageaction.cpp \
131 pagedbrowserclass.cpp \
132 phindaction.cpp \
133 phindbrowserclass.cpp \
134 pingaction.cpp \
135 queryaction.cpp \
136 querytools.cpp \
137 receptionist.cpp \
138 statusaction.cpp \
139 summarise.cpp \
140 tipaction.cpp \
141 userdb.cpp \
142 usersaction.cpp \
143 vlistbrowserclass.cpp \
144 wizardaction.cpp
145
146OBJECTS = \
147 action.o \
148 argdb.o \
149 authenaction.o \
150 browseaction.o \
151 browseactiontools.o \
152 browserclass.o \
153 browsetoolsclass.o \
154 cgiargs.o \
155 cgiutils.o \
156 cgiwrapper.o \
157 collectoraction.o \
158 converter.o \
159 datelistbrowserclass.o \
160 depositoraction.o \
161 documentaction.o \
162 dynamicclassifieraction.o \
163 extlinkaction.o \
164 formattools.o \
165 gtiaction.o \
166 highlighttext.o \
167 historydb.o \
168 hlistbrowserclass.o \
169 htmlbrowserclass.o \
170 htmlutils.o \
171 invbrowserclass.o \
172 librarymain.o \
173 maincfg.o \
174 pageaction.o \
175 pagedbrowserclass.o \
176 phindaction.o \
177 phindbrowserclass.o \
178 pingaction.o \
179 queryaction.o \
180 querytools.o \
181 receptionist.o \
182 statusaction.o \
183 summarise.o \
184 tipaction.o \
185 userdb.o \
186 usersaction.o \
187 vlistbrowserclass.o \
188 wizardaction.o
189
190LIBRARY = gsdlrecpt.a
191
192GSDL_LIBS = \
193 $(PROTOCOL_DIR)/gsdlprotocol.a \
194 $(COLSERVR_DIR)/gsdlcolservr.a \
195 $(INDEXERS_DIR)/mg/src/text/libmgtext.a \
196 $(INDEXERS_DIR)/mg/lib/libmglib.a \
197 $(INDEXERS_DIR)/mgpp/text/libmgpptext.a \
198 $(INDEXERS_DIR)/mgpp/lib/libmgpplib.a \
199 $(COMMON_DIR)/src/lib/gsdllib.a
200
201EXECUTABLE_OBJECTS = \
202 $(OBJECTS) \
203 $(GSDL_LIBS)
204
205EXECUTABLE = library
206
207
208# Default target: make both gsdlrecpt.a and the library executable
209all: $(LIBRARY) $(EXECUTABLE)
210
211gsdlrecpt.a: $(OBJECTS)
212 rm -f $(LIBRARY)
213 $(AR) cru $(LIBRARY) $(OBJECTS)
214 $(RANLIB) $(LIBRARY)
215
216library: $(EXECUTABLE_OBJECTS) $(GSDL_LIBS)
217 $(CXXLINK) $(EXECUTABLE_OBJECTS) $(LIBS)
218
219install: $(EXECUTABLE)
220 $(INSTALL) -m 755 -s $(EXECUTABLE) $(GSDL_DIR)/cgi-bin
221
222clean:
223 rm -f $(OBJECTS) $(LIBRARY) $(EXECUTABLE)
224
225distclean:
226 rm -f $(OBJECTS) $(LIBRARY) $(EXECUTABLE) Makefile
227
228depend:
229 makedepend -Y -- $(DEFS) $(INCLUDES) $(CXXFLAGS) -- $(SOURCES)
Note: See TracBrowser for help on using the repository browser.