[8182] | 1 | ###########################################################################
|
---|
| 2 | #
|
---|
| 3 | # Makefile -- src/oaiservr
|
---|
| 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 | #
|
---|
[15457] | 8 | # Copyright (C) 1999-2008 The New Zealand Digital Library Project
|
---|
[8182] | 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 |
|
---|
[15457] | 27 | GSDL_DIR = ../..
|
---|
| 28 | INDEXERS_DIR = $(GSDL_DIR)/indexers
|
---|
| 29 | COLSERVR_DIR = $(GSDL_DIR)/src/colservr
|
---|
| 30 | PROTOCOL_DIR = $(GSDL_DIR)/src/protocol
|
---|
| 31 | RECPT_DIR = $(GSDL_DIR)/src/recpt
|
---|
[8182] | 32 |
|
---|
[15476] | 33 |
|
---|
[12927] | 34 | ENABLE_ACCENTFOLD = @ENABLE_ACCENTFOLD@
|
---|
| 35 | ifeq ($(ENABLE_ACCENTFOLD), 1)
|
---|
[15457] | 36 | ACCENTFOLD_LIBS = $(INDEXERS_DIR)/packages/unac/libunac.a
|
---|
[12927] | 37 | else
|
---|
[15457] | 38 | ACCENTFOLD_LIBS =
|
---|
[12927] | 39 | endif
|
---|
| 40 |
|
---|
[15476] | 41 |
|
---|
[8182] | 42 | CPP = @CXX@
|
---|
[15457] | 43 | CPPFLAGS = @CXXFLAGS@
|
---|
| 44 | INCLUDES = -I$(GSDL_DIR)/lib -I$(COLSERVR_DIR) -I$(PROTOCOL_DIR) -I$(RECPT_DIR) -I$(INDEXERS_DIR)/mgpp/text
|
---|
| 45 | LDFLAGS = @LDFLAGS@
|
---|
| 46 | LIBS = @LIBS@ @GDBM_LIBPATH@ -lgdbm -L$(GSDL_DIR)/packages/expat/lib -lexpat $(ACCENTFOLD_LIBS)
|
---|
[8877] | 47 | INSTALL = @INSTALL@
|
---|
[8182] | 48 |
|
---|
[15482] | 49 |
|
---|
[15457] | 50 | CPPCOMPILE = $(CPP) -c $(CPPFLAGS) $(INCLUDES)
|
---|
| 51 | CPPLINK = $(CPP) $(LDFLAGS) -o $@
|
---|
[8182] | 52 |
|
---|
| 53 |
|
---|
[15457] | 54 | .SUFFIXES:
|
---|
[8182] | 55 | .SUFFIXES: .cpp .o
|
---|
| 56 | .cpp.o:
|
---|
[15457] | 57 | $(CPPCOMPILE) -o $@ $<
|
---|
[8182] | 58 |
|
---|
| 59 |
|
---|
[15457] | 60 | RECPT_OBJECTS = \
|
---|
| 61 | $(RECPT_DIR)/cgiargs.o \
|
---|
| 62 | $(RECPT_DIR)/cgiutils.o \
|
---|
| 63 | $(RECPT_DIR)/htmlutils.o \
|
---|
| 64 | $(RECPT_DIR)/recptprototools.o
|
---|
[8182] | 65 |
|
---|
[15457] | 66 | SOURCES = \
|
---|
| 67 | abstractlistaction.cpp \
|
---|
| 68 | dublincore.cpp \
|
---|
| 69 | identityaction.cpp \
|
---|
| 70 | listidsaction.cpp \
|
---|
| 71 | listrecsaction.cpp \
|
---|
| 72 | listsetsaction.cpp \
|
---|
| 73 | metaformat.cpp \
|
---|
| 74 | metaformatsaction.cpp \
|
---|
| 75 | oaiaction.cpp \
|
---|
| 76 | oaiargs.cpp \
|
---|
| 77 | oaiconfig.cpp \
|
---|
| 78 | oaidispatcher.cpp \
|
---|
| 79 | oaimain.cpp \
|
---|
| 80 | oaitools.cpp \
|
---|
| 81 | recordaction.cpp \
|
---|
| 82 | resumptiontoken.cpp \
|
---|
| 83 | rfc1807.cpp
|
---|
[8182] | 84 |
|
---|
[15457] | 85 | OBJECTS = \
|
---|
| 86 | abstractlistaction.o \
|
---|
| 87 | dublincore.o \
|
---|
| 88 | identityaction.o \
|
---|
| 89 | listidsaction.o \
|
---|
| 90 | listrecsaction.o \
|
---|
| 91 | listsetsaction.o \
|
---|
| 92 | metaformat.o \
|
---|
| 93 | metaformatsaction.o \
|
---|
| 94 | oaiaction.o \
|
---|
| 95 | oaiargs.o \
|
---|
| 96 | oaiconfig.o \
|
---|
| 97 | oaidispatcher.o \
|
---|
| 98 | oaimain.o \
|
---|
| 99 | oaitools.o \
|
---|
| 100 | recordaction.o \
|
---|
| 101 | resumptiontoken.o \
|
---|
| 102 | rfc1807.o
|
---|
[8182] | 103 |
|
---|
[15457] | 104 | GSDL_LIBS = \
|
---|
[15489] | 105 | $(PROTOCOL_DIR)/gsdlprotocol.a \
|
---|
[15482] | 106 | $(COLSERVR_DIR)/gsdlcolservr.a \
|
---|
[15457] | 107 | $(INDEXERS_DIR)/mg/src/text/libmgtext.a \
|
---|
| 108 | $(INDEXERS_DIR)/mg/lib/libmglib.a \
|
---|
| 109 | $(INDEXERS_DIR)/mgpp/text/libmgpptext.a \
|
---|
[15489] | 110 | $(INDEXERS_DIR)/mgpp/lib/libmgpplib.a \
|
---|
| 111 | $(GSDL_DIR)/lib/gsdllib.a
|
---|
[8182] | 112 |
|
---|
[15482] | 113 | EXECUTABLE_OBJECTS = \
|
---|
[15457] | 114 | $(OBJECTS) \
|
---|
| 115 | $(RECPT_OBJECTS) \
|
---|
| 116 | $(GSDL_LIBS)
|
---|
[8182] | 117 |
|
---|
[15482] | 118 | EXECUTABLE = oaiserver
|
---|
[8182] | 119 |
|
---|
| 120 |
|
---|
[15482] | 121 | oaiserver: $(EXECUTABLE_OBJECTS)
|
---|
| 122 | $(CPPLINK) $(EXECUTABLE_OBJECTS) $(LIBS)
|
---|
[8182] | 123 |
|
---|
[15482] | 124 | all: $(EXECUTABLE)
|
---|
[8182] | 125 |
|
---|
[15482] | 126 | install: $(EXECUTABLE)
|
---|
| 127 | $(INSTALL) -m 755 -s $(EXECUTABLE) $(GSDL_DIR)/cgi-bin
|
---|
[8182] | 128 |
|
---|
[15468] | 129 | clean:
|
---|
[15482] | 130 | rm -f $(OBJECTS) $(EXECUTABLE)
|
---|
[15468] | 131 |
|
---|
[8182] | 132 | distclean:
|
---|
[15482] | 133 | rm -f $(OBJECTS) $(EXECUTABLE) Makefile
|
---|
[8182] | 134 |
|
---|
| 135 | depend:
|
---|
[15457] | 136 | makedepend -Y -- $(DEFS) $(INCLUDES) $(CPPFLAGS) -- $(SOURCES)
|
---|