source: gsdl/trunk/src/oaiservr/Makefile.in@ 15551

Last change on this file since 15551 was 15551, checked in by davidb, 16 years ago

Introduction of COMPAT32BITFLAGS to confirugre and Makefile.in files to help compile Greenstone on a 64-bit machine

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