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

Last change on this file since 2173 was 2173, checked in by cs025, 23 years ago

Improvements to configure scripts in their support of various MICO
environment considerations, particularly when MICO is on the system
paths.

Fixed CORBA version of ping to correspond with parameters etc. of the
native form.

Finally, improved PING action to be more than a simple call to
the HASCOLLECTION action in the null protocol.

  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
File size: 4.2 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@
30CPP = @CXX@
31#CCFLAGS = @CFLAGS@ -Wall -Wunused -pedantic -W -Woverloaded-virtual
32CCFLAGS = @CFLAGS@
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)
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 $(CCFLAGS) $(DEFS) $(INCLUDES)
96LINK = $(CPP) $(LDFLAGS) -o $@
97
98CPPCOMPILE = $(CC) -c $(CCFLAGS) $(DEFS) $(INCLUDES)
99CPPLINK = $(CPP) $(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 $(CPPCOMPILE) $<
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
130HEADERS = search.h querycache.h queryinfo.h collectserver.h collectset.h \
131 colservrconfig.h maptools.h filter.h source.h browsefilter.h \
132 queryfilter.h mggdbmsource.h phrasesearch.h phrasequeryfilter.h \
133 $(MG_HEADERS) $(CORBAHEADERS)
134
135SOURCES = search.cpp querycache.cpp queryinfo.cpp collectserver.cpp \
136 colservrconfig.cpp maptools.cpp filter.cpp source.cpp \
137 browsefilter.cpp queryfilter.cpp mggdbmsource.cpp phrasesearch.cpp \
138 phrasequeryfilter.cpp collectset.cpp \
139 $(MG_SOURCES) $(CORBASOURCES)
140
141OBJECTS = search.o querycache.o queryinfo.o collectserver.o \
142 colservrconfig.o maptools.o filter.o source.o browsefilter.o \
143 queryfilter.o mggdbmsource.o phrasesearch.o phrasequeryfilter.o \
144 collectset.o $(MG_OBJECTS) $(CORBAOBJECTS)
145
146all : $(OBJECTS)
147 $(MAKE) USE_MGPP=1 $(MGPP_OBJECTS)
148
149distclean:
150 rm -f $(OBJECTS) Makefile mgppsearch.o mgppqueryfilter.o
151clean:
152 rm -f $(OBJECTS) mgppsearch.o mgppqueryfilter.o
153
154install:
155
156depend:
157 makedepend -Y -- $(DEFS) $(INCLUDES) $(CCFLAGS) -- $(SOURCES)
Note: See TracBrowser for help on using the repository browser.