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

Last change on this file since 9213 was 9213, checked in by kjdon, 19 years ago

added in the new expat_document.o

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