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

Last change on this file since 15457 was 15457, checked in by mdewsnip, 16 years ago

Big tidy up of Makefile.

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