root/gsdl/trunk/src/recpt/Makefile.in @ 15478

Revision 15478, 5.6 KB (checked in by mdewsnip, 12 years ago)

Huge tidy up of src/recpt Makefile. Z39.50 stuff has been removed but will be back shortly.

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