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

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

Started to move all the CORBA stuff out into a new "src/corba" directory, because it is uglying up the core source directories and Makefiles.

  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
File size: 3.7 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
27GSDL_DIR = ../..
28INDEXERS_DIR = $(GSDL_DIR)/indexers
29COLSERVR_DIR = $(GSDL_DIR)/src/colservr
30
31CC = @CC@
32CXX = @CXX@
33CFLAGS = @CFLAGS@
34CXXFLAGS = @CXXFLAGS@
35DEFS = -DNZDL -DQUIET -DSHORT_SUFFIX -DPARADOCNUM -DGSDLSERVER @DEFS@
36
37INDEXERS_DIR = ../../indexers
38
39MG_INCLUDES = -I$(INDEXERS_DIR)/mg -I$(INDEXERS_DIR)/mg/lib -I$(INDEXERS_DIR)/mg/src/text
40MG_HEADERS = mgq.h mgsearch.h mgqueryfilter.h
41MG_SOURCES = mgq.c mgsearch.cpp mgqueryfilter.cpp
42MG_OBJECTS = mgq.o mgsearch.o mgqueryfilter.o
43
44MGPP_INCLUDES = -I$(INDEXERS_DIR)/mgpp/lib -I$(INDEXERS_DIR)/mgpp/text
45MGPP_HEADERS = mgppsearch.h mgppqueryfilter.h
46MGPP_SOURCES = mgppsearch.cpp mgppqueryfilter.cpp
47MGPP_OBJECTS = mgppsearch.o mgppqueryfilter.o
48
49LUCENE_INCLUDES = -I../../packages/expat/include
50LUCENE_HEADERS = lucenesearch.h lucenequeryfilter.h lucenegdbmsource.h \
51 expat_resultset.h expat_document.h
52LUCENE_SOURCES = lucenesearch.cpp lucenequeryfilter.cpp lucenegdbmsource.cpp \
53 expat_resultset.cpp expat_document.cpp
54LUCENE_OBJECTS = lucenesearch.o lucenequeryfilter.o lucenegdbmsource.o \
55 expat_resultset.o expat_document.o
56
57# Do NOT add the "recpt" directory here: the colserver should be independent of the receptionist!
58INCLUDES = -I. -I../.. -I../../lib \
59 $(MG_INCLUDES) $(MGPP_INCLUDES) $(LUCENE_INCLUDES) @GDBM_INCLUDE@
60
61
62COMPILE = $(CC) -c $(CFLAGS) $(DEFS) $(INCLUDES)
63CXXCOMPILE = $(CXX) -c $(CXXFLAGS) $(DEFS) $(INCLUDES)
64
65
66.SUFFIXES:
67.SUFFIXES: .c .o
68.c.o:
69 $(COMPILE) $<
70
71.SUFFIXES: .cpp .o
72.cpp.o:
73 $(CXXCOMPILE) $<
74
75
76HEADERS = comtypes.h search.h querycache.h queryinfo.h collectserver.h \
77 colservrconfig.h maptools.h filter.h source.h \
78 browsefilter.h queryfilter.h mggdbmsource.h gdbmsource.h \
79 phrasesearch.h phrasequeryfilter.h collectset.h \
80 $(MG_HEADERS) $(MGPP_HEADERS) $(LUCENE_HEADERS) $(CORBAHEADERS)
81
82SOURCES = comtypes.cpp search.cpp querycache.cpp queryinfo.cpp collectserver.cpp \
83 colservrconfig.cpp maptools.cpp filter.cpp source.cpp \
84 browsefilter.cpp queryfilter.cpp mggdbmsource.cpp gdbmsource.cpp \
85 phrasesearch.cpp phrasequeryfilter.cpp collectset.cpp \
86 $(MG_SOURCES) $(MGPP_SOURCES) $(LUCENE_SOURCES) $(CORBASOURCES)
87
88OBJECTS = comtypes.o search.o querycache.o queryinfo.o collectserver.o \
89 colservrconfig.o maptools.o filter.o source.o \
90 browsefilter.o queryfilter.o mggdbmsource.o gdbmsource.o \
91 phrasesearch.o phrasequeryfilter.o collectset.o \
92 $(MG_OBJECTS) $(MGPP_OBJECTS) $(LUCENE_OBJECTS) $(CORBAOBJECTS)
93
94
95all: $(OBJECTS)
96
97distclean:
98 rm -f $(OBJECTS) Makefile
99clean:
100 rm -f $(OBJECTS)
101
102install:
103
104depend:
105 makedepend -Y -- $(DEFS) $(INCLUDES) $(CXXFLAGS) -- $(SOURCES)
Note: See TracBrowser for help on using the repository browser.