source: main/trunk/greenstone2/runtime-src/src/oaiservr/Makefile.in@ 22925

Last change on this file since 22925 was 22378, checked in by sjm84, 14 years ago

Greenstone 2 now compiles and installs on 64-bit linux machines

  • Property svn:keywords set to Author Date Id Revision
File size: 4.6 KB
RevLine 
[8182]1###########################################################################
2#
[18226]3# Makefile -- runtime-src/src/oaiservr
[8182]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
[16563]27GSDL_DIR = ../../..
[16572]28COMMON_DIR = $(GSDL_DIR)/common-src
29RUNTIME_DIR = $(GSDL_DIR)/runtime-src
[8182]30
[16563]31INDEXERS_DIR = $(COMMON_DIR)/indexers
[16779]32COMMON_PACKAGES_DIR = $(COMMON_DIR)/packages
[16563]33COLSERVR_DIR = $(RUNTIME_DIR)/src/colservr
34PROTOCOL_DIR = $(RUNTIME_DIR)/src/protocol
35RECPT_DIR = $(RUNTIME_DIR)/src/recpt
[15476]36
[16563]37
[12927]38ENABLE_ACCENTFOLD = @ENABLE_ACCENTFOLD@
39ifeq ($(ENABLE_ACCENTFOLD), 1)
[22378]40ifeq ($(COMPAT32BITFLAGS),)
[20851]41ACCENTFOLD_LIBS = $(INDEXERS_DIR)/packages/unac/libunac.a $(COMMON_PACKAGES_DIR)/iconv/lib/libiconv.a
[12927]42else
[22378]43ACCENTFOLD_LIBS = $(INDEXERS_DIR)/packages/unac/libunac.a $(COMMON_PACKAGES_DIR)/iconv/lib64/libiconv.a
44endif
45else
[15457]46ACCENTFOLD_LIBS =
[12927]47endif
48
[21324]49
50ENABLE_MG = @ENABLE_MG@
51ifeq ($(ENABLE_MG), 1)
52MG_INDEXERS_LIBS = $(INDEXERS_DIR)/mg/src/text/libmgtext.a \
53 $(INDEXERS_DIR)/mg/lib/libmglib.a
54else
55MG_INDEXERS_LIBS =
56endif
57
58ENABLE_MGPP = @ENABLE_MGPP@
59ifeq ($(ENABLE_MGPP), 1)
60MGPP_INDEXERS_LIBS = $(INDEXERS_DIR)/mgpp/text/libmgpptext.a \
61 $(INDEXERS_DIR)/mgpp/lib/libmgpplib.a
62MGPP_INCLUDES = -I$(INDEXERS_DIR)/mgpp/text
63else
64MGPP_INDEXERS_LIBS =
65MGPP_INCLUDES =
66endif
67
[22058]68USE_GDBM = @USE_GDBM@
69ifeq ($(USE_GDBM), 1)
70GDBM_DEFINES = -DUSE_GDBM
[22078]71GDBM_LIBS = $(COMMON_PACKAGES_DIR)/gdbm/lib/libgdbm.a
[22058]72else
73GDBM_DEFINES =
[22078]74GDBM_LIBS =
[22058]75endif
[21324]76
[22058]77USE_JDBM = @USE_JDBM@
78ifeq ($(USE_JDBM), 1)
79JDBM_DEFINES = -DUSE_JDBM
80else
81JDBM_DEFINES =
82endif
83
[15786]84USE_SQLITE = @USE_SQLITE@
85ifeq ($(USE_SQLITE), 1)
[22058]86SQLITE_DEFINES = -DUSE_SQLITE
[18226]87SQLITE_LIBS = $(COMMON_PACKAGES_DIR)/sqlite/lib/libsqlite3.a -ldl -lpthread
[15786]88else
89SQLITE_LIBS =
[22058]90SQLITE_DEFINES =
[15786]91endif
92
93
[15551]94CC = @CC@
95CFLAGS = @CFLAGS@ @COMPAT32BITFLAGS@
96CXX = @CXX@
97CXXFLAGS = @CXXFLAGS@ @COMPAT32BITFLAGS@
[22058]98DEFS = @DEFS@ $(GDBM_DEFINES) $(JDBM_DEFINES) $(SQLITE_DEFINES)
[21324]99INCLUDES = -I$(COMMON_DIR)/src/lib -I$(COLSERVR_DIR) -I$(PROTOCOL_DIR) -I$(RECPT_DIR) $(MGPP_INCLUDES)
[15551]100LDFLAGS = @LDFLAGS@ @COMPAT32BITFLAGS@
[22078]101LIBS = @LIBS@ $(GDBM_LIBS) -L$(COMMON_PACKAGES_DIR)/expat/lib -lexpat \
[18226]102 $(ACCENTFOLD_LIBS) $(SQLITE_LIBS)
[8877]103INSTALL = @INSTALL@
[8182]104
[15482]105
[22058]106CXXCOMPILE = $(CXX) -c $(CXXFLAGS) $(DEFS) $(INCLUDES)
[15551]107CXXLINK = $(CXX) $(LDFLAGS) -o $@
[8182]108
109
[15457]110.SUFFIXES:
[8182]111.SUFFIXES: .cpp .o
112.cpp.o:
[15551]113 $(CXXCOMPILE) -o $@ $<
[8182]114
115
[15457]116RECPT_OBJECTS = \
117 $(RECPT_DIR)/cgiargs.o \
118 $(RECPT_DIR)/cgiutils.o \
[15574]119 $(RECPT_DIR)/htmlutils.o
[8182]120
[15457]121SOURCES = \
122 abstractlistaction.cpp \
123 dublincore.cpp \
[18858]124 qualified_dublincore.cpp \
[15844]125 identifyaction.cpp \
[15457]126 listidsaction.cpp \
127 listrecsaction.cpp \
128 listsetsaction.cpp \
129 metaformat.cpp \
130 metaformatsaction.cpp \
131 oaiaction.cpp \
132 oaiargs.cpp \
133 oaiconfig.cpp \
134 oaidispatcher.cpp \
135 oaimain.cpp \
136 oaitools.cpp \
137 recordaction.cpp \
138 resumptiontoken.cpp \
139 rfc1807.cpp
[8182]140
[15457]141OBJECTS = \
142 abstractlistaction.o \
143 dublincore.o \
[18858]144 qualified_dublincore.o \
[15844]145 identifyaction.o \
[15457]146 listidsaction.o \
147 listrecsaction.o \
148 listsetsaction.o \
149 metaformat.o \
150 metaformatsaction.o \
151 oaiaction.o \
152 oaiargs.o \
153 oaiconfig.o \
154 oaidispatcher.o \
155 oaimain.o \
156 oaitools.o \
157 recordaction.o \
158 resumptiontoken.o \
159 rfc1807.o
[8182]160
[15457]161GSDL_LIBS = \
[15489]162 $(PROTOCOL_DIR)/gsdlprotocol.a \
[15482]163 $(COLSERVR_DIR)/gsdlcolservr.a \
[21324]164 $(MG_INDEXERS_LIBS) \
165 $(MGPP_INDEXERS_LIBS) \
[16563]166 $(COMMON_DIR)/src/lib/gsdllib.a
[8182]167
[15482]168EXECUTABLE_OBJECTS = \
[15457]169 $(OBJECTS) \
170 $(RECPT_OBJECTS) \
171 $(GSDL_LIBS)
[8182]172
[18613]173EXECUTABLE = oaiserver.cgi
[8182]174
175
[15579]176# Default target: make the oaiserver executable
177all: $(EXECUTABLE)
178
[18613]179$(EXECUTABLE): $(EXECUTABLE_OBJECTS)
[15551]180 $(CXXLINK) $(EXECUTABLE_OBJECTS) $(LIBS)
[8182]181
[15482]182install: $(EXECUTABLE)
183 $(INSTALL) -m 755 -s $(EXECUTABLE) $(GSDL_DIR)/cgi-bin
[8182]184
[15468]185clean:
[15482]186 rm -f $(OBJECTS) $(EXECUTABLE)
[15468]187
[8182]188distclean:
[15482]189 rm -f $(OBJECTS) $(EXECUTABLE) Makefile
[8182]190
191depend:
[15551]192 makedepend -Y -- $(DEFS) $(INCLUDES) $(CXXFLAGS) -- $(SOURCES)
Note: See TracBrowser for help on using the repository browser.