source: branches/changing-indexers-branch/gsdl/src/colservr/Makefile.in@ 13721

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

mg, mgpp, unac now come from external repository which is checked out into gsdl/indexers. so had to change all the paths for includes and links

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