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

Last change on this file since 606 was 577, checked in by sjboddie, 25 years ago

Tidied up makefiles a bit

  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
File size: 5.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
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@
45LIBS = -lgdbm -lstdc++ -lm #-lcrypt
46
47GSDLOS = @gsdlos@
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
62COMMONHEADERS = receptionist.h cgiwrapper.h cgiargs.h action.h \
63 converter.h recptconfig.h cgiutils.h OIDtools.h browsetools.h htmlgen.h \
64 statusaction.h pageaction.h comtypes.h recptproto.h \
65 pingaction.h queryaction.h documentaction.h htmlutils.h \
66 querytools.h formattools.h tipaction.h authenaction.h infodbclass.h \
67 userdb.h usersaction.h
68
69RECEPTHEADERS =
70
71LIBRARYHEADERS = nullproto.h
72
73HEADERS = $(COMMONHEADERS) $(RECPTHEADERS) $(LIBRARYHEADERS)
74
75
76COMMONSOURCES = receptionist.cpp cgiwrapper.cpp cgiargs.cpp action.cpp \
77 converter.cpp recptconfig.cpp cgiutils.cpp OIDtools.cpp browsetools.cpp \
78 htmlgen.cpp statusaction.cpp pageaction.cpp comtypes.cpp \
79 recptproto.cpp pingaction.cpp queryaction.cpp documentaction.cpp \
80 htmlutils.cpp querytools.cpp formattools.cpp tipaction.cpp authenaction.cpp \
81 infodbclass.cpp userdb.cpp usersaction.cpp
82
83RECPTSOURCES = recptmain.cpp
84
85LIBRARYSOURCES = nullproto.cpp librarymain.cpp
86
87SOURCES = $(COMMONSOURCES) $(RECPTSOURCES) $(LIBRARYSOURCES)
88
89
90COMMONOBJECTS = receptionist.o cgiwrapper.o cgiargs.o action.o \
91 converter.o recptconfig.o cgiutils.o OIDtools.o browsetools.o \
92 htmlgen.o statusaction.o pageaction.o comtypes.o \
93 recptproto.o pingaction.o queryaction.o documentaction.o \
94 htmlutils.o querytools.o formattools.o tipaction.o authenaction.o \
95 infodbclass.o userdb.o usersaction.o
96
97RECPTOBJECTS = recptmain.o
98
99LIBRARYOBJECTS = nullproto.o librarymain.o
100
101OBJECTS = $(COMMONOBJECTS) $(RECPTOBJECTS) $(LIBRARYOBJECTS)
102
103
104COLSERVROBJECTS = ../colservr/mgq.o \
105 ../colservr/mgsearch.o \
106 ../colservr/querycache.o \
107 ../colservr/queryinfo.o \
108 ../colservr/collectserver.o \
109 ../colservr/colservrconfig.o \
110 ../colservr/maptools.o \
111 ../colservr/filter.o \
112 ../colservr/source.o \
113 ../colservr/browsefilter.o \
114 ../colservr/queryfilter.o \
115 ../colservr/mggdbmsource.o \
116 ../colservr/phrasesearch.o \
117 ../colservr/phrasequeryfilter.o
118
119
120EXEC = recpt library
121
122all: $(EXEC)
123
124clean:
125 rm -f $(OBJECTS) $(EXEC)
126
127install:
128 cp recpt /home/nzdl/nzdl-1.2/cgi-bin/recpt; \
129 cp library /home/nzdl/nzdl-1.2/cgi-bin/library
130# cp $(EXEC) /home/nzdl/nzdl-1.2/cgi-bin
131
132depend:
133 makedepend -Y -- $(DEFS) $(INCLUDES) $(CCFLAGS) -- $(SOURCES)
134
135# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
136
137ifneq ($(USE_FASTCGI), 1)
138RECPT_OBJS = $(COMMONOBJECTS) $(RECPTOBJECTS) \
139 ../../lib/gsdllib.a \
140 ../../packages/mg/src/text/libtextin.a \
141 ../../packages/mg/lib/libmg.a
142else
143RECPT_OBJS = $(COMMONOBJECTS) $(RECPTOBJECTS) \
144 ../../lib/gsdllib.a \
145 ../../packages/mg/src/text/libtextin.a \
146 ../../packages/mg/lib/libmg.a \
147 ../../packages/fcgi/libfcgi/libfcgi.a
148endif
149
150recpt: $(RECPT_OBJS)
151 $(LINK) $(RECPT_OBJS) $(LIBS)
152
153# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
154
155ifneq ($(USE_FASTCGI), 1)
156LIBRARY_OBJS = $(COMMONOBJECTS) $(LIBRARYOBJECTS) $(COLSERVROBJECTS) \
157 ../../lib/gsdllib.a \
158 ../../packages/mg/src/text/libtextin.a \
159 ../../packages/mg/lib/libmg.a
160else
161LIBRARY_OBJS = $(COMMONOBJECTS) $(LIBRARYOBJECTS) $(COLSERVROBJECTS) \
162 ../../lib/gsdllib.a \
163 ../../packages/mg/src/text/libtextin.a \
164 ../../packages/mg/lib/libmg.a \
165 ../../packages/fcgi/libfcgi/libfcgi.a
166endif
167
168library: $(LIBRARY_OBJS)
169 $(LINK) $(LIBRARY_OBJS) $(LIBS)
Note: See TracBrowser for help on using the repository browser.