########################################################################### # # Makefile -- Makefile for runtime-src/src/oaiservr # # A component of the Greenstone digital library software # from the New Zealand Digital Library Project at the # University of Waikato, New Zealand. # # Copyright (C) 1999-2010 The New Zealand Digital Library Project # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. # ########################################################################### RUNTIME_SRC_DIR = @top_srcdir@ GSDL_DIR = $(RUNTIME_SRC_DIR)/.. # Programs compiled and their install directories cgibindir = $(GSDL_DIR)/cgi-bin cgibin_PROGRAMS = oaiserver.cgi # Program: oaiserver.cgi oaiserver_cgi_CPPFLAGS = \ -I$(GSDL_DIR)/common-src/src/lib \ -I$(GSDL_DIR)/runtime-src/src/colservr \ -I$(GSDL_DIR)/runtime-src/src/protocol \ -I$(GSDL_DIR)/runtime-src/src/recpt \ $(COMPAT32BITFLAGS) # Sources for oaiserver.cgi oaiserver_cgi_SOURCES = \ $(GSDL_DIR)/runtime-src/src/recpt/cgiargs.cpp \ $(GSDL_DIR)/runtime-src/src/recpt/cgiutils.cpp \ $(GSDL_DIR)/runtime-src/src/recpt/htmlutils.cpp \ abstractlistaction.cpp \ dublincore.cpp \ identifyaction.cpp \ listidsaction.cpp \ listrecsaction.cpp \ listsetsaction.cpp \ metaformat.cpp \ metaformatsaction.cpp \ oaiaction.cpp \ oaiargs.cpp \ oaiconfig.cpp \ oaidispatcher.cpp \ oaimain.cpp \ oaitools.cpp \ qualified_dublincore.cpp \ recordaction.cpp \ resumptiontoken.cpp \ rfc1807.cpp oaiserver_cgi_LDADD = \ $(GSDL_DIR)/runtime-src/src/protocol/libgsdlprotocol.a \ $(GSDL_DIR)/runtime-src/src/colservr/libgsdlcolservr.a \ $(GSDL_DIR)/common-src/src/lib/libgsdllib.a oaiserver_cgi_LDFLAGS = $(COMPAT32BITFLAGS) # Option: Lucene support if ENABLE_LUCENE oaiserver_cgi_LDADD += $(GSDL_DIR)/common-src/packages/expat/lib/libexpat.a endif # Option: SQLite support if USE_SQLITE oaiserver_cgi_LDADD += $(GSDL_DIR)/common-src/packages/sqlite/lib/libsqlite3.a -ldl -lpthread endif