[556] | 1 | ###########################################################################
|
---|
| 2 | #
|
---|
[558] | 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 | #
|
---|
[15426] | 8 | # Copyright (C) 1999-2008 The New Zealand Digital Library Project
|
---|
[556] | 9 | #
|
---|
| 10 | #
|
---|
[558] | 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 | #
|
---|
[556] | 25 | ###########################################################################
|
---|
| 26 |
|
---|
[15459] | 27 | GSDL_DIR = ../..
|
---|
| 28 | INDEXERS_DIR = $(GSDL_DIR)/indexers
|
---|
| 29 | COLSERVR_DIR = $(GSDL_DIR)/src/colservr
|
---|
| 30 |
|
---|
[556] | 31 | CC = @CC@
|
---|
[15460] | 32 | CPP = @CXX@
|
---|
[2703] | 33 | CFLAGS = @CFLAGS@
|
---|
[15460] | 34 | CPPFLAGS = @CXXFLAGS@
|
---|
| 35 | DEFS = @DEFS@ -DNZDL -DQUIET -DSHORT_SUFFIX -DPARADOCNUM -DGSDLSERVER
|
---|
[15426] | 36 | # Do NOT add the "recpt" directory here: the colserver should be independent of the receptionist!
|
---|
[15460] | 37 | INCLUDES = -I. -I$(GSDL_DIR) -I$(GSDL_DIR)/lib \
|
---|
| 38 | -I$(INDEXERS_DIR)/mg -I$(INDEXERS_DIR)/mg/lib -I$(INDEXERS_DIR)/mg/src/text \
|
---|
| 39 | -I$(INDEXERS_DIR)/mgpp/lib -I$(INDEXERS_DIR)/mgpp/text \
|
---|
| 40 | -I../../packages/expat/include
|
---|
[1323] | 41 |
|
---|
| 42 |
|
---|
[15426] | 43 | COMPILE = $(CC) -c $(CFLAGS) $(DEFS) $(INCLUDES)
|
---|
[15460] | 44 | CPPCOMPILE = $(CPP) -c $(CPPFLAGS) $(DEFS) $(INCLUDES)
|
---|
[1323] | 45 |
|
---|
[8031] | 46 |
|
---|
[15426] | 47 | .SUFFIXES:
|
---|
| 48 | .SUFFIXES: .c .o
|
---|
| 49 | .c.o:
|
---|
| 50 | $(COMPILE) $<
|
---|
[556] | 51 |
|
---|
[15426] | 52 | .SUFFIXES: .cpp .o
|
---|
| 53 | .cpp.o:
|
---|
[15460] | 54 | $(CPPCOMPILE) $<
|
---|
[15426] | 55 |
|
---|
| 56 |
|
---|
[15460] | 57 | SOURCES = \
|
---|
| 58 | browsefilter.cpp \
|
---|
| 59 | collectserver.cpp \
|
---|
| 60 | collectset.cpp \
|
---|
| 61 | colservrconfig.cpp \
|
---|
| 62 | comtypes.cpp \
|
---|
| 63 | expat_document.cpp \
|
---|
| 64 | expat_resultset.cpp \
|
---|
| 65 | filter.cpp \
|
---|
| 66 | gdbmsource.cpp \
|
---|
| 67 | lucenegdbmsource.cpp \
|
---|
| 68 | lucenequeryfilter.cpp \
|
---|
| 69 | lucenesearch.cpp \
|
---|
| 70 | maptools.cpp \
|
---|
| 71 | mggdbmsource.cpp \
|
---|
| 72 | mgq.c \
|
---|
| 73 | mgqueryfilter.cpp \
|
---|
| 74 | mgsearch.cpp \
|
---|
| 75 | mgppqueryfilter.cpp \
|
---|
| 76 | mgppsearch.cpp \
|
---|
| 77 | phrasequeryfilter.cpp \
|
---|
| 78 | phrasesearch.cpp \
|
---|
| 79 | querycache.cpp \
|
---|
| 80 | queryfilter.cpp \
|
---|
| 81 | queryinfo.cpp \
|
---|
| 82 | search.cpp \
|
---|
| 83 | source.cpp
|
---|
[15426] | 84 |
|
---|
[15460] | 85 | OBJECTS = \
|
---|
| 86 | browsefilter.o \
|
---|
| 87 | collectserver.o \
|
---|
| 88 | collectset.o \
|
---|
| 89 | colservrconfig.o \
|
---|
| 90 | comtypes.o \
|
---|
| 91 | expat_document.o \
|
---|
| 92 | expat_resultset.o \
|
---|
| 93 | filter.o \
|
---|
| 94 | gdbmsource.o \
|
---|
| 95 | lucenegdbmsource.o \
|
---|
| 96 | lucenequeryfilter.o \
|
---|
| 97 | lucenesearch.o \
|
---|
| 98 | maptools.o \
|
---|
| 99 | mggdbmsource.o \
|
---|
| 100 | mgq.o \
|
---|
| 101 | mgqueryfilter.o \
|
---|
| 102 | mgsearch.o \
|
---|
| 103 | mgppqueryfilter.o \
|
---|
| 104 | mgppsearch.o \
|
---|
| 105 | phrasequeryfilter.o \
|
---|
| 106 | phrasesearch.o \
|
---|
| 107 | querycache.o \
|
---|
| 108 | queryfilter.o \
|
---|
| 109 | queryinfo.o \
|
---|
| 110 | search.o \
|
---|
| 111 | source.o
|
---|
[556] | 112 |
|
---|
| 113 |
|
---|
[15448] | 114 | all: $(OBJECTS)
|
---|
[556] | 115 |
|
---|
[15460] | 116 | install:
|
---|
| 117 |
|
---|
[992] | 118 | distclean:
|
---|
[15426] | 119 | rm -f $(OBJECTS) Makefile
|
---|
[15460] | 120 |
|
---|
[556] | 121 | clean:
|
---|
[15426] | 122 | rm -f $(OBJECTS)
|
---|
[556] | 123 |
|
---|
| 124 | depend:
|
---|
[15460] | 125 | makedepend -Y -- $(DEFS) $(INCLUDES) $(CPPFLAGS) -- $(SOURCES)
|
---|