source: main/trunk/greenstone2/common-src/src/gdbmedit/gdbmget/Makefile.in@ 25149

Last change on this file since 25149 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 *
  • Property svn:keywords set to Author Date Id Revision
File size: 2.2 KB
Line 
1###########################################################################
2#
3# Makefile -- common-src/src/gdbmedit/gdbmget
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
32CXX = @CXX@
33CXXFLAGS = @CXXFLAGS@ @ARCH_DEP_FLAGS@
34DEFS = @DEFS@ $(GDBM_DEFINES) $(JDBM_DEFINES) $(SQLITE_DEFINES)
35GSDLOS = @gsdlos@
36INCLUDES = -I$(COMMON_PACKAGES_DIR)/gdbm/include -I$(COMMON_DIR)/src/lib
37INSTALL = @INSTALL@
38LDFLAGS = @LDFLAGS@ @ARCH_DEP_FLAGS@
39LIBS = @LIBS@ $(COMMON_PACKAGES_DIR)/gdbm/lib/libgdbm.a
40
41
42CXXCOMPILE = $(CXX) -c $(CXXFLAGS) $(DEFS) $(INCLUDES)
43CXXLINK = $(CXX) $(LDFLAGS) -o $@
44
45
46.SUFFIXES:
47.SUFFIXES: .cpp .o
48.cpp.o:
49 $(CXXCOMPILE) $<
50
51
52SOURCES = \
53 gdbmget.cpp
54
55OBJECTS = \
56 gdbmget.o
57
58EXECUTABLE_OBJECTS = \
59 $(OBJECTS)
60
61EXECUTABLE = gdbmget
62
63
64# Default target: make the gdbmget executable
65all: $(EXECUTABLE)
66
67gdbmget: $(EXECUTABLE_OBJECTS)
68 $(CXXLINK) $(EXECUTABLE_OBJECTS) $(LIBS)
69
70install: $(EXECUTABLE)
71 $(INSTALL) -d $(GSDL_DIR)/bin/$(GSDLOS)
72 $(INSTALL) -m 755 -s $(EXECUTABLE) $(GSDL_DIR)/bin/$(GSDLOS)
73
74clean:
75 rm -f $(OBJECTS) $(EXECUTABLE)
76
77distclean:
78 rm -f $(OBJECTS) $(EXECUTABLE) Makefile
79
80depend:
81 makedepend -Y -- $(DEFS) $(INCLUDES) $(CXXFLAGS) -- $(SOURCES)
Note: See TracBrowser for help on using the repository browser.