source: gsdl/trunk/src/colservr/Makefile.in@ 15684

Last change on this file since 15684 was 15684, checked in by mdewsnip, 16 years ago

(Adding new DB support) Adding SQLITE definitions so compiling works if gdbmclass is switched to sqlitedbclass.

  • 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 = ../..
28INDEXERS_DIR = $(GSDL_DIR)/indexers
29PACKAGES_DIR = $(GSDL_DIR)/packages
30
31
32USE_SQLITE = @USE_SQLITE@
33ifeq ($(USE_SQLITE), 1)
34SQLITE_INCLUDES = -I$(PACKAGES_DIR)/sqlite/sqlite3/linux/include
35SQLITE_OBJECTS = sqlitedbclass.o
36SQLITE_SOURCES = sqlitedbclass.cpp
37else
38SQLITE_INCLUDES =
39SQLITE_OBJECTS =
40SQLITE_SOURCES =
41endif
42
43
44AR = ar
45CC = @CC@
46CXX = @CXX@
47CFLAGS = @CFLAGS@ @COMPAT32BITFLAGS@
48CXXFLAGS = @CXXFLAGS@ @COMPAT32BITFLAGS@
49DEFS = @DEFS@ -DNZDL -DQUIET -DSHORT_SUFFIX -DPARADOCNUM -DGSDLSERVER
50# Do NOT add the "recpt" directory here: the colserver should be independent of the receptionist!
51INCLUDES = @GDBM_INCLUDE@ -I. -I$(GSDL_DIR) -I$(GSDL_DIR)/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
99OBJECTS = \
100 browsefilter.o \
101 collectserver.o \
102 collectset.o \
103 colservrconfig.o \
104 comtypes.o \
105 expat_document.o \
106 expat_resultset.o \
107 filter.o \
108 lucenequeryfilter.o \
109 lucenesearch.o \
110 lucenesource.o \
111 maptools.o \
112 mgq.o \
113 mgqueryfilter.o \
114 mgsearch.o \
115 mgsource.o \
116 mgppqueryfilter.o \
117 mgppsearch.o \
118 phrasequeryfilter.o \
119 phrasesearch.o \
120 querycache.o \
121 queryfilter.o \
122 queryinfo.o \
123 search.o \
124 source.o
125
126LIBRARY = gsdlcolservr.a
127
128
129# Default target: make gsdlcolservr.a
130all: $(LIBRARY)
131
132gsdlcolservr.a: $(OBJECTS)
133 rm -f $(LIBRARY)
134 $(AR) cru $(LIBRARY) $(OBJECTS)
135 $(RANLIB) $(LIBRARY)
136
137install:
138
139clean:
140 rm -f $(OBJECTS) $(LIBRARY)
141
142distclean:
143 rm -f $(OBJECTS) $(LIBRARY) Makefile
144
145depend:
146 makedepend -Y -- $(DEFS) $(INCLUDES) $(CXXFLAGS) -- $(SOURCES)
Note: See TracBrowser for help on using the repository browser.