[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
|
---|
[15494] | 31 | Z3950_DIR = $(GSDL_DIR)/src/z3950
|
---|
[1937] | 32 |
|
---|
[13773] | 33 |
|
---|
[12926] | 34 | ENABLE_ACCENTFOLD = @ENABLE_ACCENTFOLD@
|
---|
| 35 | ifeq ($(ENABLE_ACCENTFOLD), 1)
|
---|
[15478] | 36 | ACCENTFOLD_LIBS = $(INDEXERS_DIR)/packages/unac/libunac.a
|
---|
[12926] | 37 | else
|
---|
[15478] | 38 | ACCENTFOLD_LIBS =
|
---|
[12926] | 39 | endif
|
---|
| 40 |
|
---|
[568] | 41 | USE_FASTCGI = @USE_FASTCGI@
|
---|
[15478] | 42 | ifeq ($(USE_FASTCGI), 1)
|
---|
| 43 | FASTCGI_DEFS = -DUSE_FASTCGI
|
---|
| 44 | FASTCGI_INCLUDES = -I$(GSDL_DIR)/packages/fcgi/include
|
---|
| 45 | FASTCGI_LIBS = $(GSDL_DIR)/packages/fcgi/libfcgi/libfcgi.a
|
---|
| 46 | else
|
---|
| 47 | FASTCGI_DEFS =
|
---|
| 48 | FASTCGI_INCLUDES =
|
---|
| 49 | FASTCGI_LIBS =
|
---|
[556] | 50 | endif
|
---|
[15452] | 51 |
|
---|
[15494] | 52 | USE_Z3950 = @USE_Z3950@
|
---|
| 53 | ifeq ($(USE_Z3950), 1)
|
---|
| 54 | Z3950_DEFS = -DUSE_Z3950
|
---|
| 55 | Z3950_INCLUDES = -I$(Z3950_DIR)
|
---|
| 56 | Z3950_LIBS = $(Z3950_DIR)/gsdlz3950.a $(GSDL_DIR)/packages/yaz/lib/libyaz.a
|
---|
| 57 | else
|
---|
| 58 | Z3950_DEFS =
|
---|
| 59 | Z3950_INCLUDES =
|
---|
| 60 | Z3950_LIBS =
|
---|
| 61 | endif
|
---|
[8033] | 62 |
|
---|
[15494] | 63 |
|
---|
[15478] | 64 | CPP = @CXX@
|
---|
[15494] | 65 | CPPFLAGS = @CXXFLAGS@
|
---|
| 66 | DEFS = @DEFS@ -DNZDL -DQUIET -DSHORT_SUFFIX -DPARADOCNUM -DHAVE_CONFIG_H $(FASTCGI_DEFS) $(Z3950_DEFS)
|
---|
[15511] | 67 | INCLUDES = @GDBM_INCLUDE@ -I. -I$(GSDL_DIR) -I$(GSDL_DIR)/lib -I$(COLSERVR_DIR) -I$(PROTOCOL_DIR) \
|
---|
| 68 | -I$(INDEXERS_DIR)/mg/lib -I$(INDEXERS_DIR)/mgpp/text \
|
---|
| 69 | -I$(GSDL_DIR)/packages/expat/include $(FASTCGI_INCLUDES) $(Z3950_INCLUDES)
|
---|
[15478] | 70 | INSTALL = @INSTALL@
|
---|
[552] | 71 | LDFLAGS = @LDFLAGS@
|
---|
[15494] | 72 | LIBS = @LIBS@ @GDBM_LIBPATH@ -lgdbm -L$(GSDL_DIR)/packages/expat/lib -lexpat $(ACCENTFOLD_LIBS) \
|
---|
| 73 | $(FASTCGI_LIBS) $(Z3950_LIBS)
|
---|
[552] | 74 |
|
---|
[15478] | 75 |
|
---|
| 76 | CPPCOMPILE = $(CPP) -c $(CPPFLAGS) $(DEFS) $(INCLUDES)
|
---|
| 77 | CPPLINK = $(CPP) $(LDFLAGS) -o $@
|
---|
[552] | 78 |
|
---|
[1860] | 79 |
|
---|
[552] | 80 | .SUFFIXES:
|
---|
| 81 | .SUFFIXES: .cpp .o
|
---|
| 82 | .cpp.o:
|
---|
[15478] | 83 | $(CPPCOMPILE) $<
|
---|
[552] | 84 |
|
---|
[2371] | 85 |
|
---|
[15478] | 86 | SOURCES = \
|
---|
| 87 | action.cpp \
|
---|
| 88 | argdb.cpp \
|
---|
| 89 | authenaction.cpp \
|
---|
| 90 | browseaction.cpp \
|
---|
| 91 | browseactiontools.cpp \
|
---|
| 92 | browserclass.cpp \
|
---|
| 93 | browsetoolsclass.cpp \
|
---|
| 94 | cgiargs.cpp \
|
---|
| 95 | cgiutils.cpp \
|
---|
| 96 | cgiwrapper.cpp \
|
---|
| 97 | collectoraction.cpp \
|
---|
| 98 | converter.cpp \
|
---|
| 99 | datelistbrowserclass.cpp \
|
---|
| 100 | depositoraction.cpp \
|
---|
| 101 | documentaction.cpp \
|
---|
| 102 | extlinkaction.cpp \
|
---|
| 103 | formattools.cpp \
|
---|
| 104 | gtiaction.cpp \
|
---|
| 105 | highlighttext.cpp \
|
---|
| 106 | historydb.cpp \
|
---|
| 107 | hlistbrowserclass.cpp \
|
---|
| 108 | htmlbrowserclass.cpp \
|
---|
| 109 | htmlutils.cpp \
|
---|
| 110 | invbrowserclass.cpp \
|
---|
| 111 | librarymain.cpp \
|
---|
| 112 | maincfg.cpp \
|
---|
| 113 | pageaction.cpp \
|
---|
| 114 | pagedbrowserclass.cpp \
|
---|
| 115 | phindaction.cpp \
|
---|
| 116 | phindbrowserclass.cpp \
|
---|
| 117 | pingaction.cpp \
|
---|
| 118 | queryaction.cpp \
|
---|
| 119 | querytools.cpp \
|
---|
| 120 | receptionist.cpp \
|
---|
| 121 | recptprototools.cpp \
|
---|
| 122 | statusaction.cpp \
|
---|
| 123 | summarise.cpp \
|
---|
| 124 | tipaction.cpp \
|
---|
| 125 | userdb.cpp \
|
---|
| 126 | usersaction.cpp \
|
---|
| 127 | vlistbrowserclass.cpp \
|
---|
| 128 | wizardaction.cpp
|
---|
[552] | 129 |
|
---|
[15478] | 130 | OBJECTS = \
|
---|
| 131 | action.o \
|
---|
| 132 | argdb.o \
|
---|
| 133 | authenaction.o \
|
---|
| 134 | browseaction.o \
|
---|
| 135 | browseactiontools.o \
|
---|
| 136 | browserclass.o \
|
---|
| 137 | browsetoolsclass.o \
|
---|
| 138 | cgiargs.o \
|
---|
| 139 | cgiutils.o \
|
---|
| 140 | cgiwrapper.o \
|
---|
| 141 | collectoraction.o \
|
---|
| 142 | converter.o \
|
---|
| 143 | datelistbrowserclass.o \
|
---|
| 144 | depositoraction.o \
|
---|
| 145 | documentaction.o \
|
---|
| 146 | extlinkaction.o \
|
---|
| 147 | formattools.o \
|
---|
| 148 | gtiaction.o \
|
---|
| 149 | highlighttext.o \
|
---|
| 150 | historydb.o \
|
---|
| 151 | hlistbrowserclass.o \
|
---|
| 152 | htmlbrowserclass.o \
|
---|
| 153 | htmlutils.o \
|
---|
| 154 | invbrowserclass.o \
|
---|
| 155 | librarymain.o \
|
---|
| 156 | maincfg.o \
|
---|
| 157 | pageaction.o \
|
---|
| 158 | pagedbrowserclass.o \
|
---|
| 159 | phindaction.o \
|
---|
| 160 | phindbrowserclass.o \
|
---|
| 161 | pingaction.o \
|
---|
| 162 | queryaction.o \
|
---|
| 163 | querytools.o \
|
---|
| 164 | receptionist.o \
|
---|
| 165 | recptprototools.o \
|
---|
| 166 | statusaction.o \
|
---|
| 167 | summarise.o \
|
---|
| 168 | tipaction.o \
|
---|
| 169 | userdb.o \
|
---|
| 170 | usersaction.o \
|
---|
| 171 | vlistbrowserclass.o \
|
---|
| 172 | wizardaction.o
|
---|
[552] | 173 |
|
---|
[15478] | 174 | GSDL_LIBS = \
|
---|
[15489] | 175 | $(PROTOCOL_DIR)/gsdlprotocol.a \
|
---|
[15480] | 176 | $(COLSERVR_DIR)/gsdlcolservr.a \
|
---|
[15478] | 177 | $(INDEXERS_DIR)/mg/src/text/libmgtext.a \
|
---|
| 178 | $(INDEXERS_DIR)/mg/lib/libmglib.a \
|
---|
| 179 | $(INDEXERS_DIR)/mgpp/text/libmgpptext.a \
|
---|
[15489] | 180 | $(INDEXERS_DIR)/mgpp/lib/libmgpplib.a \
|
---|
| 181 | $(GSDL_DIR)/lib/gsdllib.a
|
---|
[552] | 182 |
|
---|
[15480] | 183 | EXECUTABLE_OBJECTS = \
|
---|
[15478] | 184 | $(OBJECTS) \
|
---|
| 185 | $(GSDL_LIBS)
|
---|
[552] | 186 |
|
---|
[15480] | 187 | EXECUTABLE = library
|
---|
[552] | 188 |
|
---|
[722] | 189 |
|
---|
[15480] | 190 | library: $(EXECUTABLE_OBJECTS)
|
---|
| 191 | $(CPPLINK) $(EXECUTABLE_OBJECTS) $(LIBS)
|
---|
[552] | 192 |
|
---|
[15480] | 193 | all: $(EXECUTABLE)
|
---|
[552] | 194 |
|
---|
[15480] | 195 | install: $(EXECUTABLE)
|
---|
| 196 | $(INSTALL) -m 755 -s $(EXECUTABLE) $(GSDL_DIR)/cgi-bin
|
---|
[1937] | 197 |
|
---|
[15478] | 198 | clean:
|
---|
[15480] | 199 | rm -f $(OBJECTS) $(EXECUTABLE)
|
---|
[552] | 200 |
|
---|
[992] | 201 | distclean:
|
---|
[15480] | 202 | rm -f $(OBJECTS) $(EXECUTABLE) Makefile
|
---|
[992] | 203 |
|
---|
[552] | 204 | depend:
|
---|
[15478] | 205 | makedepend -Y -- $(DEFS) $(INCLUDES) $(CPPFLAGS) -- $(SOURCES)
|
---|