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

Last change on this file since 872 was 790, checked in by sjboddie, 25 years ago

don't want crypt included by default

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