[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 | #
|
---|
[15478] | 8 | # Copyright (C) 1999-2008 The New Zealand Digital Library Project
|
---|
[552] | 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 |
|
---|
[15478] | 27 | GSDL_DIR = ../..
|
---|
| 28 | INDEXERS_DIR = $(GSDL_DIR)/indexers
|
---|
| 29 | COLSERVR_DIR = $(GSDL_DIR)/src/colservr
|
---|
| 30 | PROTOCOL_DIR = $(GSDL_DIR)/src/protocol
|
---|
[1937] | 31 |
|
---|
[13773] | 32 |
|
---|
[12926] | 33 | ENABLE_ACCENTFOLD = @ENABLE_ACCENTFOLD@
|
---|
| 34 | ifeq ($(ENABLE_ACCENTFOLD), 1)
|
---|
[15478] | 35 | ACCENTFOLD_LIBS = $(INDEXERS_DIR)/packages/unac/libunac.a
|
---|
[12926] | 36 | else
|
---|
[15478] | 37 | ACCENTFOLD_LIBS =
|
---|
[12926] | 38 | endif
|
---|
| 39 |
|
---|
[568] | 40 | USE_FASTCGI = @USE_FASTCGI@
|
---|
[15478] | 41 | ifeq ($(USE_FASTCGI), 1)
|
---|
| 42 | FASTCGI_DEFS = -DUSE_FASTCGI
|
---|
| 43 | FASTCGI_INCLUDES = -I$(GSDL_DIR)/packages/fcgi/include
|
---|
| 44 | FASTCGI_LIBS = $(GSDL_DIR)/packages/fcgi/libfcgi/libfcgi.a
|
---|
| 45 | else
|
---|
| 46 | FASTCGI_DEFS =
|
---|
| 47 | FASTCGI_INCLUDES =
|
---|
| 48 | FASTCGI_LIBS =
|
---|
[556] | 49 | endif
|
---|
[15452] | 50 |
|
---|
[8033] | 51 |
|
---|
[15478] | 52 | CC = @CC@
|
---|
| 53 | CPP = @CXX@
|
---|
| 54 | CFLAGS = @CFLAGS@
|
---|
| 55 | CPPFLAGS = @CXXFLAGS@ $(Z_CFLAGS)
|
---|
| 56 | DEFS = @DEFS@ -DNZDL -DQUIET -DSHORT_SUFFIX -DPARADOCNUM -DHAVE_CONFIG_H $(FASTCGI_DEFS)
|
---|
| 57 | GSDLOS = @GSDLOS@
|
---|
| 58 | INCLUDES = -I. -I$(GSDL_DIR) -I$(GSDL_DIR)/lib -I$(COLSERVR_DIR) -I$(PROTOCOL_DIR) \
|
---|
| 59 | -I$(INDEXERS_DIR)/mg/lib -I$(INDEXERS_DIR)/mgpp/text \
|
---|
| 60 | -I$(GSDL_DIR)/packages/expat/include $(FASTCGI_INCLUDES)
|
---|
| 61 | INSTALL = @INSTALL@
|
---|
[552] | 62 | LDFLAGS = @LDFLAGS@
|
---|
[15478] | 63 | LIBS = @LIBS@ @GDBM_LIBPATH@ -lgdbm -L$(GSDL_DIR)/packages/expat/lib -lexpat $(ACCENTFOLD_LIBS)
|
---|
[552] | 64 |
|
---|
[15478] | 65 |
|
---|
| 66 | COMPILE = $(CC) -c $(CFLAGS) $(DEFS) $(INCLUDES)
|
---|
[552] | 67 | LINK = $(CC) $(LDFLAGS) -o $@
|
---|
[15478] | 68 | CPPCOMPILE = $(CPP) -c $(CPPFLAGS) $(DEFS) $(INCLUDES)
|
---|
| 69 | CPPLINK = $(CPP) $(LDFLAGS) -o $@
|
---|
[552] | 70 |
|
---|
[1860] | 71 |
|
---|
[552] | 72 | .SUFFIXES:
|
---|
| 73 | .SUFFIXES: .c .o
|
---|
| 74 | .c.o:
|
---|
| 75 | $(COMPILE) $<
|
---|
| 76 |
|
---|
| 77 | .SUFFIXES: .cpp .o
|
---|
| 78 | .cpp.o:
|
---|
[15478] | 79 | $(CPPCOMPILE) $<
|
---|
[552] | 80 |
|
---|
[2371] | 81 |
|
---|
[15478] | 82 | COLSERVR_OBJECTS = \
|
---|
| 83 | $(COLSERVR_DIR)/comtypes.o \
|
---|
| 84 | $(COLSERVR_DIR)/mgq.o \
|
---|
| 85 | $(COLSERVR_DIR)/search.o \
|
---|
| 86 | $(COLSERVR_DIR)/mgsearch.o \
|
---|
| 87 | $(COLSERVR_DIR)/querycache.o \
|
---|
| 88 | $(COLSERVR_DIR)/queryinfo.o \
|
---|
| 89 | $(COLSERVR_DIR)/collectserver.o \
|
---|
| 90 | $(COLSERVR_DIR)/colservrconfig.o \
|
---|
| 91 | $(COLSERVR_DIR)/maptools.o \
|
---|
| 92 | $(COLSERVR_DIR)/filter.o \
|
---|
| 93 | $(COLSERVR_DIR)/source.o \
|
---|
| 94 | $(COLSERVR_DIR)/browsefilter.o \
|
---|
| 95 | $(COLSERVR_DIR)/queryfilter.o \
|
---|
| 96 | $(COLSERVR_DIR)/gdbmsource.o \
|
---|
| 97 | $(COLSERVR_DIR)/mggdbmsource.o \
|
---|
| 98 | $(COLSERVR_DIR)/phrasesearch.o \
|
---|
| 99 | $(COLSERVR_DIR)/phrasequeryfilter.o \
|
---|
| 100 | $(COLSERVR_DIR)/mgqueryfilter.o \
|
---|
| 101 | $(COLSERVR_DIR)/mgppsearch.o \
|
---|
| 102 | $(COLSERVR_DIR)/mgppqueryfilter.o \
|
---|
| 103 | $(COLSERVR_DIR)/collectset.o \
|
---|
| 104 | $(COLSERVR_DIR)/lucenesearch.o \
|
---|
| 105 | $(COLSERVR_DIR)/lucenequeryfilter.o \
|
---|
| 106 | $(COLSERVR_DIR)/lucenegdbmsource.o \
|
---|
| 107 | $(COLSERVR_DIR)/expat_resultset.o \
|
---|
| 108 | $(COLSERVR_DIR)/expat_document.o
|
---|
[1860] | 109 |
|
---|
[15478] | 110 | PROTOCOL_OBJECTS = \
|
---|
| 111 | $(PROTOCOL_DIR)/nullproto.o \
|
---|
| 112 | $(PROTOCOL_DIR)/recptproto.o
|
---|
[552] | 113 |
|
---|
[15478] | 114 | SOURCES = \
|
---|
| 115 | action.cpp \
|
---|
| 116 | argdb.cpp \
|
---|
| 117 | authenaction.cpp \
|
---|
| 118 | browseaction.cpp \
|
---|
| 119 | browseactiontools.cpp \
|
---|
| 120 | browserclass.cpp \
|
---|
| 121 | browsetoolsclass.cpp \
|
---|
| 122 | cgiargs.cpp \
|
---|
| 123 | cgiutils.cpp \
|
---|
| 124 | cgiwrapper.cpp \
|
---|
| 125 | collectoraction.cpp \
|
---|
| 126 | converter.cpp \
|
---|
| 127 | datelistbrowserclass.cpp \
|
---|
| 128 | depositoraction.cpp \
|
---|
| 129 | documentaction.cpp \
|
---|
| 130 | extlinkaction.cpp \
|
---|
| 131 | formattools.cpp \
|
---|
| 132 | gtiaction.cpp \
|
---|
| 133 | highlighttext.cpp \
|
---|
| 134 | historydb.cpp \
|
---|
| 135 | hlistbrowserclass.cpp \
|
---|
| 136 | htmlbrowserclass.cpp \
|
---|
| 137 | htmlutils.cpp \
|
---|
| 138 | invbrowserclass.cpp \
|
---|
| 139 | librarymain.cpp \
|
---|
| 140 | maincfg.cpp \
|
---|
| 141 | pageaction.cpp \
|
---|
| 142 | pagedbrowserclass.cpp \
|
---|
| 143 | phindaction.cpp \
|
---|
| 144 | phindbrowserclass.cpp \
|
---|
| 145 | pingaction.cpp \
|
---|
| 146 | queryaction.cpp \
|
---|
| 147 | querytools.cpp \
|
---|
| 148 | receptionist.cpp \
|
---|
| 149 | recptprototools.cpp \
|
---|
| 150 | statusaction.cpp \
|
---|
| 151 | summarise.cpp \
|
---|
| 152 | tipaction.cpp \
|
---|
| 153 | userdb.cpp \
|
---|
| 154 | usersaction.cpp \
|
---|
| 155 | vlistbrowserclass.cpp \
|
---|
| 156 | wizardaction.cpp
|
---|
[552] | 157 |
|
---|
[15478] | 158 | OBJECTS = \
|
---|
| 159 | action.o \
|
---|
| 160 | argdb.o \
|
---|
| 161 | authenaction.o \
|
---|
| 162 | browseaction.o \
|
---|
| 163 | browseactiontools.o \
|
---|
| 164 | browserclass.o \
|
---|
| 165 | browsetoolsclass.o \
|
---|
| 166 | cgiargs.o \
|
---|
| 167 | cgiutils.o \
|
---|
| 168 | cgiwrapper.o \
|
---|
| 169 | collectoraction.o \
|
---|
| 170 | converter.o \
|
---|
| 171 | datelistbrowserclass.o \
|
---|
| 172 | depositoraction.o \
|
---|
| 173 | documentaction.o \
|
---|
| 174 | extlinkaction.o \
|
---|
| 175 | formattools.o \
|
---|
| 176 | gtiaction.o \
|
---|
| 177 | highlighttext.o \
|
---|
| 178 | historydb.o \
|
---|
| 179 | hlistbrowserclass.o \
|
---|
| 180 | htmlbrowserclass.o \
|
---|
| 181 | htmlutils.o \
|
---|
| 182 | invbrowserclass.o \
|
---|
| 183 | librarymain.o \
|
---|
| 184 | maincfg.o \
|
---|
| 185 | pageaction.o \
|
---|
| 186 | pagedbrowserclass.o \
|
---|
| 187 | phindaction.o \
|
---|
| 188 | phindbrowserclass.o \
|
---|
| 189 | pingaction.o \
|
---|
| 190 | queryaction.o \
|
---|
| 191 | querytools.o \
|
---|
| 192 | receptionist.o \
|
---|
| 193 | recptprototools.o \
|
---|
| 194 | statusaction.o \
|
---|
| 195 | summarise.o \
|
---|
| 196 | tipaction.o \
|
---|
| 197 | userdb.o \
|
---|
| 198 | usersaction.o \
|
---|
| 199 | vlistbrowserclass.o \
|
---|
| 200 | wizardaction.o
|
---|
[552] | 201 |
|
---|
[15478] | 202 | GSDL_LIBS = \
|
---|
| 203 | $(GSDL_DIR)/lib/gsdllib.a \
|
---|
| 204 | $(INDEXERS_DIR)/mg/src/text/libmgtext.a \
|
---|
| 205 | $(INDEXERS_DIR)/mg/lib/libmglib.a \
|
---|
| 206 | $(INDEXERS_DIR)/mgpp/text/libmgpptext.a \
|
---|
| 207 | $(INDEXERS_DIR)/mgpp/lib/libmgpplib.a
|
---|
[552] | 208 |
|
---|
[15478] | 209 | EXEC_OBJECTS = \
|
---|
| 210 | $(OBJECTS) \
|
---|
| 211 | $(PROTOCOL_OBJECTS) \
|
---|
| 212 | $(COLSERVR_OBJECTS) \
|
---|
| 213 | $(GSDL_LIBS)
|
---|
[552] | 214 |
|
---|
[15478] | 215 | EXEC = library
|
---|
[552] | 216 |
|
---|
[722] | 217 |
|
---|
[15478] | 218 | library: $(EXEC_OBJECTS)
|
---|
| 219 | $(CPPLINK) $(EXEC_OBJECTS) $(LIBS)
|
---|
[552] | 220 |
|
---|
[15478] | 221 | all: $(EXEC)
|
---|
[552] | 222 |
|
---|
[15478] | 223 | install: $(EXEC)
|
---|
| 224 | $(INSTALL) -m 755 -s $(EXEC) $(GSDL_DIR)/cgi-bin
|
---|
[1937] | 225 |
|
---|
[15478] | 226 | clean:
|
---|
| 227 | rm -f $(OBJECTS) $(EXEC)
|
---|
[552] | 228 |
|
---|
[992] | 229 | distclean:
|
---|
[15478] | 230 | rm -f $(OBJECTS) $(EXEC) Makefile
|
---|
[992] | 231 |
|
---|
[552] | 232 | depend:
|
---|
[15478] | 233 | makedepend -Y -- $(DEFS) $(INCLUDES) $(CPPFLAGS) -- $(SOURCES)
|
---|