source: trunk/gsdl/src/recpt/Makefile.in@ 985

Last change on this file since 985 was 985, checked in by sjboddie, 24 years ago

modified configuration slightly

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