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

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

Included CORBA branch for first time

  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
File size: 4.1 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
74else
75ifeq ($(MICO_DIR), yes)
76MICO_INC =
77else
78MICO_INC = -I$(MICO_DIR)
79endif
80endif
81MINCLUDES = -I. -I../../lib -I../recpt $(MICO_INC)
82
83USE_CORBA = @USE_CORBA@
84
85RANLIB = @RANLIB@
86LDFLAGS = @LDFLAGS@
87LIBS = @LIBS@
88
89GSDLOS = @gsdlos@
90
91
92COMPILE = $(CC) -c $(CCFLAGS) $(DEFS) $(INCLUDES)
93LINK = $(CPP) $(LDFLAGS) -o $@
94
95CPPCOMPILE = $(CC) -c $(CCFLAGS) $(DEFS) $(INCLUDES)
96CPPLINK = $(CPP) $(LDFLAGS) -o $@
97
98MCOMPILE = mico-c++ -x c++ $(MCFLAGS) $(DEFS) $(MINCLUDES) -c
99MLINK = mico-ld $(LDFLAGS) -lmico2.2.7 -o $@
100
101.SUFFIXES:
102.SUFFIXES: .c .o
103.c.o:
104 $(COMPILE) $<
105
106.SUFFIXES: .cpp .o
107.cpp.o:
108 $(CPPCOMPILE) $<
109
110.SUFFIXES: .mpp .o
111.mpp.o:
112 $(MCOMPILE) $<
113
114ifneq ($(USE_CORBA), 0)
115CORBAHEADERS = \
116 corbaServer.h
117CORBASOURCES = \
118 corbaServer.mpp
119CORBAOBJECTS = \
120 corbaServer.o
121else
122CORBAHEADERS =
123CORBASOURCES =
124CORBAOBJECTS =
125endif
126
127HEADERS = search.h querycache.h queryinfo.h collectserver.h collectset.h \
128 colservrconfig.h maptools.h filter.h source.h browsefilter.h \
129 queryfilter.h mggdbmsource.h phrasesearch.h phrasequeryfilter.h \
130 $(MG_HEADERS) $(CORBAHEADERS)
131
132SOURCES = search.cpp querycache.cpp queryinfo.cpp collectserver.cpp \
133 colservrconfig.cpp maptools.cpp filter.cpp source.cpp \
134 browsefilter.cpp queryfilter.cpp mggdbmsource.cpp phrasesearch.cpp \
135 phrasequeryfilter.cpp collectset.cpp \
136 $(MG_SOURCES) $(CORBASOURCES)
137
138OBJECTS = search.o querycache.o queryinfo.o collectserver.o \
139 colservrconfig.o maptools.o filter.o source.o browsefilter.o \
140 queryfilter.o mggdbmsource.o phrasesearch.o phrasequeryfilter.o \
141 collectset.o $(MG_OBJECTS) $(CORBAOBJECTS)
142
143all : $(OBJECTS)
144 make USE_MGPP=1 $(MGPP_OBJECTS)
145
146distclean:
147 rm -f $(OBJECTS) Makefile mgppsearch.o mgppqueryfilter.o
148clean:
149 rm -f $(OBJECTS) mgppsearch.o mgppqueryfilter.o
150
151install:
152
153depend:
154 makedepend -Y -- $(DEFS) $(INCLUDES) $(CCFLAGS) -- $(SOURCES)
Note: See TracBrowser for help on using the repository browser.