source: gsdl/trunk/src/recpt/Makefile.in@ 15494

Last change on this file since 15494 was 15494, checked in by mdewsnip, 13 years ago

Updated to compile with the Z39.50 client support.

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