root/gsdl/trunk/src/oaiservr/Makefile.in @ 15476

Revision 15476, 4.2 KB (checked in by mdewsnip, 12 years ago)

Minor whitespace improvement.

  • Property svn:keywords set to Author Date Id Revision
Line 
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#
8# Copyright (C) 1999-2008  The New Zealand Digital Library Project
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
27GSDL_DIR = ../..
28INDEXERS_DIR = $(GSDL_DIR)/indexers
29COLSERVR_DIR = $(GSDL_DIR)/src/colservr
30PROTOCOL_DIR = $(GSDL_DIR)/src/protocol
31RECPT_DIR = $(GSDL_DIR)/src/recpt
32
33
34ENABLE_ACCENTFOLD = @ENABLE_ACCENTFOLD@
35ifeq ($(ENABLE_ACCENTFOLD), 1)
36ACCENTFOLD_LIBS = $(INDEXERS_DIR)/packages/unac/libunac.a
37else
38ACCENTFOLD_LIBS =
39endif
40
41
42CPP = @CXX@
43CPPFLAGS = @CXXFLAGS@
44INCLUDES = -I$(GSDL_DIR)/lib -I$(COLSERVR_DIR) -I$(PROTOCOL_DIR) -I$(RECPT_DIR) -I$(INDEXERS_DIR)/mgpp/text
45LDFLAGS = @LDFLAGS@
46LIBS = @LIBS@ @GDBM_LIBPATH@ -lgdbm -L$(GSDL_DIR)/packages/expat/lib -lexpat $(ACCENTFOLD_LIBS)
47INSTALL = @INSTALL@
48
49CPPCOMPILE = $(CPP) -c $(CPPFLAGS) $(INCLUDES)
50CPPLINK = $(CPP) $(LDFLAGS) -o $@
51
52
53.SUFFIXES:
54.SUFFIXES: .cpp .o
55.cpp.o:
56    $(CPPCOMPILE) -o $@ $<
57
58
59COLSERVR_OBJECTS = \
60    $(COLSERVR_DIR)/comtypes.o \
61    $(COLSERVR_DIR)/mgq.o \
62    $(COLSERVR_DIR)/search.o \
63        $(COLSERVR_DIR)/mgsearch.o \
64        $(COLSERVR_DIR)/querycache.o \
65        $(COLSERVR_DIR)/queryinfo.o \
66        $(COLSERVR_DIR)/collectserver.o \
67        $(COLSERVR_DIR)/colservrconfig.o \
68        $(COLSERVR_DIR)/maptools.o \
69        $(COLSERVR_DIR)/filter.o \
70        $(COLSERVR_DIR)/source.o \
71        $(COLSERVR_DIR)/browsefilter.o \
72        $(COLSERVR_DIR)/queryfilter.o \
73        $(COLSERVR_DIR)/gdbmsource.o \
74        $(COLSERVR_DIR)/mggdbmsource.o \
75        $(COLSERVR_DIR)/phrasesearch.o \
76        $(COLSERVR_DIR)/phrasequeryfilter.o \
77    $(COLSERVR_DIR)/mgqueryfilter.o \
78    $(COLSERVR_DIR)/mgppsearch.o \
79    $(COLSERVR_DIR)/mgppqueryfilter.o \
80    $(COLSERVR_DIR)/collectset.o \
81    $(COLSERVR_DIR)/lucenesearch.o \
82    $(COLSERVR_DIR)/lucenequeryfilter.o \
83    $(COLSERVR_DIR)/lucenegdbmsource.o \
84    $(COLSERVR_DIR)/expat_resultset.o \
85    $(COLSERVR_DIR)/expat_document.o
86
87PROTOCOL_OBJECTS = \
88    $(PROTOCOL_DIR)/nullproto.o \
89    $(PROTOCOL_DIR)/recptproto.o
90
91RECPT_OBJECTS = \
92    $(RECPT_DIR)/cgiargs.o \
93    $(RECPT_DIR)/cgiutils.o \
94    $(RECPT_DIR)/htmlutils.o \
95    $(RECPT_DIR)/recptprototools.o
96
97SOURCES = \
98    abstractlistaction.cpp \
99    dublincore.cpp \
100    identityaction.cpp \
101    listidsaction.cpp \
102    listrecsaction.cpp \
103    listsetsaction.cpp \
104    metaformat.cpp \
105    metaformatsaction.cpp \
106    oaiaction.cpp \
107    oaiargs.cpp \
108    oaiconfig.cpp \
109    oaidispatcher.cpp \
110    oaimain.cpp \
111    oaitools.cpp \
112    recordaction.cpp \
113    resumptiontoken.cpp \
114    rfc1807.cpp
115
116OBJECTS = \
117    abstractlistaction.o \
118    dublincore.o \
119    identityaction.o \
120    listidsaction.o \
121    listrecsaction.o \
122    listsetsaction.o \
123    metaformat.o \
124    metaformatsaction.o \
125    oaiaction.o \
126    oaiargs.o \
127    oaiconfig.o \
128    oaidispatcher.o \
129    oaimain.o \
130    oaitools.o \
131    recordaction.o \
132    resumptiontoken.o \
133    rfc1807.o
134
135GSDL_LIBS = \
136    $(GSDL_DIR)/lib/gsdllib.a  \
137    $(INDEXERS_DIR)/mg/src/text/libmgtext.a \
138    $(INDEXERS_DIR)/mg/lib/libmglib.a \
139    $(INDEXERS_DIR)/mgpp/text/libmgpptext.a \
140    $(INDEXERS_DIR)/mgpp/lib/libmgpplib.a
141
142EXEC_OBJECTS = \
143    $(OBJECTS) \
144    $(RECPT_OBJECTS) \
145    $(PROTOCOL_OBJECTS) \
146    $(COLSERVR_OBJECTS) \
147    $(GSDL_LIBS)
148
149EXEC = oaiserver
150
151
152oaiserver: $(EXEC_OBJECTS)
153    $(CPPLINK) $(EXEC_OBJECTS) $(LIBS)
154
155all: $(EXEC)
156
157install: $(EXEC)
158    $(INSTALL) -m 755 -s $(EXEC) $(GSDL_DIR)/cgi-bin
159
160clean:
161    rm -f $(OBJECTS) $(EXEC)
162
163distclean:
164    rm -f $(OBJECTS) $(EXEC) Makefile
165
166depend:
167    makedepend -Y -- $(DEFS) $(INCLUDES) $(CPPFLAGS) -- $(SOURCES)
Note: See TracBrowser for help on using the browser.