source: branches/corba/gsdl/src/colservr/Makefile.in@ 1067

Last change on this file since 1067 was 1067, checked in by cs025, 24 years ago

Corba first commit

  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
File size: 3.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@
31CCFLAGS = @CFLAGS@ -Wall -Wunused -pedantic -W -Woverloaded-virtual
32MCFLAGS = @CFLAGS@ -Wall -Wunused
33DEFS = -DNZDL -DQUIET -DSHORT_SUFFIX -DPARADOCNUM -DGSDLSERVER @DEFS@
34
35USE_FASTCGI = @USE_FASTCGI@
36ifneq ($(USE_FASTCGI), 1)
37INCLUDES = -I. -I../.. -I../../lib -I../recpt -I../../packages/mg \
38 -I../../packages/mg/lib -I../../packages/mg/src/text
39else
40INCLUDES = -I. -I../../lib -I../recpt -I../../packages/mg \
41 -I../../packages/mg/lib -I../../packages/mg/src/text \
42 -I../../packages/fcgi/include
43endif
44
45USE_CORBA = @USE_CORBA@
46
47RANLIB = @RANLIB@
48LDFLAGS = @LDFLAGS@
49LIBS = -lgdbm -lstdc++ -lm
50
51GSDLOS = @gsdlos@
52
53
54COMPILE = $(CC) -c $(CCFLAGS) $(DEFS) $(INCLUDES)
55LINK = $(CPP) $(LDFLAGS) -o $@
56
57CPPCOMPILE = $(CC) -c $(CCFLAGS) $(DEFS) $(INCLUDES)
58CPPLINK = $(CPP) $(LDFLAGS) -o $@
59
60MCOMPILE = mico-c++ -x c++ $(MCFLAGS) $(DEFS) $(INCLUDES) -c
61MLINK = mico-ld $(LDFLAGS) -lmico2.2.7 -o $@
62
63.SUFFIXES:
64.SUFFIXES: .c .o
65.c.o:
66 $(COMPILE) $<
67
68.SUFFIXES: .cpp .o
69.cpp.o:
70 $(CPPCOMPILE) $<
71
72.SUFFIXES: .mpp .o
73.mpp.o:
74 $(MCOMPILE) $<
75
76ifneq ($(USE_CORBA), 0)
77CORBAHEADERS = \
78 corbaServer.h
79CORBASOURCES = \
80 corbaServer.mpp
81CORBAOBJECTS = \
82 corbaServer.o
83else
84CORBAHEADERS =
85CORBASOURCES =
86CORBAOBJECTS =
87endif
88
89HEADERS = mgq.h mgsearch.h querycache.h queryinfo.h collectserver.h \
90 colservrconfig.h maptools.h filter.h source.h browsefilter.h \
91 queryfilter.h mggdbmsource.h phrasesearch.h phrasequeryfilter.h \
92 collectset.h $(CORBAHEADERS)
93
94SOURCES = mgq.c mgsearch.cpp querycache.cpp queryinfo.cpp collectserver.cpp \
95 colservrconfig.cpp maptools.cpp filter.cpp source.cpp \
96 browsefilter.cpp queryfilter.cpp mggdbmsource.cpp phrasesearch.cpp \
97 phrasequeryfilter.cpp collectset.cpp $(CORBASOURCES)
98
99OBJECTS = mgq.o mgsearch.o querycache.o queryinfo.o collectserver.o \
100 colservrconfig.o maptools.o filter.o source.o browsefilter.o \
101 queryfilter.o mggdbmsource.o phrasesearch.o phrasequeryfilter.o \
102 collectset.o $(CORBAOBJECTS)
103
104all : $(OBJECTS)
105
106clean:
107 rm -f $(OBJECTS)
108
109install:
110
111depend:
112 makedepend -Y -- $(DEFS) $(INCLUDES) $(CCFLAGS) -- $(SOURCES)
113
114
Note: See TracBrowser for help on using the repository browser.