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

Revision 15422, 5.4 KB (checked in by mdewsnip, 12 years ago)

The infodbclass is no longer in src/recpt.

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