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

Last change on this file since 16624 was 16624, checked in by davidb, 16 years ago

Fixed incorrect include path for sql

  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
File size: 3.5 KB
RevLine 
[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
[16563]27GSDL_DIR = ../../..
[16572]28COMMON_DIR = $(GSDL_DIR)/common-src
[15459]29
[16563]30INDEXERS_DIR = $(COMMON_DIR)/indexers
[16624]31COMMON_PACKAGES = $(COMMON_DIR)/packages
[16572]32PACKAGES_DIR = $(GSDL_DIR)/runtime-src/packages
[15474]33
[16563]34
[15684]35USE_SQLITE = @USE_SQLITE@
36ifeq ($(USE_SQLITE), 1)
[15729]37SQLITE_DEFINES = -DUSE_SQLITE
[16624]38SQLITE_INCLUDES = -I$(COMMON_PACKAGES)/sqlite/include
[15684]39else
[15729]40SQLITE_DEFINES =
[15684]41SQLITE_INCLUDES =
42endif
43
44
[15466]45AR = ar
[556]46CC = @CC@
[15551]47CXX = @CXX@
48CFLAGS = @CFLAGS@ @COMPAT32BITFLAGS@
49CXXFLAGS = @CXXFLAGS@ @COMPAT32BITFLAGS@
[15729]50DEFS = @DEFS@ -DNZDL -DQUIET -DSHORT_SUFFIX -DPARADOCNUM -DGSDLSERVER $(SQLITE_DEFINES)
[15426]51# Do NOT add the "recpt" directory here: the colserver should be independent of the receptionist!
[16563]52INCLUDES = @GDBM_INCLUDE@ -I. -I$(GSDL_DIR) -I$(COMMON_DIR)/src/lib \
[15460]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 \
[15684]55 -I$(PACKAGES_DIR)/expat/include $(SQLITE_INCLUDES)
[15466]56RANLIB = @RANLIB@
[1323]57
58
[15426]59COMPILE = $(CC) -c $(CFLAGS) $(DEFS) $(INCLUDES)
[15551]60CXXCOMPILE = $(CXX) -c $(CXXFLAGS) $(DEFS) $(INCLUDES)
[1323]61
[8031]62
[15426]63.SUFFIXES:
64.SUFFIXES: .c .o
65.c.o:
66 $(COMPILE) $<
[556]67
[15426]68.SUFFIXES: .cpp .o
69.cpp.o:
[15551]70 $(CXXCOMPILE) $<
[15426]71
72
[15460]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 \
[15592]84 lucenesource.cpp \
[15460]85 maptools.cpp \
86 mgq.c \
87 mgqueryfilter.cpp \
88 mgsearch.cpp \
[15592]89 mgsource.cpp \
[15460]90 mgppqueryfilter.cpp \
91 mgppsearch.cpp \
92 phrasequeryfilter.cpp \
93 phrasesearch.cpp \
94 querycache.cpp \
95 queryfilter.cpp \
96 queryinfo.cpp \
97 search.cpp \
[15757]98 source.cpp \
99 sqlbrowsefilter.cpp
[15426]100
[15460]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 \
[15592]112 lucenesource.o \
[15460]113 maptools.o \
114 mgq.o \
115 mgqueryfilter.o \
116 mgsearch.o \
[15592]117 mgsource.o \
[15460]118 mgppqueryfilter.o \
119 mgppsearch.o \
120 phrasequeryfilter.o \
121 phrasesearch.o \
122 querycache.o \
123 queryfilter.o \
124 queryinfo.o \
125 search.o \
[15757]126 source.o \
127 sqlbrowsefilter.o
[556]128
[15466]129LIBRARY = gsdlcolservr.a
[556]130
131
[15579]132# Default target: make gsdlcolservr.a
133all: $(LIBRARY)
134
[15466]135gsdlcolservr.a: $(OBJECTS)
[15579]136 rm -f $(LIBRARY)
137 $(AR) cru $(LIBRARY) $(OBJECTS)
138 $(RANLIB) $(LIBRARY)
[15460]139
[15580]140install:
[15466]141
[15469]142clean:
[15579]143 rm -f $(OBJECTS) $(LIBRARY)
[15469]144
[992]145distclean:
[15579]146 rm -f $(OBJECTS) $(LIBRARY) Makefile
[15460]147
[556]148depend:
[15551]149 makedepend -Y -- $(DEFS) $(INCLUDES) $(CXXFLAGS) -- $(SOURCES)
Note: See TracBrowser for help on using the repository browser.