source: main/trunk/greenstone2/runtime-src/src/protocol/Makefile.in@ 21324

Last change on this file since 21324 was 21324, checked in by ak19, 14 years ago

Changes to makefiles, configure files, and source code to work with the new configure flags that allow indexers to be individually compiled up by setting each indexer to be enabled or disabled (enable-mg, enable-mgpp, enable-lucene)

  • Property svn:executable set to *
File size: 2.4 KB
Line 
1###########################################################################
2#
3# Makefile -- runtime-src/src/protocol
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
29RUNTIME_DIR = $(GSDL_DIR)/runtime-src
30
31INDEXERS_DIR = $(COMMON_DIR)/indexers
32COMMON_PACKAGES_DIR = $(COMMON_DIR)/packages
33COLSERVR_DIR = $(RUNTIME_DIR)/src/colservr
34
35ENABLE_MGPP = @ENABLE_MGPP@
36ifeq ($(ENABLE_MGPP), 1)
37MGPP_INCLUDES = -I$(INDEXERS_DIR)/mgpp/text
38else
39MGPP_INCLUDES =
40endif
41
42AR = ar
43CXX = @CXX@
44CXXFLAGS = @CXXFLAGS@ @COMPAT32BITFLAGS@
45DEFS = @DEFS@ -DNZDL -DQUIET -DSHORT_SUFFIX -DPARADOCNUM -DGSDLSERVER
46# Do NOT add the "recpt" directory here: the protocol should be independent of the receptionist!
47INCLUDES = -I. -I$(GSDL_DIR) -I$(COMMON_DIR)/src/lib -I$(COMMON_PACKAGES_DIR)/gdbm/include \
48 -I$(COLSERVR_DIR) $(MGPP_INCLUDES)
49RANLIB = @RANLIB@
50
51
52CXXCOMPILE = $(CXX) -c $(CXXFLAGS) $(DEFS) $(INCLUDES)
53
54
55.SUFFIXES:
56.SUFFIXES: .cpp .o
57.cpp.o:
58 $(CXXCOMPILE) $<
59
60
61SOURCES = \
62 nullproto.cpp \
63 recptproto.cpp \
64 recptprototools.cpp
65
66OBJECTS = \
67 nullproto.o \
68 recptproto.o \
69 recptprototools.o
70
71LIBRARY = gsdlprotocol.a
72
73
74# Default target: make gsdlprotocol.a
75all: $(LIBRARY)
76
77gsdlprotocol.a: $(OBJECTS)
78 rm -f $(LIBRARY)
79 $(AR) cru $(LIBRARY) $(OBJECTS)
80 $(RANLIB) $(LIBRARY)
81
82install:
83
84clean:
85 rm -f $(OBJECTS) $(LIBRARY)
86
87distclean:
88 rm -f $(OBJECTS) $(LIBRARY) Makefile
89
90depend:
91 makedepend -Y -- $(DEFS) $(INCLUDES) $(CXXFLAGS) -- $(SOURCES)
Note: See TracBrowser for help on using the repository browser.