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

Last change on this file since 2703 was 2703, checked in by jrm21, 23 years ago

Updated to successfully make with Kathy's latest changes (some files need
both mg and mgpp headers at the same time). Also cleaned up all the CC/CXX
variable names.

  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
File size: 4.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
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
69INCLUDES = -I. -I../.. -I../../lib -I../recpt \
70 $(CGI_INCLUDES) $(MG_INCLUDES) @GDBM_INCLUDE@
71MICO_DIR = @MICO_DIR@
72ifeq ($(MICO_DIR), default)
73MICO_INC = -I../../packages/mico/include
74MICO_PATH = ../../bin/linux/
75else
76ifeq ($(MICO_DIR), yes)
77MICO_INC =
78MICO_PATH =
79else
80MICO_INC = -I$(MICO_DIR)
81MICO_PATH =
82endif
83endif
84MINCLUDES = -I. -I../../lib -I../recpt $(MICO_INC)
85
86USE_CORBA = @USE_CORBA@
87
88RANLIB = @RANLIB@
89LDFLAGS = @LDFLAGS@
90LIBS = @LIBS@
91
92GSDLOS = @gsdlos@
93
94
95COMPILE = $(CC) -c $(CFLAGS) $(DEFS) $(INCLUDES)
96LINK = $(CXX) $(LDFLAGS) -o $@
97
98CXXCOMPILE = $(CXX) -c $(CXXFLAGS) $(DEFS) $(INCLUDES)
99CXXLINK = $(CXX) $(LDFLAGS) -o $@
100
101MCOMPILE = $(MICO_PATH)mico-c++ -x c++ $(MCFLAGS) $(DEFS) $(MINCLUDES) -c
102MLINK = $(MICO_PATH)mico-ld $(LDFLAGS) -lmico2.2.7 -o $@
103
104.SUFFIXES:
105.SUFFIXES: .c .o
106.c.o:
107 $(COMPILE) $<
108
109.SUFFIXES: .cpp .o
110.cpp.o:
111 $(CXXCOMPILE) $<
112
113.SUFFIXES: .mpp .o
114.mpp.o:
115 $(MCOMPILE) $<
116
117ifneq ($(USE_CORBA), 0)
118CORBAHEADERS = \
119 corbaServer.h
120CORBASOURCES = \
121 corbaServer.mpp
122CORBAOBJECTS = \
123 corbaServer.o ../../lib/corbaiface_skel.o
124else
125CORBAHEADERS =
126CORBASOURCES =
127CORBAOBJECTS =
128endif
129
130# following objects need both mg and mgpp stuff - jrm21
131MG_MGPP_OBJECTS=collectset.o
132
133HEADERS = search.h querycache.h queryinfo.h collectserver.h collectset.h \
134 colservrconfig.h maptools.h filter.h source.h browsefilter.h \
135 queryfilter.h mggdbmsource.h phrasesearch.h phrasequeryfilter.h \
136 $(MG_HEADERS) $(CORBAHEADERS)
137
138SOURCES = search.cpp querycache.cpp queryinfo.cpp collectserver.cpp \
139 colservrconfig.cpp maptools.cpp filter.cpp source.cpp \
140 browsefilter.cpp queryfilter.cpp mggdbmsource.cpp phrasesearch.cpp \
141 phrasequeryfilter.cpp collectset.cpp \
142 $(MG_SOURCES) $(CORBASOURCES)
143
144OBJECTS = search.o querycache.o queryinfo.o collectserver.o \
145 colservrconfig.o maptools.o filter.o source.o browsefilter.o \
146 queryfilter.o mggdbmsource.o phrasesearch.o phrasequeryfilter.o \
147 $(MG_MGPP_OBJECTS) $(MG_OBJECTS) $(CORBAOBJECTS)
148
149all : $(OBJECTS)
150 $(MAKE) USE_MGPP=1 $(MGPP_OBJECTS)
151
152distclean:
153 rm -f $(OBJECTS) Makefile mgppsearch.o mgppqueryfilter.o
154clean:
155 rm -f $(OBJECTS) mgppsearch.o mgppqueryfilter.o
156
157install:
158
159# needs IndexData.h from mgpp...
160$(MG_MGPP_OBJECTS): %.o : %.cpp
161 $(CXXCOMPILE) -I../mgpp/text -I../mgpp/lib -o $@ $<
162
163depend:
164 makedepend -Y -- $(DEFS) $(INCLUDES) $(CXXFLAGS) -- $(SOURCES)
Note: See TracBrowser for help on using the repository browser.