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

Last change on this file since 15448 was 15448, checked in by mdewsnip, 16 years ago

Removed a whole heap of unnecessary stuff from Makefile.in.

  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
File size: 4.5 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-2008 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
27CC = @CC@
28CXX = @CXX@
29CFLAGS = @CFLAGS@
30CXXFLAGS = @CXXFLAGS@
31DEFS = -DNZDL -DQUIET -DSHORT_SUFFIX -DPARADOCNUM -DGSDLSERVER @DEFS@
32
33INDEXERS_DIR = ../../indexers
34
35MG_INCLUDES = -I$(INDEXERS_DIR)/mg -I$(INDEXERS_DIR)/mg/lib -I$(INDEXERS_DIR)/mg/src/text
36MG_HEADERS = mgq.h mgsearch.h mgqueryfilter.h
37MG_SOURCES = mgq.c mgsearch.cpp mgqueryfilter.cpp
38MG_OBJECTS = mgq.o mgsearch.o mgqueryfilter.o
39
40MGPP_INCLUDES = -I$(INDEXERS_DIR)/mgpp/lib -I$(INDEXERS_DIR)/mgpp/text
41MGPP_HEADERS = mgppsearch.h mgppqueryfilter.h
42MGPP_SOURCES = mgppsearch.cpp mgppqueryfilter.cpp
43MGPP_OBJECTS = mgppsearch.o mgppqueryfilter.o
44
45LUCENE_INCLUDES = -I../../packages/expat/include
46LUCENE_HEADERS = lucenesearch.h lucenequeryfilter.h lucenegdbmsource.h \
47 expat_resultset.h expat_document.h
48LUCENE_SOURCES = lucenesearch.cpp lucenequeryfilter.cpp lucenegdbmsource.cpp \
49 expat_resultset.cpp expat_document.cpp
50LUCENE_OBJECTS = lucenesearch.o lucenequeryfilter.o lucenegdbmsource.o \
51 expat_resultset.o expat_document.o
52
53# Do NOT add the "recpt" directory here: the colserver should be independent of the receptionist!
54INCLUDES = -I. -I../.. -I../../lib \
55 $(MG_INCLUDES) $(MGPP_INCLUDES) $(LUCENE_INCLUDES) @GDBM_INCLUDE@
56
57
58COMPILE = $(CC) -c $(CFLAGS) $(DEFS) $(INCLUDES)
59CXXCOMPILE = $(CXX) -c $(CXXFLAGS) $(DEFS) $(INCLUDES)
60
61
62# ===========================================================================================
63# CORBA SUPPORT
64
65USE_CORBA = @USE_CORBA@
66
67MCFLAGS = @CFLAGS@ -Wall -Wunused
68
69MICO_DIR = @MICO_DIR@
70ifeq ($(MICO_DIR), default)
71MICO_INC = -I../../packages/mico/include
72MICO_PATH = ../../bin/linux/
73else
74ifeq ($(MICO_DIR), yes)
75MICO_INC =
76MICO_PATH =
77else
78MICO_INC = -I$(MICO_DIR)
79MICO_PATH =
80endif
81endif
82MINCLUDES = -I. -I../../lib -I../recpt -I$(INDEXERS_DIR)/mgpp/text $(MICO_INC)
83
84MCOMPILE = $(MICO_PATH)mico-c++ -x c++ $(MCFLAGS) $(DEFS) $(MINCLUDES) -c
85
86.SUFFIXES: .mpp .o
87.mpp.o:
88 $(MCOMPILE) $<
89
90ifneq ($(USE_CORBA), 0)
91CORBAHEADERS = corbaServer.h
92CORBASOURCES = corbaServer.mpp
93CORBAOBJECTS = corbaServer.o ../../lib/corbaiface_skel.o
94else
95CORBAHEADERS =
96CORBASOURCES =
97CORBAOBJECTS =
98endif
99
100# ===========================================================================================
101
102
103.SUFFIXES:
104.SUFFIXES: .c .o
105.c.o:
106 $(COMPILE) $<
107
108.SUFFIXES: .cpp .o
109.cpp.o:
110 $(CXXCOMPILE) $<
111
112
113HEADERS = comtypes.h search.h querycache.h queryinfo.h collectserver.h \
114 colservrconfig.h maptools.h filter.h source.h \
115 browsefilter.h queryfilter.h mggdbmsource.h gdbmsource.h \
116 phrasesearch.h phrasequeryfilter.h collectset.h \
117 $(MG_HEADERS) $(MGPP_HEADERS) $(LUCENE_HEADERS) $(CORBAHEADERS)
118
119SOURCES = comtypes.cpp search.cpp querycache.cpp queryinfo.cpp collectserver.cpp \
120 colservrconfig.cpp maptools.cpp filter.cpp source.cpp \
121 browsefilter.cpp queryfilter.cpp mggdbmsource.cpp gdbmsource.cpp \
122 phrasesearch.cpp phrasequeryfilter.cpp collectset.cpp \
123 $(MG_SOURCES) $(MGPP_SOURCES) $(LUCENE_SOURCES) $(CORBASOURCES)
124
125OBJECTS = comtypes.o search.o querycache.o queryinfo.o collectserver.o \
126 colservrconfig.o maptools.o filter.o source.o \
127 browsefilter.o queryfilter.o mggdbmsource.o gdbmsource.o \
128 phrasesearch.o phrasequeryfilter.o collectset.o \
129 $(MG_OBJECTS) $(MGPP_OBJECTS) $(LUCENE_OBJECTS) $(CORBAOBJECTS)
130
131
132all: $(OBJECTS)
133
134distclean:
135 rm -f $(OBJECTS) Makefile
136clean:
137 rm -f $(OBJECTS)
138
139install:
140
141depend:
142 makedepend -Y -- $(DEFS) $(INCLUDES) $(CXXFLAGS) -- $(SOURCES)
Note: See TracBrowser for help on using the repository browser.