source: main/trunk/greenstone2/common-src/src/gdbmedit/gdbmdel/Makefile.in@ 22058

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

Changes to makefiles to 1. incorporate USE_GDBM and USE_JDBM flags (and USE_SQLITE) in most places so that the DEFINES variable is set at all times. This is necessary to ensure that all classes that contain objects with gdbm and jdbm members are of a consistent size. Else we've had experience with Greenstone crashing with memory errors (to do with the similar ENABLE_indexer flags). 2. ENABLE_JDBM is now USE_JDBM. 3. Not everything works now. It still compiles the default way, but the disable-gdbm flag is causing trouble when compiling argdb in recpt since it uses that.

  • Property svn:executable set to *
File size: 2.5 KB
Line 
1###########################################################################
2#
3# Makefile -- common-src/src/gdbmedit/gdbmdel
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
29
30COMMON_PACKAGES_DIR = $(COMMON_DIR)/packages
31
32USE_GDBM = @USE_GDBM@
33ifeq ($(USE_GDBM), 1)
34GDBM_DEFINES = -DUSE_GDBM
35else
36GDBM_DEFINES =
37endif
38
39USE_JDBM = @USE_JDBM@
40ifeq ($(USE_JDBM), 1)
41JDBM_DEFINES = -DUSE_JDBM
42else
43JDBM_DEFINES =
44endif
45
46USE_SQLITE = @USE_SQLITE@
47ifeq ($(USE_SQLITE), 1)
48SQLITE_DEFINES = -DUSE_SQLITE
49else
50SQLITE_DEFINES =
51endif
52
53CXX = @CXX@
54CXXFLAGS = @CXXFLAGS@ @COMPAT32BITFLAGS@
55DEFS = @DEFS@ $(GDBM_DEFINES) $(JDBM_DEFINES) $(SQLITE_DEFINES)
56GSDLOS = @gsdlos@
57INCLUDES = -I$(COMMON_PACKAGES_DIR)/gdbm/include -I$(COMMON_DIR)/src/lib
58INSTALL = @INSTALL@
59LDFLAGS = @LDFLAGS@ @COMPAT32BITFLAGS@
60LIBS = @LIBS@ $(COMMON_PACKAGES_DIR)/gdbm/lib/libgdbm.a
61
62
63CXXCOMPILE = $(CXX) -c $(CXXFLAGS) $(DEFS) $(INCLUDES)
64CXXLINK = $(CXX) $(LDFLAGS) -o $@
65
66
67.SUFFIXES:
68.SUFFIXES: .cpp .o
69.cpp.o:
70 $(CXXCOMPILE) $<
71
72
73SOURCES = \
74 gdbmdel.cpp
75
76OBJECTS = \
77 gdbmdel.o
78
79EXECUTABLE_OBJECTS = \
80 $(OBJECTS)
81
82EXECUTABLE = gdbmdel
83
84
85# Default target: make the gdbmdel executable
86all: $(EXECUTABLE)
87
88gdbmdel: $(EXECUTABLE_OBJECTS)
89 $(CXXLINK) $(EXECUTABLE_OBJECTS) $(LIBS)
90
91install: $(EXECUTABLE)
92 $(INSTALL) -d $(GSDL_DIR)/bin/$(GSDLOS)
93 $(INSTALL) -m 755 -s $(EXECUTABLE) $(GSDL_DIR)/bin/$(GSDLOS)
94
95clean:
96 rm -f $(OBJECTS) $(EXECUTABLE)
97
98distclean:
99 rm -f $(OBJECTS) $(EXECUTABLE) Makefile
100
101depend:
102 makedepend -Y -- $(DEFS) $(INCLUDES) $(CXXFLAGS) -- $(SOURCES)
Note: See TracBrowser for help on using the repository browser.