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 |
|
---|
27 | GSDL_DIR = ../..
|
---|
28 | INDEXERS_DIR = $(GSDL_DIR)/indexers
|
---|
29 | COLSERVR_DIR = $(GSDL_DIR)/src/colservr
|
---|
30 |
|
---|
31 | CC = @CC@
|
---|
32 | CXX = @CXX@
|
---|
33 | CFLAGS = @CFLAGS@
|
---|
34 | CXXFLAGS = @CXXFLAGS@
|
---|
35 | DEFS = -DNZDL -DQUIET -DSHORT_SUFFIX -DPARADOCNUM -DGSDLSERVER @DEFS@
|
---|
36 |
|
---|
37 | INDEXERS_DIR = ../../indexers
|
---|
38 |
|
---|
39 | MG_INCLUDES = -I$(INDEXERS_DIR)/mg -I$(INDEXERS_DIR)/mg/lib -I$(INDEXERS_DIR)/mg/src/text
|
---|
40 | MG_HEADERS = mgq.h mgsearch.h mgqueryfilter.h
|
---|
41 | MG_SOURCES = mgq.c mgsearch.cpp mgqueryfilter.cpp
|
---|
42 | MG_OBJECTS = mgq.o mgsearch.o mgqueryfilter.o
|
---|
43 |
|
---|
44 | MGPP_INCLUDES = -I$(INDEXERS_DIR)/mgpp/lib -I$(INDEXERS_DIR)/mgpp/text
|
---|
45 | MGPP_HEADERS = mgppsearch.h mgppqueryfilter.h
|
---|
46 | MGPP_SOURCES = mgppsearch.cpp mgppqueryfilter.cpp
|
---|
47 | MGPP_OBJECTS = mgppsearch.o mgppqueryfilter.o
|
---|
48 |
|
---|
49 | LUCENE_INCLUDES = -I../../packages/expat/include
|
---|
50 | LUCENE_HEADERS = lucenesearch.h lucenequeryfilter.h lucenegdbmsource.h \
|
---|
51 | expat_resultset.h expat_document.h
|
---|
52 | LUCENE_SOURCES = lucenesearch.cpp lucenequeryfilter.cpp lucenegdbmsource.cpp \
|
---|
53 | expat_resultset.cpp expat_document.cpp
|
---|
54 | LUCENE_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!
|
---|
58 | INCLUDES = -I. -I../.. -I../../lib \
|
---|
59 | $(MG_INCLUDES) $(MGPP_INCLUDES) $(LUCENE_INCLUDES) @GDBM_INCLUDE@
|
---|
60 |
|
---|
61 |
|
---|
62 | COMPILE = $(CC) -c $(CFLAGS) $(DEFS) $(INCLUDES)
|
---|
63 | CXXCOMPILE = $(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 |
|
---|
76 | HEADERS = 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 |
|
---|
82 | SOURCES = 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 |
|
---|
88 | OBJECTS = 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 |
|
---|
95 | all: $(OBJECTS)
|
---|
96 |
|
---|
97 | distclean:
|
---|
98 | rm -f $(OBJECTS) Makefile
|
---|
99 | clean:
|
---|
100 | rm -f $(OBJECTS)
|
---|
101 |
|
---|
102 | install:
|
---|
103 |
|
---|
104 | depend:
|
---|
105 | makedepend -Y -- $(DEFS) $(INCLUDES) $(CXXFLAGS) -- $(SOURCES)
|
---|