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

Last change on this file since 22078 was 22078, checked in by ak19, 14 years ago
  1. Missing conditional LIBS or INCLUDES or DIR declaration for when USE_GDBM is switched on. Previously it used to always put these in the includes/libs, not it only does so on USE_GDBM.
  • Property svn:executable set to *
File size: 2.8 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
42USE_GDBM = @USE_GDBM@
43ifeq ($(USE_GDBM), 1)
44GDBM_DEFINES = -DUSE_GDBM
45GDBM_INCLUDES = -I$(COMMON_PACKAGES_DIR)/gdbm/include
46else
47GDBM_DEFINES =
48GDBM_INCLUDES =
49endif
50
51USE_JDBM = @USE_JDBM@
52ifeq ($(USE_JDBM), 1)
53JDBM_DEFINES = -DUSE_JDBM
54else
55JDBM_DEFINES =
56endif
57
58USE_SQLITE = @USE_SQLITE@
59ifeq ($(USE_SQLITE), 1)
60SQLITE_DEFINES = -DUSE_SQLITE
61else
62SQLITE_DEFINES =
63endif
64
65
66AR = ar
67CXX = @CXX@
68CXXFLAGS = @CXXFLAGS@ @COMPAT32BITFLAGS@
69DEFS = @DEFS@ -DNZDL -DQUIET -DSHORT_SUFFIX -DPARADOCNUM -DGSDLSERVER $(GDBM_DEFINES) $(JDBM_DEFINES) $(SQLITE_DEFINES)
70# Do NOT add the "recpt" directory here: the protocol should be independent of the receptionist!
71INCLUDES = -I. -I$(GSDL_DIR) -I$(COMMON_DIR)/src/lib $(GDBM_INCLUDES) \
72 -I$(COLSERVR_DIR) $(MGPP_INCLUDES)
73RANLIB = @RANLIB@
74
75
76CXXCOMPILE = $(CXX) -c $(CXXFLAGS) $(DEFS) $(INCLUDES)
77
78
79.SUFFIXES:
80.SUFFIXES: .cpp .o
81.cpp.o:
82 $(CXXCOMPILE) $<
83
84
85SOURCES = \
86 nullproto.cpp \
87 recptproto.cpp \
88 recptprototools.cpp
89
90OBJECTS = \
91 nullproto.o \
92 recptproto.o \
93 recptprototools.o
94
95LIBRARY = gsdlprotocol.a
96
97
98# Default target: make gsdlprotocol.a
99all: $(LIBRARY)
100
101gsdlprotocol.a: $(OBJECTS)
102 rm -f $(LIBRARY)
103 $(AR) cru $(LIBRARY) $(OBJECTS)
104 $(RANLIB) $(LIBRARY)
105
106install:
107
108clean:
109 rm -f $(OBJECTS) $(LIBRARY)
110
111distclean:
112 rm -f $(OBJECTS) $(LIBRARY) Makefile
113
114depend:
115 makedepend -Y -- $(DEFS) $(INCLUDES) $(CXXFLAGS) -- $(SOURCES)
Note: See TracBrowser for help on using the repository browser.