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

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

Moving "lib" directory into "src", to keep all the source code together. Not tested yet.

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