1 | ###########################################################################
|
---|
2 | #
|
---|
3 | # Makefile --
|
---|
4 | # Copyright (C) 1999 The New Zealand Digital Library Project
|
---|
5 | #
|
---|
6 | # PUT COPYRIGHT NOTICE HERE
|
---|
7 | #
|
---|
8 | ###########################################################################
|
---|
9 |
|
---|
10 |
|
---|
11 | AR = ar
|
---|
12 | CC = gcc
|
---|
13 | CCFLAGS = -g -Wall -Wunused -pedantic -W -Woverloaded-virtual # -Wshadow
|
---|
14 | DEFS = -DNZDL -DQUIET -DSHORT_SUFFIX -DPARADOCNUM -DUSE_FASTCGI -DGSDLSERVER \
|
---|
15 | -D_LITTLE_ENDIAN -DGSDLSERVER
|
---|
16 | INCLUDES = -I../../lib -I../../packages/mg-1.3d -I../../packages/mg-1.3d/lib \
|
---|
17 | -I../../packages/mg-1.3d/src/text -I../../packages/fcgi/include
|
---|
18 | RANLIB = ranlib
|
---|
19 | LDFLAGS =
|
---|
20 | LIBS = -lgdbm -lstdc++ -lm -lcrypt
|
---|
21 |
|
---|
22 | GSDLOS = linux
|
---|
23 |
|
---|
24 |
|
---|
25 | COMPILE = $(CC) -c $(CCFLAGS) $(DEFS) $(INCLUDES)
|
---|
26 | LINK = $(CC) $(LDFLAGS) -o $@
|
---|
27 |
|
---|
28 | .SUFFIXES:
|
---|
29 | .SUFFIXES: .c .o
|
---|
30 | .c.o:
|
---|
31 | $(COMPILE) $<
|
---|
32 |
|
---|
33 | .SUFFIXES: .cpp .o
|
---|
34 | .cpp.o:
|
---|
35 | $(COMPILE) $<
|
---|
36 |
|
---|
37 | COMMONHEADERS = receptionist.h cgiwrapper.h cgiargs.h action.h \
|
---|
38 | converter.h recptconfig.h cgiutils.h OIDtools.h browsetools.h htmlgen.h \
|
---|
39 | statusaction.h pageaction.h comtypes.h recptproto.h \
|
---|
40 | pingaction.h queryaction.h documentaction.h htmlutils.h \
|
---|
41 | querytools.h formattools.h tipaction.h authenaction.h infodbclass.h \
|
---|
42 | userdb.h usersaction.h
|
---|
43 |
|
---|
44 | RECEPTHEADERS =
|
---|
45 |
|
---|
46 | COLSERVRHEADERS = mgq.h mgsearch.h querycache.h queryinfo.h \
|
---|
47 | collectserver.h colservrconfig.h maptools.h filter.h \
|
---|
48 | source.h browsefilter.h queryfilter.h mggdbmsource.h \
|
---|
49 | phrasesearch.h phrasequeryfilter.h
|
---|
50 |
|
---|
51 | LIBRARYHEADERS = $(COLSERVRHEADERS) \
|
---|
52 | nullproto.h
|
---|
53 |
|
---|
54 | HEADERS = $(COMMONHEADERS) $(RECPTHEADERS) $(LIBRARYHEADERS)
|
---|
55 |
|
---|
56 |
|
---|
57 | COMMONSOURCES = receptionist.cpp cgiwrapper.cpp cgiargs.cpp action.cpp \
|
---|
58 | converter.cpp recptconfig.cpp cgiutils.cpp OIDtools.cpp browsetools.cpp \
|
---|
59 | htmlgen.cpp statusaction.cpp pageaction.cpp comtypes.cpp \
|
---|
60 | recptproto.cpp pingaction.cpp queryaction.cpp documentaction.cpp \
|
---|
61 | htmlutils.cpp querytools.cpp formattools.cpp tipaction.cpp authenaction.cpp \
|
---|
62 | infodbclass.cpp userdb.cpp usersaction.cpp
|
---|
63 |
|
---|
64 | RECPTSOURCES = recptmain.cpp
|
---|
65 |
|
---|
66 | COLSERVRSOURCES = mgq.c mgsearch.cpp querycache.cpp queryinfo.cpp \
|
---|
67 | collectserver.cpp colservrconfig.cpp maptools.cpp filter.cpp \
|
---|
68 | source.cpp browsefilter.cpp queryfilter.cpp mggdbmsource.cpp \
|
---|
69 | phrasesearch.cpp phrasequeryfilter.cpp
|
---|
70 |
|
---|
71 | LIBRARYSOURCES = $(COLSERVRSOURCES) \
|
---|
72 | nullproto.cpp librarymain.cpp
|
---|
73 |
|
---|
74 | SOURCES = $(COMMONSOURCES) $(RECPTSOURCES) $(LIBRARYSOURCES)
|
---|
75 |
|
---|
76 |
|
---|
77 | COMMONOBJECTS = receptionist.o cgiwrapper.o cgiargs.o action.o \
|
---|
78 | converter.o recptconfig.o cgiutils.o OIDtools.o browsetools.o \
|
---|
79 | htmlgen.o statusaction.o pageaction.o comtypes.o \
|
---|
80 | recptproto.o pingaction.o queryaction.o documentaction.o \
|
---|
81 | htmlutils.o querytools.o formattools.o tipaction.o authenaction.o \
|
---|
82 | infodbclass.o userdb.o usersaction.o
|
---|
83 |
|
---|
84 | RECPTOBJECTS = recptmain.o
|
---|
85 |
|
---|
86 | COLSERVROBJECTS = mgq.o mgsearch.o querycache.o queryinfo.o \
|
---|
87 | collectserver.o colservrconfig.o maptools.o filter.o \
|
---|
88 | source.o browsefilter.o queryfilter.o mggdbmsource.o \
|
---|
89 | phrasesearch.o phrasequeryfilter.o
|
---|
90 |
|
---|
91 | LIBRARYOBJECTS = $(COLSERVROBJECTS) \
|
---|
92 | nullproto.o librarymain.o
|
---|
93 |
|
---|
94 | OBJECTS = $(COMMONOBJECTS) $(RECPTOBJECTS) $(LIBRARYOBJECTS)
|
---|
95 |
|
---|
96 |
|
---|
97 | EXEC = recpt library
|
---|
98 |
|
---|
99 | all: $(COLSERVRHEADERS) $(COLSERVRSOURCES) $(EXEC)
|
---|
100 |
|
---|
101 | $(COLSERVRHEADERS) $(COLSERVRSOURCES):
|
---|
102 | ln -s ../colservr/$@
|
---|
103 |
|
---|
104 | clean:
|
---|
105 | rm -f $(COLSERVRHEADERS) $(COLSERVRSOURCES) $(OBJECTS) $(EXEC)
|
---|
106 |
|
---|
107 | install:
|
---|
108 | cp recpt /home/nzdl/nzdl-1.2/cgi-bin/recpt; \
|
---|
109 | cp library /home/nzdl/nzdl-1.2/cgi-bin/library
|
---|
110 | # cp $(EXEC) /home/nzdl/nzdl-1.2/cgi-bin
|
---|
111 |
|
---|
112 | depend:
|
---|
113 | makedepend -Y -- $(DEFS) $(INCLUDES) $(CCFLAGS) -- $(SOURCES)
|
---|
114 |
|
---|
115 | # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
|
---|
116 |
|
---|
117 | RECPT_OBJS = $(COMMONOBJECTS) $(RECPTOBJECTS) \
|
---|
118 | ../../lib/gsdllib.a \
|
---|
119 | ../../packages/mg-1.3d/src/text/libtextin.a \
|
---|
120 | ../../packages/mg-1.3d/lib/libmg.a \
|
---|
121 | ../../packages/fcgi/libfcgi/libfcgi.a
|
---|
122 |
|
---|
123 | recpt: $(RECPT_OBJS)
|
---|
124 | $(LINK) $(RECPT_OBJS) $(LIBS)
|
---|
125 |
|
---|
126 | # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
|
---|
127 |
|
---|
128 | LIBRARY_OBJS = $(COMMONOBJECTS) $(LIBRARYOBJECTS) \
|
---|
129 | ../../lib/gsdllib.a \
|
---|
130 | ../../packages/mg-1.3d/src/text/libtextin.a \
|
---|
131 | ../../packages/mg-1.3d/lib/libmg.a \
|
---|
132 | ../../packages/fcgi/libfcgi/libfcgi.a
|
---|
133 |
|
---|
134 | library: $(LIBRARY_OBJS)
|
---|
135 | $(LINK) $(LIBRARY_OBJS) $(LIBS)
|
---|
136 |
|
---|
137 | # DO NOT DELETE
|
---|
138 |
|
---|
139 | receptionist.o: receptionist.h ../../lib/gsdlconf.h ../../lib/site.h
|
---|
140 | receptionist.o: ../../lib/text_t.h cgiargs.h ../../lib/display.h action.h
|
---|
141 | receptionist.o: recptproto.h comtypes.h converter.h ../../lib/gsdlunicode.h
|
---|
142 | receptionist.o: ../../lib/fileutil.h cgiutils.h htmlutils.h OIDtools.h
|
---|
143 | cgiwrapper.o: ../../lib/gsdlconf.h ../../lib/site.h cgiwrapper.h
|
---|
144 | cgiwrapper.o: receptionist.h ../../lib/text_t.h cgiargs.h ../../lib/display.h
|
---|
145 | cgiwrapper.o: action.h recptproto.h comtypes.h converter.h
|
---|
146 | cgiwrapper.o: ../../lib/gsdlunicode.h recptconfig.h statusaction.h
|
---|
147 | cgiwrapper.o: pageaction.h pingaction.h queryaction.h documentaction.h
|
---|
148 | cgiwrapper.o: authenaction.h usersaction.h
|
---|
149 | cgiwrapper.o: ../../packages/fcgi/include/fcgiapp.h
|
---|
150 | cgiwrapper.o: ../../packages/fcgi/include/fcgi_config.h
|
---|
151 | cgiargs.o: cgiargs.h ../../lib/gsdlconf.h ../../lib/site.h ../../lib/text_t.h
|
---|
152 | cgiargs.o: ../../lib/gsdlunicode.h
|
---|
153 | action.o: action.h ../../lib/gsdlconf.h ../../lib/site.h ../../lib/text_t.h
|
---|
154 | action.o: cgiargs.h ../../lib/display.h recptproto.h comtypes.h
|
---|
155 | converter.o: converter.h ../../lib/gsdlconf.h ../../lib/site.h
|
---|
156 | converter.o: ../../lib/text_t.h ../../lib/gsdlunicode.h
|
---|
157 | recptconfig.o: recptconfig.h ../../lib/gsdlconf.h ../../lib/site.h
|
---|
158 | recptconfig.o: ../../lib/text_t.h receptionist.h cgiargs.h
|
---|
159 | recptconfig.o: ../../lib/display.h action.h recptproto.h comtypes.h
|
---|
160 | recptconfig.o: converter.h ../../lib/gsdlunicode.h ../../lib/fileutil.h
|
---|
161 | recptconfig.o: ../../lib/cfgread.h
|
---|
162 | cgiutils.o: cgiutils.h ../../lib/gsdlconf.h ../../lib/site.h
|
---|
163 | cgiutils.o: ../../lib/text_t.h cgiargs.h
|
---|
164 | OIDtools.o: OIDtools.h ../../lib/text_t.h ../../lib/gsdlconf.h
|
---|
165 | OIDtools.o: ../../lib/site.h recptproto.h comtypes.h
|
---|
166 | browsetools.o: browsetools.h ../../lib/gsdlconf.h ../../lib/site.h
|
---|
167 | browsetools.o: ../../lib/text_t.h cgiargs.h ../../lib/display.h recptproto.h
|
---|
168 | browsetools.o: comtypes.h OIDtools.h
|
---|
169 | htmlgen.o: htmlgen.h ../../lib/gsdlconf.h ../../lib/site.h ../../lib/text_t.h
|
---|
170 | htmlgen.o: ../../lib/display.h ../../packages/mg-1.3d/lib/unitool.h
|
---|
171 | statusaction.o: statusaction.h ../../lib/gsdlconf.h ../../lib/site.h action.h
|
---|
172 | statusaction.o: ../../lib/text_t.h cgiargs.h ../../lib/display.h recptproto.h
|
---|
173 | statusaction.o: comtypes.h receptionist.h converter.h ../../lib/gsdlunicode.h
|
---|
174 | pageaction.o: pageaction.h ../../lib/gsdlconf.h ../../lib/site.h action.h
|
---|
175 | pageaction.o: ../../lib/text_t.h cgiargs.h ../../lib/display.h recptproto.h
|
---|
176 | pageaction.o: comtypes.h receptionist.h converter.h ../../lib/gsdlunicode.h
|
---|
177 | comtypes.o: comtypes.h ../../lib/gsdlconf.h ../../lib/site.h
|
---|
178 | comtypes.o: ../../lib/text_t.h
|
---|
179 | recptproto.o: recptproto.h ../../lib/gsdlconf.h ../../lib/site.h
|
---|
180 | recptproto.o: ../../lib/text_t.h comtypes.h
|
---|
181 | pingaction.o: pingaction.h ../../lib/gsdlconf.h ../../lib/site.h action.h
|
---|
182 | pingaction.o: ../../lib/text_t.h cgiargs.h ../../lib/display.h recptproto.h
|
---|
183 | pingaction.o: comtypes.h
|
---|
184 | queryaction.o: queryaction.h ../../lib/gsdlconf.h ../../lib/site.h action.h
|
---|
185 | queryaction.o: ../../lib/text_t.h cgiargs.h ../../lib/display.h recptproto.h
|
---|
186 | queryaction.o: comtypes.h querytools.h formattools.h
|
---|
187 | documentaction.o: documentaction.h action.h ../../lib/gsdlconf.h
|
---|
188 | documentaction.o: ../../lib/site.h ../../lib/text_t.h cgiargs.h
|
---|
189 | documentaction.o: ../../lib/display.h recptproto.h comtypes.h browsetools.h
|
---|
190 | documentaction.o: OIDtools.h querytools.h
|
---|
191 | documentaction.o: ../../packages/mg-1.3d/lib/unitool.h
|
---|
192 | htmlutils.o: htmlutils.h ../../lib/gsdlconf.h ../../lib/site.h
|
---|
193 | htmlutils.o: ../../lib/text_t.h
|
---|
194 | querytools.o: querytools.h cgiargs.h ../../lib/gsdlconf.h ../../lib/site.h
|
---|
195 | querytools.o: ../../lib/text_t.h recptproto.h comtypes.h
|
---|
196 | formattools.o: formattools.h ../../lib/text_t.h ../../lib/gsdlconf.h
|
---|
197 | formattools.o: ../../lib/site.h comtypes.h
|
---|
198 | tipaction.o: tipaction.h ../../lib/gsdlconf.h ../../lib/site.h action.h
|
---|
199 | tipaction.o: ../../lib/text_t.h cgiargs.h ../../lib/display.h recptproto.h
|
---|
200 | tipaction.o: comtypes.h
|
---|
201 | authenaction.o: authenaction.h ../../lib/gsdlconf.h ../../lib/site.h action.h
|
---|
202 | authenaction.o: ../../lib/text_t.h cgiargs.h ../../lib/display.h recptproto.h
|
---|
203 | authenaction.o: comtypes.h receptionist.h converter.h ../../lib/gsdlunicode.h
|
---|
204 | authenaction.o: ../../lib/fileutil.h ../../lib/cfgread.h cgiutils.h
|
---|
205 | authenaction.o: infodbclass.h ../../lib/gsdltimes.h userdb.h
|
---|
206 | infodbclass.o: infodbclass.h ../../lib/gsdlconf.h ../../lib/site.h
|
---|
207 | infodbclass.o: ../../lib/text_t.h ../../packages/mg-1.3d/lib/unitool.h
|
---|
208 | infodbclass.o: ../../lib/gsdlunicode.h ../../lib/fileutil.h OIDtools.h
|
---|
209 | infodbclass.o: recptproto.h comtypes.h
|
---|
210 | userdb.o: userdb.h infodbclass.h ../../lib/gsdlconf.h ../../lib/site.h
|
---|
211 | userdb.o: ../../lib/text_t.h ../../lib/gsdltimes.h ../../lib/fileutil.h
|
---|
212 | usersaction.o: usersaction.h ../../lib/gsdlconf.h ../../lib/site.h action.h
|
---|
213 | usersaction.o: ../../lib/text_t.h cgiargs.h ../../lib/display.h recptproto.h
|
---|
214 | usersaction.o: comtypes.h ../../lib/fileutil.h userdb.h infodbclass.h
|
---|
215 | recptmain.o: receptionist.h ../../lib/gsdlconf.h ../../lib/site.h
|
---|
216 | recptmain.o: ../../lib/text_t.h cgiargs.h ../../lib/display.h action.h
|
---|
217 | recptmain.o: recptproto.h comtypes.h converter.h ../../lib/gsdlunicode.h
|
---|
218 | recptmain.o: cgiwrapper.h
|
---|
219 | mgq.o: mgq.h ../../packages/mg-1.3d/sysfuncs.h
|
---|
220 | mgq.o: ../../packages/mg-1.3d/lib/pathmax.h
|
---|
221 | mgq.o: ../../packages/mg-1.3d/lib/getopt.h
|
---|
222 | mgq.o: ../../packages/mg-1.3d/lib/messages.h
|
---|
223 | mgq.o: ../../packages/mg-1.3d/lib/memlib.h
|
---|
224 | mgq.o: ../../packages/mg-1.3d/src/text/invf.h
|
---|
225 | mgq.o: ../../packages/mg-1.3d/src/text/text.h
|
---|
226 | mgq.o: ../../packages/mg-1.3d/lib/huffman.h
|
---|
227 | mgq.o: ../../packages/mg-1.3d/lib/filestats.h
|
---|
228 | mgq.o: ../../packages/mg-1.3d/src/text/lists.h
|
---|
229 | mgq.o: ../../packages/mg-1.3d/src/text/backend.h
|
---|
230 | mgq.o: ../../packages/mg-1.3d/lib/timing.h
|
---|
231 | mgq.o: ../../packages/mg-1.3d/src/text/term_lists.h
|
---|
232 | mgq.o: ../../packages/mg-1.3d/src/text/query_term_list.h
|
---|
233 | mgq.o: ../../packages/mg-1.3d/src/text/mg.h
|
---|
234 | mgq.o: ../../packages/mg-1.3d/src/text/environment.h
|
---|
235 | mgq.o: ../../packages/mg-1.3d/src/text/globals.h
|
---|
236 | mgq.o: ../../packages/mg-1.3d/src/text/mg_errors.h
|
---|
237 | mgq.o: ../../packages/mg-1.3d/src/text/commands.h
|
---|
238 | mgq.o: ../../packages/mg-1.3d/src/text/text_get.h
|
---|
239 | mgq.o: ../../packages/mg-1.3d/lib/local_strings.h
|
---|
240 | mgq.o: ../../packages/mg-1.3d/src/text/words.h
|
---|
241 | mgq.o: ../../packages/mg-1.3d/lib/unitool.h
|
---|
242 | mgq.o: ../../packages/mg-1.3d/src/text/stemmer.h
|
---|
243 | mgq.o: ../../packages/mg-1.3d/src/text/stem_search.h
|
---|
244 | mgsearch.o: ../../lib/gsdlconf.h ../../lib/site.h mgsearch.h
|
---|
245 | mgsearch.o: ../../lib/text_t.h querycache.h queryinfo.h ../../lib/fileutil.h
|
---|
246 | mgsearch.o: mgq.h ../../lib/gsdlunicode.h
|
---|
247 | mgsearch.o: ../../packages/mg-1.3d/lib/unitool.h
|
---|
248 | querycache.o: querycache.h ../../lib/text_t.h ../../lib/gsdlconf.h
|
---|
249 | querycache.o: ../../lib/site.h queryinfo.h
|
---|
250 | queryinfo.o: queryinfo.h ../../lib/gsdlconf.h ../../lib/site.h
|
---|
251 | queryinfo.o: ../../lib/text_t.h
|
---|
252 | collectserver.o: collectserver.h ../../lib/gsdlconf.h ../../lib/site.h
|
---|
253 | collectserver.o: ../../lib/text_t.h comtypes.h filter.h source.h
|
---|
254 | collectserver.o: infodbclass.h OIDtools.h recptproto.h
|
---|
255 | colservrconfig.o: colservrconfig.h ../../lib/gsdlconf.h ../../lib/site.h
|
---|
256 | colservrconfig.o: ../../lib/text_t.h collectserver.h comtypes.h filter.h
|
---|
257 | colservrconfig.o: source.h ../../lib/fileutil.h ../../lib/cfgread.h
|
---|
258 | maptools.o: maptools.h ../../lib/gsdlconf.h ../../lib/site.h
|
---|
259 | maptools.o: ../../lib/text_t.h
|
---|
260 | filter.o: filter.h ../../lib/gsdlconf.h ../../lib/site.h ../../lib/text_t.h
|
---|
261 | filter.o: comtypes.h ../../lib/fileutil.h
|
---|
262 | source.o: source.h ../../lib/gsdlconf.h ../../lib/site.h ../../lib/text_t.h
|
---|
263 | source.o: comtypes.h
|
---|
264 | browsefilter.o: browsefilter.h ../../lib/gsdlconf.h ../../lib/site.h
|
---|
265 | browsefilter.o: ../../lib/text_t.h comtypes.h filter.h infodbclass.h
|
---|
266 | browsefilter.o: ../../lib/fileutil.h
|
---|
267 | queryfilter.o: queryfilter.h ../../lib/gsdlconf.h ../../lib/site.h
|
---|
268 | queryfilter.o: ../../lib/text_t.h comtypes.h filter.h infodbclass.h
|
---|
269 | queryfilter.o: maptools.h mgsearch.h querycache.h queryinfo.h
|
---|
270 | queryfilter.o: ../../lib/fileutil.h
|
---|
271 | mggdbmsource.o: mggdbmsource.h ../../lib/gsdlconf.h ../../lib/site.h
|
---|
272 | mggdbmsource.o: ../../lib/text_t.h comtypes.h infodbclass.h maptools.h
|
---|
273 | mggdbmsource.o: mgsearch.h querycache.h queryinfo.h source.h
|
---|
274 | mggdbmsource.o: ../../lib/fileutil.h OIDtools.h recptproto.h
|
---|
275 | phrasesearch.o: phrasesearch.h ../../lib/text_t.h ../../lib/gsdlconf.h
|
---|
276 | phrasesearch.o: ../../lib/site.h ../../packages/mg-1.3d/lib/unitool.h
|
---|
277 | phrasesearch.o: mgsearch.h querycache.h queryinfo.h infodbclass.h
|
---|
278 | phrasesearch.o: ../../lib/gsdlunicode.h
|
---|
279 | phrasequeryfilter.o: phrasequeryfilter.h queryfilter.h ../../lib/gsdlconf.h
|
---|
280 | phrasequeryfilter.o: ../../lib/site.h ../../lib/text_t.h comtypes.h filter.h
|
---|
281 | phrasequeryfilter.o: infodbclass.h maptools.h mgsearch.h querycache.h
|
---|
282 | phrasequeryfilter.o: queryinfo.h phrasesearch.h
|
---|
283 | phrasequeryfilter.o: ../../packages/mg-1.3d/lib/unitool.h
|
---|
284 | nullproto.o: nullproto.h ../../lib/gsdlconf.h ../../lib/site.h
|
---|
285 | nullproto.o: collectserver.h ../../lib/text_t.h comtypes.h filter.h source.h
|
---|
286 | nullproto.o: recptproto.h colservrconfig.h
|
---|
287 | librarymain.o: receptionist.h ../../lib/gsdlconf.h ../../lib/site.h
|
---|
288 | librarymain.o: ../../lib/text_t.h cgiargs.h ../../lib/display.h action.h
|
---|
289 | librarymain.o: recptproto.h comtypes.h converter.h ../../lib/gsdlunicode.h
|
---|
290 | librarymain.o: cgiwrapper.h nullproto.h collectserver.h filter.h source.h
|
---|
291 | librarymain.o: browsefilter.h infodbclass.h phrasequeryfilter.h queryfilter.h
|
---|
292 | librarymain.o: maptools.h mgsearch.h querycache.h queryinfo.h mggdbmsource.h
|
---|
293 | librarymain.o: authenaction.h tipaction.h usersaction.h
|
---|