source: branches/z3950-branch/gsdl/src/recpt/Makefile.in@ 1168

Last change on this file since 1168 was 1168, checked in by johnmcp, 24 years ago

added proper config file parsing for z39.50 servers, and minor changes
to pageaction (minor bug when display collections from >1 proto) and
cgiwrapper (announces which collections are z39.50 servers).

  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
File size: 6.4 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@
29CCFLAGS = @CFLAGS@ -Wall -Wunused -pedantic -W -Woverloaded-virtual
30
31USE_FASTCGI = @USE_FASTCGI@
32ifneq ($(USE_FASTCGI), 1)
33DEFS = -DNZDL -DQUIET -DSHORT_SUFFIX -DPARADOCNUM -DGSDLSERVER \
34 -DGSDLUSAGELOG @DEFS@
35
36INCLUDES = -I../../lib -I. -I../colservr -I../../packages/mg \
37 -I../../packages/mg/lib -I../../packages/mg/src/text
38else
39DEFS = -DNZDL -DQUIET -DSHORT_SUFFIX -DPARADOCNUM -DGSDLSERVER \
40 -DGSDLUSAGELOG -DUSE_FASTCGI @DEFS@
41
42INCLUDES = -I../../lib -I. -I../colservr -I../../packages/mg \
43 -I../../packages/mg/lib -I../../packages/mg/src/text \
44 -I../../packages/fcgi/include
45endif
46
47RANLIB = @RANLIB@
48LDFLAGS = @LDFLAGS@
49#LIBS = -lgdbm -lstdc++ -lm #-lcrypt
50LIBS = @LIBS@
51
52GSDLOS = @gsdlos@
53
54
55COMPILE = $(CC) -c $(CCFLAGS) $(DEFS) $(INCLUDES)
56LINK = $(CC) $(LDFLAGS) -o $@
57
58.SUFFIXES:
59.SUFFIXES: .c .o
60.c.o:
61 $(COMPILE) $<
62
63.SUFFIXES: .cpp .o
64.cpp.o:
65 $(COMPILE) $<
66
67COMMONHEADERS = receptionist.h cgiwrapper.h cgiargs.h action.h browserclass.h \
68 converter.h recptconfig.h cgiutils.h OIDtools.h browsetools.h htmlgen.h \
69 statusaction.h pageaction.h comtypes.h recptproto.h \
70 pingaction.h queryaction.h documentaction.h \
71 extlinkaction.h buildaction.h htmlutils.h \
72 querytools.h formattools.h tipaction.h authenaction.h infodbclass.h \
73 userdb.h usersaction.h vlistbrowserclass.h hlistbrowserclass.h \
74 datelistbrowserclass.h invbrowserclass.h pagedbrowserclass.h \
75 htmlbrowserclass.h delhistoryaction.h historydb.h
76
77RECEPTHEADERS =
78
79LIBRARYHEADERS = nullproto.h z3950proto.h
80
81HEADERS = $(COMMONHEADERS) $(RECPTHEADERS) $(LIBRARYHEADERS)
82
83
84COMMONSOURCES = receptionist.cpp cgiwrapper.cpp cgiargs.cpp action.cpp browserclass.cpp \
85 converter.cpp recptconfig.cpp cgiutils.cpp OIDtools.cpp browsetools.cpp \
86 htmlgen.cpp statusaction.cpp pageaction.cpp comtypes.cpp \
87 recptproto.cpp pingaction.cpp queryaction.cpp documentaction.cpp \
88 extlinkaction.cpp buildaction.cpp htmlutils.cpp querytools.cpp formattools.cpp \
89 tipaction.cpp authenaction.cpp infodbclass.cpp userdb.cpp usersaction.cpp \
90 vlistbrowserclass.cpp hlistbrowserclass.cpp datelistbrowserclass.cpp \
91 invbrowserclass.cpp pagedbrowserclass.cpp htmlbrowserclass.cpp \
92 delhistoryaction.cpp historydb.cpp
93
94
95RECPTSOURCES = recptmain.cpp
96
97LIBRARYSOURCES = nullproto.cpp z3950proto.cpp librarymain.cpp
98
99SOURCES = $(COMMONSOURCES) $(RECPTSOURCES) $(LIBRARYSOURCES)
100
101
102COMMONOBJECTS = receptionist.o cgiwrapper.o cgiargs.o action.o browserclass.o \
103 converter.o recptconfig.o cgiutils.o OIDtools.o browsetools.o \
104 htmlgen.o statusaction.o pageaction.o comtypes.o \
105 recptproto.o pingaction.o queryaction.o documentaction.o \
106 extlinkaction.o buildaction.o htmlutils.o querytools.o \
107 formattools.o tipaction.o authenaction.o \
108 infodbclass.o userdb.o usersaction.o vlistbrowserclass.o \
109 hlistbrowserclass.o datelistbrowserclass.o invbrowserclass.o \
110 pagedbrowserclass.o htmlbrowserclass.o delhistoryaction.o \
111 historydb.o parse.yy.o
112
113RECPTOBJECTS = recptmain.o
114
115LIBRARYOBJECTS = nullproto.o z3950proto.o librarymain.o zparse.tab.o
116
117OBJECTS = $(COMMONOBJECTS) $(RECPTOBJECTS) $(LIBRARYOBJECTS)
118
119
120COLSERVROBJECTS = ../colservr/mgq.o \
121 ../colservr/mgsearch.o \
122 ../colservr/querycache.o \
123 ../colservr/queryinfo.o \
124 ../colservr/collectserver.o \
125 ../colservr/colservrconfig.o \
126 ../colservr/maptools.o \
127 ../colservr/filter.o \
128 ../colservr/source.o \
129 ../colservr/browsefilter.o \
130 ../colservr/queryfilter.o \
131 ../colservr/mggdbmsource.o \
132 ../colservr/phrasesearch.o \
133 ../colservr/phrasequeryfilter.o
134
135# bison and flex temp files
136zparse.tab.c: zparse.y
137 bison -d zparse.y
138parse.yy.c: parse.fl
139 flex -oparse.yy.c parse.fl
140PARSE_TMPFILES= zparse.tab.o zparse.tab.c zparse.tab.h parse.yy.o parse.yy.c
141EXEC = recpt library
142
143all: $(EXEC)
144
145distclean:
146 rm -f $(OBJECTS) $(EXEC) $(PARSE_TMPFILES) Makefile
147
148clean:
149 rm -f $(OBJECTS) $(EXEC) $(PARSE_TMPFILES)
150
151install:
152 install -m 755 -s library ../../cgi-bin/library
153
154depend:
155 makedepend -Y -- $(DEFS) $(INCLUDES) $(CCFLAGS) -- $(SOURCES)
156
157# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
158
159ifneq ($(USE_FASTCGI), 1)
160RECPT_OBJS = $(COMMONOBJECTS) $(RECPTOBJECTS) \
161 ../../lib/gsdllib.a \
162 ../../packages/mg/src/text/libtextin.a \
163 ../../packages/mg/lib/libmg.a
164else
165RECPT_OBJS = $(COMMONOBJECTS) $(RECPTOBJECTS) \
166 ../../lib/gsdllib.a \
167 ../../packages/mg/src/text/libtextin.a \
168 ../../packages/mg/lib/libmg.a \
169 ../../packages/fcgi/libfcgi/libfcgi.a
170endif
171
172recpt: $(RECPT_OBJS)
173 $(LINK) $(RECPT_OBJS) $(LIBS)
174
175# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
176
177ifneq ($(USE_FASTCGI), 1)
178LIBRARY_OBJS = $(COMMONOBJECTS) $(LIBRARYOBJECTS) $(COLSERVROBJECTS) \
179 ../../lib/gsdllib.a \
180 ../../packages/mg/src/text/libtextin.a \
181 ../../packages/mg/lib/libmg.a
182else
183LIBRARY_OBJS = $(COMMONOBJECTS) $(LIBRARYOBJECTS) $(COLSERVROBJECTS) \
184 ../../lib/gsdllib.a \
185 ../../packages/mg/src/text/libtextin.a \
186 ../../packages/mg/lib/libmg.a \
187 ../../packages/fcgi/libfcgi/libfcgi.a
188endif
189
190library: $(LIBRARY_OBJS)
191 $(LINK) $(LIBRARY_OBJS) $(LIBS)
Note: See TracBrowser for help on using the repository browser.