source: gsdl/trunk/gs2runtime/src/colservr/Makefile.in@ 16563

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

Mods to Makefile.in and configure.in to work with newly organized files: gs2build gs2common and gs2runtime

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