root/gsdl/trunk/src/colservr/Makefile.in @ 15907

Revision 15907, 3.4 KB (checked in by mdewsnip, 12 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
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_DEFINES = -DUSE_SQLITE
35SQLITE_INCLUDES = -I$(PACKAGES_DIR)/sqlite/include
36else
37SQLITE_DEFINES =
38SQLITE_INCLUDES =
39endif
40
41
42AR = ar
43CC = @CC@
44CXX = @CXX@
45CFLAGS = @CFLAGS@ @COMPAT32BITFLAGS@
46CXXFLAGS = @CXXFLAGS@ @COMPAT32BITFLAGS@
47DEFS = @DEFS@ -DNZDL -DQUIET -DSHORT_SUFFIX -DPARADOCNUM -DGSDLSERVER $(SQLITE_DEFINES)
48# Do NOT add the "recpt" directory here: the colserver should be independent of the receptionist!
49INCLUDES = @GDBM_INCLUDE@ -I. -I$(GSDL_DIR) -I$(GSDL_DIR)/src/lib \
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 \
52    -I$(PACKAGES_DIR)/expat/include $(SQLITE_INCLUDES)
53RANLIB = @RANLIB@
54
55
56COMPILE = $(CC) -c $(CFLAGS) $(DEFS) $(INCLUDES)
57CXXCOMPILE = $(CXX) -c $(CXXFLAGS) $(DEFS) $(INCLUDES)
58
59
60.SUFFIXES:
61.SUFFIXES: .c .o
62.c.o:
63    $(COMPILE) $<
64
65.SUFFIXES: .cpp .o
66.cpp.o:
67    $(CXXCOMPILE) $<
68
69
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 \
81    lucenesource.cpp \
82    maptools.cpp \
83    mgq.c \
84    mgqueryfilter.cpp \
85    mgsearch.cpp \
86    mgsource.cpp \
87    mgppqueryfilter.cpp \
88    mgppsearch.cpp \
89    phrasequeryfilter.cpp \
90    phrasesearch.cpp \
91    querycache.cpp \
92    queryfilter.cpp \
93    queryinfo.cpp \
94    search.cpp \
95    source.cpp \
96    sqlbrowsefilter.cpp
97
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 \
109    lucenesource.o \
110    maptools.o \
111    mgq.o \
112    mgqueryfilter.o \
113    mgsearch.o \
114    mgsource.o \
115    mgppqueryfilter.o \
116    mgppsearch.o \
117    phrasequeryfilter.o \
118    phrasesearch.o \
119    querycache.o \
120    queryfilter.o \
121    queryinfo.o \
122    search.o \
123    source.o \
124    sqlbrowsefilter.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 browser.