source: trunk/gsdl/src/colservr/Makefile.in@ 9030

Last change on this file since 9030 was 9029, checked in by davidb, 19 years ago

Used to use sax parsing for lucene support. This is now changed to the more
light weight expat.

  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
File size: 5.0 KB
Line 
1###########################################################################
2#
3# Makefile -- src/colservr
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 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
28AR = ar
29CC = @CC@
30CXX = @CXX@
31CFLAGS = @CFLAGS@
32CXXFLAGS = @CXXFLAGS@
33MCFLAGS = @CFLAGS@ -Wall -Wunused
34DEFS = -DNZDL -DQUIET -DSHORT_SUFFIX -DPARADOCNUM -DGSDLSERVER @DEFS@
35
36USE_FASTCGI = @USE_FASTCGI@
37USE_MGPP = @USE_MGPP@
38ifneq ($(USE_FASTCGI), 1)
39DEFS = -DNZDL -DQUIET -DSHORT_SUFFIX -DPARADOCNUM @DEFS@
40
41CGI_INCLUDES =
42else
43DEFS = -DNZDL -DQUIET -DSHORT_SUFFIX -DPARADOCNUM -DUSE_FASTCGI @DEFS@
44
45CGI_INCLUDES = -I../../packages/fcgi/include
46endif
47
48ifneq ($(USE_MGPP), 1)
49MG_INCLUDES = -I../../packages/mg -I../../packages/mg/lib \
50 -I../../packages/mg/src/text
51MG_HEADERS = mgq.h mgsearch.h mgqueryfilter.h
52
53MG_SOURCES = mgq.c mgsearch.cpp mgqueryfilter.cpp
54
55MG_OBJECTS = mgq.o mgsearch.o mgqueryfilter.o
56MGPP_OBJECTS = mgppsearch.o mgppqueryfilter.o
57
58else
59MG_INCLUDES = -I../mgpp/text -I../mgpp/lib
60
61MG_HEADERS = mgppsearch.h mgppqueryfilter.h
62
63MG_SOURCES = mgppsearch.cpp mgppqueryfilter.cpp
64
65MG_OBJECTS = mgppsearch.o mgppqueryfilter.o
66
67endif
68
69LC_INCLUDES = -I../../packages/expat/include
70LC_HEADERS = lucenesearch.h lucenequeryfilter.h lucenegdbmsource.h \
71 expat_resultset.h
72
73LC_SOURCES = lucenesearch.cpp lucenequeryfilter.cpp lucenegdbmsource.cpp \
74 expat_resultset.cpp
75
76LC_OBJECTS = lucenesearch.o lucenequeryfilter.o lucenegdbmsource.o \
77 expat_resultset.o
78
79INCLUDES = -I. -I../.. -I../../lib -I../recpt \
80 $(CGI_INCLUDES) $(MG_INCLUDES) $(LC_INCLUDES) @GDBM_INCLUDE@
81MICO_DIR = @MICO_DIR@
82ifeq ($(MICO_DIR), default)
83MICO_INC = -I../../packages/mico/include
84MICO_PATH = ../../bin/linux/
85else
86ifeq ($(MICO_DIR), yes)
87MICO_INC =
88MICO_PATH =
89else
90MICO_INC = -I$(MICO_DIR)
91MICO_PATH =
92endif
93endif
94MINCLUDES = -I. -I../../lib -I../recpt -I../mgpp/text $(MICO_INC)
95
96USE_CORBA = @USE_CORBA@
97USE_Z3950 = @USE_Z3950@
98
99RANLIB = @RANLIB@
100LDFLAGS = @LDFLAGS@
101LIBS = @LIBS@
102
103GSDLOS = @gsdlos@
104
105
106COMPILE = $(CC) -c $(CFLAGS) $(DEFS) $(INCLUDES)
107LINK = $(CXX) $(LDFLAGS) -o $@
108
109CXXCOMPILE = $(CXX) -c $(CXXFLAGS) $(DEFS) $(INCLUDES)
110CXXLINK = $(CXX) $(LDFLAGS) -o $@
111
112MCOMPILE = $(MICO_PATH)mico-c++ -x c++ $(MCFLAGS) $(DEFS) $(MINCLUDES) -c
113MLINK = $(MICO_PATH)mico-ld $(LDFLAGS) -lmico2.2.7 -o $@
114
115.SUFFIXES:
116.SUFFIXES: .c .o
117.c.o:
118 $(COMPILE) $<
119
120.SUFFIXES: .cpp .o
121.cpp.o:
122 $(CXXCOMPILE) $<
123
124.SUFFIXES: .mpp .o
125.mpp.o:
126 $(MCOMPILE) $<
127
128ifneq ($(USE_CORBA), 0)
129CORBAHEADERS = \
130 corbaServer.h
131CORBASOURCES = \
132 corbaServer.mpp
133CORBAOBJECTS = \
134 corbaServer.o ../../lib/corbaiface_skel.o
135else
136CORBAHEADERS =
137CORBASOURCES =
138CORBAOBJECTS =
139endif
140
141ifeq ($(USE_Z3950), 1)
142INCLUDES += -I../../packages/yaz2/include
143Z3950HEADERS =
144Z3950SOURCES = z3950server.cpp read-grs.cpp
145Z3950OBJECTS = z3950server.o read-grs.o
146else
147Z3950HEADERS =
148Z3950SOURCES =
149Z3950OBJECTS =
150endif
151
152# following objects need both mg and mgpp stuff - jrm21
153MG_MGPP_OBJECTS=collectset.o
154
155HEADERS = search.h querycache.h queryinfo.h collectserver.h collectset.h \
156 colservrconfig.h maptools.h filter.h source.h browsefilter.h \
157 queryfilter.h mggdbmsource.h phrasesearch.h phrasequeryfilter.h \
158 $(MG_HEADERS) $(LC_HEADERS) $(CORBAHEADERS)
159
160SOURCES = search.cpp querycache.cpp queryinfo.cpp collectserver.cpp \
161 colservrconfig.cpp maptools.cpp filter.cpp source.cpp \
162 browsefilter.cpp queryfilter.cpp mggdbmsource.cpp phrasesearch.cpp \
163 phrasequeryfilter.cpp collectset.cpp \
164 $(MG_SOURCES) $(LC_SOURCES) $(CORBASOURCES)
165
166OBJECTS = search.o querycache.o queryinfo.o collectserver.o \
167 colservrconfig.o maptools.o filter.o source.o browsefilter.o \
168 queryfilter.o mggdbmsource.o phrasesearch.o phrasequeryfilter.o \
169 $(MG_MGPP_OBJECTS) $(MG_OBJECTS) $(LC_OBJECTS) $(CORBAOBJECTS)
170
171all : $(OBJECTS)
172 $(MAKE) USE_MGPP=1 $(MGPP_OBJECTS) $(Z3950OBJECTS)
173
174distclean:
175 rm -f $(OBJECTS) Makefile mgppsearch.o mgppqueryfilter.o
176clean:
177 rm -f $(OBJECTS) mgppsearch.o mgppqueryfilter.o
178
179install:
180
181# needs IndexData.h from mgpp...
182$(MG_MGPP_OBJECTS): %.o : %.cpp
183 $(CXXCOMPILE) -I../mgpp/text -I../mgpp/lib -o $@ $<
184
185depend:
186 makedepend -Y -- $(DEFS) $(INCLUDES) $(CXXFLAGS) -- $(SOURCES)
Note: See TracBrowser for help on using the repository browser.