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

Last change on this file since 12927 was 12927, checked in by kjdon, 17 years ago

added in accentfold option

  • Property svn:keywords set to Author Date Id Revision
File size: 5.4 KB
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,2005 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
27# set by configure for each makefile (for vpath etc)
28srcdir = @srcdir@
29gs_srcdir = $(srcdir)/../../src
30recpt_srcdir = $(gs_srcdir)/recpt
31colserv_srcdir = $(gs_srcdir)/colservr
32
33ENABLE_ACCENTFOLD = @ENABLE_ACCENTFOLD@
34ifeq ($(ENABLE_ACCENTFOLD), 1)
35AFLIBS = ../../packages/unac/libunac.a
36AFFLAGS = -DENABLE_ACCENTFOLD
37else
38AFLIBS =
39AFFLAGS =
40endif
41
42AR = ar
43CPP = @CXX@
44INSTALL = @INSTALL@
45
46CXXFLAGS = $(AFFLAGS) @CXXFLAGS@
47EXEEXT = @EXEEXT@
48
49
50# -I../../packages/mg -I../../packages/mg/lib -I../../packages/mg/src/text ?
51INCLUDES = -I$(srcdir)/../../lib -I$(colserv_srcdir) -I$(gs_srcdir)/mgpp/lib -I$(gs_srcdir)/mgpp/text -I$(recpt_srcdir)
52
53
54LDFLAGS = @LDFLAGS@
55# need this for linking against recpt/infodbclass.o etc
56GDBM_LIBS=@GDBM_LIBPATH@ -lgdbm
57LIBS = $(GDBM_LIBS) $(AFLIBS) @LIBS@ -L../../packages/expat/lib -lexpat
58
59
60CXXCOMPILE = $(CPP) -c $(CXXFLAGS) $(INCLUDES)
61CXXLINK = $(CPP) $(LDFLAGS)
62
63EXEC = oaiserver$(EXEEXT)
64
65all: $(EXEC)
66
67# needed to clear builtin rules?
68#.SUFFIXES:
69
70.SUFFIXES: .cpp .o
71.cpp.o:
72 $(CXXCOMPILE) -o $@ $<
73
74
75COMMONHEADERS = oaiargs.h oaiaction.h oaidispatcher.h oaiconfig.h identityaction.h recordaction.h \
76 listrecsaction.h listidsaction.h listsetsaction.h metaformatsaction.h oaitools.h \
77 abstractlistaction.h metaformat.h dublincore.h rfc1807.h resumptiontoken.h
78
79ifeq ($(USE_CORBA), 1)
80LIBRARYHEADERS = nullproto.h z3950proto.h z3950server.h corbaproto.h
81else
82LIBRARYHEADERS = nullproto.h z3950proto.h z3950server.h
83endif
84
85HEADERS = $(COMMONHEADERS) $(LIBRARYHEADERS)
86
87
88COMMONSOURCES = oaiargs.cpp oaiaction.cpp oaidispatcher.cpp oaiconfig.cpp identityaction.cpp recordaction.cpp \
89 abstractlistaction.cpp listrecsaction.cpp listidsaction.cpp listsetsaction.cpp \
90 metaformatsaction.cpp oaitools.cpp metaformat.cpp dublincore.cpp rfc1807.cpp \
91 resumptiontoken.cpp
92
93OAISOURCES =
94
95SOURCES = $(COMMONSOURCES) $(OAISOURCES)
96
97RECPTOBJECTS = ../../src/recpt/comtypes.o ../../src/recpt/OIDtools.o \
98 ../../src/recpt/nullproto.o ../../src/recpt/recptproto.o \
99 ../../src/recpt/htmlutils.o ../../src/recpt/infodbclass.o \
100 ../../src/recpt/recptconfig.o ../../src/recpt/cgiargs.o \
101 ../../src/recpt/cgiutils.o
102
103COMMONOBJECTS = oaiargs.o oaiaction.o oaiconfig.o oaidispatcher.o \
104 identityaction.o recordaction.o abstractlistaction.o listrecsaction.o \
105 listidsaction.o listsetsaction.o metaformatsaction.o oaitools.o \
106 metaformat.o dublincore.o rfc1807.o resumptiontoken.o
107
108OAIOBJECTS = oaimain.o
109
110OBJECTS = $(COMMONOBJECTS) $(RECPTOBJECTS) $(OAIOBJECTS)
111
112
113COLSERVROBJECTS = ../../src/colservr/mgq.o \
114 ../../src/colservr/search.o \
115 ../../src/colservr/mgsearch.o \
116 ../../src/colservr/querycache.o \
117 ../../src/colservr/queryinfo.o \
118 ../../src/colservr/collectserver.o \
119 ../../src/colservr/colservrconfig.o \
120 ../../src/colservr/maptools.o \
121 ../../src/colservr/filter.o \
122 ../../src/colservr/source.o \
123 ../../src/colservr/browsefilter.o \
124 ../../src/colservr/queryfilter.o \
125 ../../src/colservr/gdbmsource.o \
126 ../../src/colservr/mggdbmsource.o \
127 ../../src/colservr/phrasesearch.o \
128 ../../src/colservr/phrasequeryfilter.o \
129 ../../src/colservr/mgqueryfilter.o \
130 ../../src/colservr/mgppsearch.o \
131 ../../src/colservr/mgppqueryfilter.o \
132 ../../src/colservr/collectset.o \
133 ../../src/colservr/lucenesearch.o \
134 ../../src/colservr/lucenequeryfilter.o \
135 ../../src/colservr/lucenegdbmsource.o \
136 ../../src/colservr/expat_resultset.o \
137 ../../src/colservr/expat_document.o
138
139distclean:
140 rm -f $(COMMONOBJECTS) $(OAIOBJECTS) $(EXEC) Makefile
141
142clean:
143 rm -f $(COMMONOBJECTS) $(OAIOBJECTS) $(EXEC)
144
145install:
146 $(INSTALL) -m 755 -s $(EXEC) ../../cgi-bin
147
148depend:
149 makedepend -Y -- $(DEFS) $(INCLUDES) $(CXXFLAGS) -- $(SOURCES)
150
151# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
152
153OAI_OBJS = $(OBJECTS) $(COLSERVROBJECTS) \
154 ../../lib/gsdllib.a \
155 ../../packages/mg/src/text/libtextin.a \
156 ../../packages/mg/lib/libmg.a \
157 ../../src/mgpp/text/libtextin.a \
158 ../../src/mgpp/lib/libmg.a
159
160oaiserver$(EXEEXT): $(OAI_OBJS)
161 $(CXXLINK) -o $@ $(OAI_OBJS) $(LIBS)
162
163
164
165
166
Note: See TracBrowser for help on using the repository browser.