source: branches/corba/gsdl/src/recpt/Makefile.in@ 1074

Last change on this file since 1074 was 1074, checked in by cs025, 24 years ago

Corba improvements; tidied client initialisation in corbaproto and also
added a number of changes to the main trunk which somehow had not made
it into the corba branch via update before its instantiation.

Also the dated use of the GSDL_GSDLHOME macro was removed, at the expense
of some particularly poor code in corbaserver where log file creation is
now nowhere near so elegant.

  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
File size: 8.1 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 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
27AR = ar
28CC = @CC@
29CPP = @CXX@
30CCFLAGS = @CFLAGS@ -Wall -Wunused -pedantic -W -Woverloaded-virtual
31DEFS = -DNZDL -DQUIET -DSHORT_SUFFIX -DPARADOCNUM -DGSDLSERVER \
32 -DGSDLUSAGELOG @DEFS@
33
34USE_FASTCGI = @USE_FASTCGI@
35ifneq ($(USE_FASTCGI), 1)
36INCLUDES = -I../../lib -I. -I../colservr -I../../packages/mg \
37 -I../../packages/mg/lib -I../../packages/mg/src/text
38else
39INCLUDES = -I../../lib -I. -I../colservr -I../../packages/mg \
40 -I../../packages/mg/lib -I../../packages/mg/src/text \
41 -I../../packages/fcgi/include
42endif
43MINCLUDES = -I. -I../../lib -I../colservr
44
45USE_CORBA = @USE_CORBA@
46
47RANLIB = @RANLIB@
48LDFLAGS = @LDFLAGS@
49LIBS = @LIBS@
50
51GSDLOS = @gsdlos@
52
53
54COMPILE = $(CC) -c $(CCFLAGS) $(DEFS) $(INCLUDES)
55LINK = $(CC) $(LDFLAGS) -o $@
56
57CPPCOMPILE = $(CPP) -c $(CCFLAGS) $(DEFS) $(INCLUDES)
58CPPLINK = $(CPP) $(LDFLAGS) -o $@
59
60MCOMPILE = mico-c++ -x c++ $(MCFLAGS) $(DEFS) $(MINCLUDES) -c
61MLINK = mico-ld -static $(LDFLAGS) -o $@
62MLIBS = $(LIBS) -lmico2.2.7
63
64.SUFFIXES:
65.SUFFIXES: .c .o
66.c.o:
67 $(COMPILE) $<
68
69.SUFFIXES: .cpp .o
70.cpp.o:
71 $(CPPCOMPILE) $<
72
73.SUFFIXES: .mpp .o
74.mpp.o:
75 $(MCOMPILE) $<
76
77COMMONHEADERS = receptionist.h cgiwrapper.h cgiargs.h action.h browserclass.h \
78 converter.h recptconfig.h cgiutils.h OIDtools.h browsetools.h htmlgen.h \
79 statusaction.h pageaction.h comtypes.h recptproto.h \
80 pingaction.h queryaction.h documentaction.h \
81 extlinkaction.h buildaction.h htmlutils.h \
82 querytools.h formattools.h tipaction.h authenaction.h infodbclass.h \
83 userdb.h usersaction.h vlistbrowserclass.h hlistbrowserclass.h \
84 datelistbrowserclass.h invbrowserclass.h pagedbrowserclass.h \
85 htmlbrowserclass.h delhistoryaction.h historydb.h
86
87RECEPTHEADERS =
88
89ifeq ($(USE_CORBA), 1)
90LIBRARYHEADERS = nullproto.h corbaproto.h
91else
92LIBRARYHEADERS = nullproto.h
93endif
94
95HEADERS = $(COMMONHEADERS) $(RECPTHEADERS) $(LIBRARYHEADERS)
96
97
98COMMONSOURCES = receptionist.cpp cgiwrapper.cpp cgiargs.cpp action.cpp browserclass.cpp \
99 converter.cpp recptconfig.cpp cgiutils.cpp OIDtools.cpp browsetools.cpp \
100 htmlgen.cpp statusaction.cpp pageaction.cpp comtypes.cpp \
101 recptproto.cpp pingaction.cpp queryaction.cpp documentaction.cpp \
102 extlinkaction.cpp buildaction.cpp htmlutils.cpp querytools.cpp formattools.cpp \
103 tipaction.cpp authenaction.cpp infodbclass.cpp userdb.cpp usersaction.cpp \
104 vlistbrowserclass.cpp hlistbrowserclass.cpp datelistbrowserclass.cpp \
105 invbrowserclass.cpp pagedbrowserclass.cpp htmlbrowserclass.cpp \
106 delhistoryaction.cpp historydb.cpp
107
108
109RECPTSOURCES = recptmain.cpp
110
111####LIBRARYSOURCES = nullproto.cpp corbaproto.mpp librarymain.cpp
112LIBRARYSOURCES = nullproto.cpp librarymain.cpp
113
114SOURCES = $(COMMONSOURCES) $(RECPTSOURCES) $(LIBRARYSOURCES)
115
116
117COMMONOBJECTS = receptionist.o cgiwrapper.o cgiargs.o action.o browserclass.o \
118 converter.o recptconfig.o cgiutils.o OIDtools.o browsetools.o \
119 htmlgen.o statusaction.o pageaction.o comtypes.o \
120 recptproto.o pingaction.o queryaction.o documentaction.o \
121 extlinkaction.o buildaction.o htmlutils.o querytools.o \
122 formattools.o tipaction.o authenaction.o \
123 infodbclass.o userdb.o usersaction.o vlistbrowserclass.o \
124 hlistbrowserclass.o datelistbrowserclass.o invbrowserclass.o \
125 pagedbrowserclass.o htmlbrowserclass.o delhistoryaction.o \
126 historydb.o
127
128RECPTOBJECTS = recptmain.o
129
130####LIBRARYOBJECTS = nullproto.o corbaproto.o librarymain.o
131LIBRARYOBJECTS = nullproto.o librarymain.o
132
133OBJECTS = $(COMMONOBJECTS) $(RECPTOBJECTS) $(LIBRARYOBJECTS)
134
135
136COLSERVROBJECTS = ../colservr/mgq.o \
137 ../colservr/mgsearch.o \
138 ../colservr/querycache.o \
139 ../colservr/queryinfo.o \
140 ../colservr/collectserver.o \
141 ../colservr/colservrconfig.o \
142 ../colservr/maptools.o \
143 ../colservr/filter.o \
144 ../colservr/source.o \
145 ../colservr/browsefilter.o \
146 ../colservr/queryfilter.o \
147 ../colservr/mggdbmsource.o \
148 ../colservr/phrasesearch.o \
149 ../colservr/phrasequeryfilter.o \
150 ../colservr/collectset.o
151
152ifeq ($(USE_CORBA), 1)
153EXEC = recpt library corbaserver corbarecptldd
154else
155EXEC = recpt library
156endif
157
158all: $(EXEC)
159
160distclean:
161 rm -f $(OBJECTS) $(EXEC) Makefile
162
163clean:
164 rm -f $(OBJECTS) $(EXEC)
165
166install:
167 cp recpt /home/nzdl/nzdl-1.2/cgi-bin/recpt; \
168 cp library /home/nzdl/nzdl-1.2/cgi-bin/library
169# cp $(EXEC) /home/nzdl/nzdl-1.2/cgi-bin
170
171depend:
172 makedepend -Y -- $(DEFS) $(INCLUDES) $(CCFLAGS) -- $(SOURCES)
173
174# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
175
176ifneq ($(USE_FASTCGI), 1)
177RECPT_OBJS = $(COMMONOBJECTS) $(RECPTOBJECTS) \
178 ../../lib/gsdllib.a \
179 ../../packages/mg/src/text/libtextin.a \
180 ../../packages/mg/lib/libmg.a
181else
182RECPT_OBJS = $(COMMONOBJECTS) $(RECPTOBJECTS) \
183 ../../lib/gsdllib.a \
184 ../../packages/mg/src/text/libtextin.a \
185 ../../packages/mg/lib/libmg.a \
186 ../../packages/fcgi/libfcgi/libfcgi.a
187endif
188
189recpt: $(RECPT_OBJS)
190 $(CPPLINK) $(RECPT_OBJS) $(LIBS)
191
192# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
193
194ifneq ($(USE_FASTCGI), 1)
195LIBRARY_OBJS = $(COMMONOBJECTS) $(LIBRARYOBJECTS) $(COLSERVROBJECTS) \
196 ../../lib/gsdllib.a \
197 ../../packages/mg/src/text/libtextin.a \
198 ../../packages/mg/lib/libmg.a
199else
200LIBRARY_OBJS = $(COMMONOBJECTS) $(LIBRARYOBJECTS) $(COLSERVROBJECTS) \
201 ../../lib/gsdllib.a \
202 ../../packages/mg/src/text/libtextin.a \
203 ../../packages/mg/lib/libmg.a \
204 ../../packages/fcgi/libfcgi/libfcgi.a
205endif
206
207library: $(LIBRARY_OBJS)
208 $(CPPLINK) $(LIBRARY_OBJS) $(LIBS)
209
210# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
211
212RECPTLIB_OBJECTS = nullproto.o corbaproto.o \
213 ../../lib/corbatext_t.o ../../lib/corbaconv_text_t.o
214ifneq ($(USE_FASTCGI), 1)
215RLIBRARY_OBJS = $(COMMONOBJECTS) $(RECPTLIB_OBJECTS) $(COLSERVROBJECTS) \
216 ../../lib/gsdllib.a \
217 ../../packages/mg/src/text/libtextin.a \
218 ../../packages/mg/lib/libmg.a
219else
220RLIBRARY_OBJS = $(COMMONOBJECTS) $(RECPTLIB_OBJECTS) $(COLSERVROBJECTS) \
221 ../../lib/gsdllib.a \
222 ../../packages/mg/src/text/libtextin.a \
223 ../../packages/mg/lib/libmg.a \
224 ../../packages/fcgi/libfcgi/libfcgi.a
225endif
226RECPTLIB_OBJS = $(RLIBRARY_OBJS) ../colservr/corbaServer.o
227
228corbaserver: $(RECPTLIB_OBJS)
229 $(MLINK) $(RECPTLIB_OBJS) $(MLIBS)
230
231# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
232
233CORBARECPT_OBJECTS = nullproto.o corbaproto.o corbaclient.o
234ifneq ($(USE_FASTCGI), 1)
235CORBARECPT_OBJS = $(COMMONOBJECTS) $(CORBARECPT_OBJECTS) $(COLSERVROBJECTS) \
236 ../../lib/gsdllib.a \
237 ../../packages/mg/src/text/libtextin.a \
238 ../../packages/mg/lib/libmg.a
239else
240CORBARECPT_OBJS = $(COMMONOBJECTS) $(CORBARECPT_OBJECTS) $(COLSERVROBJECTS) \
241 ../../lib/gsdllib.a \
242 ../../packages/mg/src/text/libtextin.a \
243 ../../packages/mg/lib/libmg.a \
244 ../../packages/fcgi/libfcgi/libfcgi.a
245endif
246
247corbarecptldd: $(CORBARECPT_OBJS)
248 $(MLINK) $(CORBARECPT_OBJS) $(MLIBS)
249
250test:
Note: See TracBrowser for help on using the repository browser.