[21502] | 1 | ###########################################################################
|
---|
| 2 | #
|
---|
| 3 | # Makefile -- Makefile for runtime-src/src/oaiservr
|
---|
| 4 | #
|
---|
| 5 | # A component of the Greenstone digital library software
|
---|
| 6 | # from the New Zealand Digital Library Project at the
|
---|
| 7 | # University of Waikato, New Zealand.
|
---|
| 8 | #
|
---|
| 9 | # Copyright (C) 1999-2010 The New Zealand Digital Library Project
|
---|
| 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 |
|
---|
| 27 |
|
---|
| 28 | RUNTIME_SRC_DIR = @top_srcdir@
|
---|
| 29 | GSDL_DIR = $(RUNTIME_SRC_DIR)/..
|
---|
| 30 |
|
---|
| 31 |
|
---|
| 32 | # Programs compiled and their install directories
|
---|
| 33 | cgibindir = $(GSDL_DIR)/cgi-bin
|
---|
| 34 | cgibin_PROGRAMS = oaiserver.cgi
|
---|
| 35 |
|
---|
| 36 | # Program: oaiserver.cgi
|
---|
| 37 | oaiserver_cgi_CPPFLAGS = \
|
---|
| 38 | -I$(GSDL_DIR)/common-src/src/lib \
|
---|
| 39 | -I$(GSDL_DIR)/runtime-src/src/colservr \
|
---|
| 40 | -I$(GSDL_DIR)/runtime-src/src/protocol \
|
---|
| 41 | -I$(GSDL_DIR)/runtime-src/src/recpt \
|
---|
| 42 | $(COMPAT32BITFLAGS)
|
---|
| 43 |
|
---|
| 44 | # Sources for oaiserver.cgi
|
---|
| 45 | oaiserver_cgi_SOURCES = \
|
---|
| 46 | $(GSDL_DIR)/runtime-src/src/recpt/cgiargs.cpp \
|
---|
| 47 | $(GSDL_DIR)/runtime-src/src/recpt/cgiutils.cpp \
|
---|
| 48 | $(GSDL_DIR)/runtime-src/src/recpt/htmlutils.cpp \
|
---|
| 49 | abstractlistaction.cpp \
|
---|
| 50 | dublincore.cpp \
|
---|
| 51 | identifyaction.cpp \
|
---|
| 52 | listidsaction.cpp \
|
---|
| 53 | listrecsaction.cpp \
|
---|
| 54 | listsetsaction.cpp \
|
---|
| 55 | metaformat.cpp \
|
---|
| 56 | metaformatsaction.cpp \
|
---|
| 57 | oaiaction.cpp \
|
---|
| 58 | oaiargs.cpp \
|
---|
| 59 | oaiconfig.cpp \
|
---|
| 60 | oaidispatcher.cpp \
|
---|
| 61 | oaimain.cpp \
|
---|
| 62 | oaitools.cpp \
|
---|
| 63 | qualified_dublincore.cpp \
|
---|
| 64 | recordaction.cpp \
|
---|
| 65 | resumptiontoken.cpp \
|
---|
| 66 | rfc1807.cpp
|
---|
| 67 |
|
---|
| 68 | oaiserver_cgi_LDADD = \
|
---|
| 69 | $(GSDL_DIR)/runtime-src/src/protocol/libgsdlprotocol.a \
|
---|
| 70 | $(GSDL_DIR)/runtime-src/src/colservr/libgsdlcolservr.a \
|
---|
| 71 | $(GSDL_DIR)/common-src/src/lib/libgsdllib.a
|
---|
| 72 |
|
---|
| 73 | oaiserver_cgi_LDFLAGS = $(COMPAT32BITFLAGS)
|
---|
| 74 |
|
---|
[21539] | 75 | # Option: Lucene support
|
---|
| 76 | if ENABLE_LUCENE
|
---|
| 77 | oaiserver_cgi_LDADD += $(GSDL_DIR)/common-src/packages/expat/lib/libexpat.a
|
---|
| 78 | endif
|
---|
| 79 |
|
---|
[21502] | 80 | # Option: SQLite support
|
---|
| 81 | if USE_SQLITE
|
---|
| 82 | oaiserver_cgi_LDADD += $(GSDL_DIR)/common-src/packages/sqlite/lib/libsqlite3.a -ldl -lpthread
|
---|
| 83 | endif
|
---|