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

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

Corba first commit

  • 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 = -lgdbm -lstdc++ -lm -lcrypt
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
160clean:
161 rm -f $(OBJECTS) $(EXEC)
162
163install:
164 cp recpt /home/nzdl/nzdl-1.2/cgi-bin/recpt; \
165 cp library /home/nzdl/nzdl-1.2/cgi-bin/library
166# cp $(EXEC) /home/nzdl/nzdl-1.2/cgi-bin
167
168depend:
169 makedepend -Y -- $(DEFS) $(INCLUDES) $(CCFLAGS) -- $(SOURCES)
170
171# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
172
173ifneq ($(USE_FASTCGI), 1)
174RECPT_OBJS = $(COMMONOBJECTS) $(RECPTOBJECTS) \
175 ../../lib/gsdllib.a \
176 ../../packages/mg/src/text/libtextin.a \
177 ../../packages/mg/lib/libmg.a
178else
179RECPT_OBJS = $(COMMONOBJECTS) $(RECPTOBJECTS) \
180 ../../lib/gsdllib.a \
181 ../../packages/mg/src/text/libtextin.a \
182 ../../packages/mg/lib/libmg.a \
183 ../../packages/fcgi/libfcgi/libfcgi.a
184endif
185
186recpt: $(RECPT_OBJS)
187 $(CPPLINK) $(RECPT_OBJS) $(LIBS)
188
189# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
190
191ifneq ($(USE_FASTCGI), 1)
192LIBRARY_OBJS = $(COMMONOBJECTS) $(LIBRARYOBJECTS) $(COLSERVROBJECTS) \
193 ../../lib/gsdllib.a \
194 ../../packages/mg/src/text/libtextin.a \
195 ../../packages/mg/lib/libmg.a
196else
197LIBRARY_OBJS = $(COMMONOBJECTS) $(LIBRARYOBJECTS) $(COLSERVROBJECTS) \
198 ../../lib/gsdllib.a \
199 ../../packages/mg/src/text/libtextin.a \
200 ../../packages/mg/lib/libmg.a \
201 ../../packages/fcgi/libfcgi/libfcgi.a
202endif
203
204library: $(LIBRARY_OBJS)
205 $(CPPLINK) $(LIBRARY_OBJS) $(LIBS)
206
207# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
208
209RECPTLIB_OBJECTS = nullproto.o corbaproto.o \
210 ../../lib/corbatext_t.o ../../lib/corbaconv_text_t.o
211ifneq ($(USE_FASTCGI), 1)
212RLIBRARY_OBJS = $(COMMONOBJECTS) $(RECPTLIB_OBJECTS) $(COLSERVROBJECTS) \
213 ../../lib/gsdllib.a \
214 ../../packages/mg/src/text/libtextin.a \
215 ../../packages/mg/lib/libmg.a
216else
217RLIBRARY_OBJS = $(COMMONOBJECTS) $(RECPTLIB_OBJECTS) $(COLSERVROBJECTS) \
218 ../../lib/gsdllib.a \
219 ../../packages/mg/src/text/libtextin.a \
220 ../../packages/mg/lib/libmg.a \
221 ../../packages/fcgi/libfcgi/libfcgi.a
222endif
223RECPTLIB_OBJS = $(RLIBRARY_OBJS) ../colservr/corbaServer.o
224
225corbaserver: $(RECPTLIB_OBJS)
226 $(MLINK) $(RECPTLIB_OBJS) $(MLIBS)
227
228# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
229
230CORBARECPT_OBJECTS = nullproto.o corbaproto.o corbaclient.o
231ifneq ($(USE_FASTCGI), 1)
232CORBARECPT_OBJS = $(COMMONOBJECTS) $(CORBARECPT_OBJECTS) $(COLSERVROBJECTS) \
233 ../../lib/gsdllib.a \
234 ../../packages/mg/src/text/libtextin.a \
235 ../../packages/mg/lib/libmg.a
236else
237CORBARECPT_OBJS = $(COMMONOBJECTS) $(CORBARECPT_OBJECTS) $(COLSERVROBJECTS) \
238 ../../lib/gsdllib.a \
239 ../../packages/mg/src/text/libtextin.a \
240 ../../packages/mg/lib/libmg.a \
241 ../../packages/fcgi/libfcgi/libfcgi.a
242endif
243
244corbarecptldd: $(CORBARECPT_OBJS)
245 $(MLINK) $(CORBARECPT_OBJS) $(MLIBS)
246
247test:
Note: See TracBrowser for help on using the repository browser.