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

Last change on this file since 30683 was 25149, checked in by kjdon, 12 years ago

getting greenstone to work properly on 64 bit machines. COMPAT32BITFLAGS is no more. Don't need -m32 option. Instead, have ARCH_DEP_FLAGS, which gets -fPIC on 64 bit machines. Note that I have used version 2.63 of autoconf. SOme configure files had previously been generated with v 2.65. Have also got rid of lib64 for compiling expat and iconv - only need one version now, not 32 bit version for greenstone and 64 bit version for apache

  • Property svn:executable set to *
File size: 2.8 KB
RevLine 
[15450]1###########################################################################
2#
[18224]3# Makefile -- runtime-src/src/protocol
[15450]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
[16563]27GSDL_DIR = ../../..
[16572]28COMMON_DIR = $(GSDL_DIR)/common-src
[18224]29RUNTIME_DIR = $(GSDL_DIR)/runtime-src
[15450]30
[16563]31INDEXERS_DIR = $(COMMON_DIR)/indexers
[18224]32COMMON_PACKAGES_DIR = $(COMMON_DIR)/packages
33COLSERVR_DIR = $(RUNTIME_DIR)/src/colservr
[15475]34
[21324]35ENABLE_MGPP = @ENABLE_MGPP@
36ifeq ($(ENABLE_MGPP), 1)
[25149]37MGPP_INCLUDES = -I$(INDEXERS_DIR)/mgpp/text -I$(INDEXERS_DIR)/mgpp/lib
[21324]38else
39MGPP_INCLUDES =
40endif
[16563]41
[22058]42USE_GDBM = @USE_GDBM@
43ifeq ($(USE_GDBM), 1)
44GDBM_DEFINES = -DUSE_GDBM
[22078]45GDBM_INCLUDES = -I$(COMMON_PACKAGES_DIR)/gdbm/include
[22058]46else
47GDBM_DEFINES =
[22078]48GDBM_INCLUDES =
[22058]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
[15479]66AR = ar
[15556]67CXX = @CXX@
[25149]68CXXFLAGS = @CXXFLAGS@ @ARCH_DEP_FLAGS@
[22058]69DEFS = @DEFS@ -DNZDL -DQUIET -DSHORT_SUFFIX -DPARADOCNUM -DGSDLSERVER $(GDBM_DEFINES) $(JDBM_DEFINES) $(SQLITE_DEFINES)
[15450]70# Do NOT add the "recpt" directory here: the protocol should be independent of the receptionist!
[22078]71INCLUDES = -I. -I$(GSDL_DIR) -I$(COMMON_DIR)/src/lib $(GDBM_INCLUDES) \
[21324]72 -I$(COLSERVR_DIR) $(MGPP_INCLUDES)
[15479]73RANLIB = @RANLIB@
[15450]74
75
[15556]76CXXCOMPILE = $(CXX) -c $(CXXFLAGS) $(DEFS) $(INCLUDES)
[15450]77
[15470]78
[15450]79.SUFFIXES:
80.SUFFIXES: .cpp .o
81.cpp.o:
[15556]82 $(CXXCOMPILE) $<
[15450]83
84
[15470]85SOURCES = \
86 nullproto.cpp \
[15572]87 recptproto.cpp \
88 recptprototools.cpp
[15450]89
[15470]90OBJECTS = \
91 nullproto.o \
[15572]92 recptproto.o \
93 recptprototools.o
[15450]94
[15479]95LIBRARY = gsdlprotocol.a
[15450]96
97
[15579]98# Default target: make gsdlprotocol.a
99all: $(LIBRARY)
100
[15479]101gsdlprotocol.a: $(OBJECTS)
[15579]102 rm -f $(LIBRARY)
103 $(AR) cru $(LIBRARY) $(OBJECTS)
104 $(RANLIB) $(LIBRARY)
[15470]105
[15580]106install:
[15479]107
[15450]108clean:
[15579]109 rm -f $(OBJECTS) $(LIBRARY)
[15450]110
[15470]111distclean:
[15579]112 rm -f $(OBJECTS) $(LIBRARY) Makefile
[15450]113
114depend:
[15556]115 makedepend -Y -- $(DEFS) $(INCLUDES) $(CXXFLAGS) -- $(SOURCES)
Note: See TracBrowser for help on using the repository browser.