root/gsdl/trunk/runtime-src/src/colservr/Makefile.in @ 16624

Revision 16624, 3.5 KB (checked in by davidb, 12 years ago)

Fixed incorrect include path for sql

  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
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 = ../../..
28COMMON_DIR = $(GSDL_DIR)/common-src
29
30INDEXERS_DIR = $(COMMON_DIR)/indexers
31COMMON_PACKAGES = $(COMMON_DIR)/packages
32PACKAGES_DIR = $(GSDL_DIR)/runtime-src/packages
33
34
35USE_SQLITE = @USE_SQLITE@
36ifeq ($(USE_SQLITE), 1)
37SQLITE_DEFINES = -DUSE_SQLITE
38SQLITE_INCLUDES = -I$(COMMON_PACKAGES)/sqlite/include
39else
40SQLITE_DEFINES =
41SQLITE_INCLUDES =
42endif
43
44
45AR = ar
46CC = @CC@
47CXX = @CXX@
48CFLAGS = @CFLAGS@ @COMPAT32BITFLAGS@
49CXXFLAGS = @CXXFLAGS@ @COMPAT32BITFLAGS@
50DEFS = @DEFS@ -DNZDL -DQUIET -DSHORT_SUFFIX -DPARADOCNUM -DGSDLSERVER $(SQLITE_DEFINES)
51# Do NOT add the "recpt" directory here: the colserver should be independent of the receptionist!
52INCLUDES = @GDBM_INCLUDE@ -I. -I$(GSDL_DIR) -I$(COMMON_DIR)/src/lib \
53    -I$(INDEXERS_DIR)/mg -I$(INDEXERS_DIR)/mg/lib -I$(INDEXERS_DIR)/mg/src/text \
54    -I$(INDEXERS_DIR)/mgpp/lib -I$(INDEXERS_DIR)/mgpp/text \
55    -I$(PACKAGES_DIR)/expat/include $(SQLITE_INCLUDES)
56RANLIB = @RANLIB@
57
58
59COMPILE = $(CC) -c $(CFLAGS) $(DEFS) $(INCLUDES)
60CXXCOMPILE = $(CXX) -c $(CXXFLAGS) $(DEFS) $(INCLUDES)
61
62
63.SUFFIXES:
64.SUFFIXES: .c .o
65.c.o:
66    $(COMPILE) $<
67
68.SUFFIXES: .cpp .o
69.cpp.o:
70    $(CXXCOMPILE) $<
71
72
73SOURCES = \
74        browsefilter.cpp \
75    collectserver.cpp \
76    collectset.cpp \
77        colservrconfig.cpp \
78    comtypes.cpp \
79    expat_document.cpp \
80    expat_resultset.cpp \
81    filter.cpp \
82    lucenequeryfilter.cpp \
83    lucenesearch.cpp \
84    lucenesource.cpp \
85    maptools.cpp \
86    mgq.c \
87    mgqueryfilter.cpp \
88    mgsearch.cpp \
89    mgsource.cpp \
90    mgppqueryfilter.cpp \
91    mgppsearch.cpp \
92    phrasequeryfilter.cpp \
93    phrasesearch.cpp \
94    querycache.cpp \
95    queryfilter.cpp \
96    queryinfo.cpp \
97    search.cpp \
98    source.cpp \
99    sqlbrowsefilter.cpp
100
101OBJECTS = \
102        browsefilter.o \
103    collectserver.o \
104    collectset.o \
105        colservrconfig.o \
106    comtypes.o \
107    expat_document.o \
108    expat_resultset.o \
109    filter.o \
110    lucenequeryfilter.o \
111    lucenesearch.o \
112    lucenesource.o \
113    maptools.o \
114    mgq.o \
115    mgqueryfilter.o \
116    mgsearch.o \
117    mgsource.o \
118    mgppqueryfilter.o \
119    mgppsearch.o \
120    phrasequeryfilter.o \
121    phrasesearch.o \
122    querycache.o \
123    queryfilter.o \
124    queryinfo.o \
125    search.o \
126    source.o \
127    sqlbrowsefilter.o
128
129LIBRARY = gsdlcolservr.a
130
131
132# Default target: make gsdlcolservr.a
133all: $(LIBRARY)
134
135gsdlcolservr.a: $(OBJECTS)
136    rm -f $(LIBRARY)
137    $(AR) cru $(LIBRARY) $(OBJECTS)
138    $(RANLIB) $(LIBRARY)
139
140install:
141
142clean:
143    rm -f $(OBJECTS) $(LIBRARY)
144
145distclean:
146    rm -f $(OBJECTS) $(LIBRARY) Makefile
147
148depend:
149    makedepend -Y -- $(DEFS) $(INCLUDES) $(CXXFLAGS) -- $(SOURCES)
Note: See TracBrowser for help on using the browser.