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

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

Renaming of gs2build to build-src, gs2common to common-src etc.

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