source: main/trunk/greenstone2/common-src/src/getpw/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:keywords set to Author Date Id Revision
File size: 2.0 KB
Line 
1###########################################################################
2#
3# Makefile -- src/getpw
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) 2000-2008 The New Zealand Digital Library Project
9#
10# This program is free software; you can redistribute it and/or modify
11# it under the terms of the GNU General Public License as published by
12# the Free Software Foundation; either version 2 of the License, or
13# (at your option) any later version.
14#
15# This program is distributed in the hope that it will be useful,
16# but WITHOUT ANY WARRANTY; without even the implied warranty of
17# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18# GNU General Public License for more details.
19#
20# You should have received a copy of the GNU General Public License
21# along with this program; if not, write to the Free Software
22# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
23#
24###########################################################################
25
26GSDL_DIR = ../../..
27COMMON_DIR = $(GSDL_DIR)/common-src
28
29CXX = @CXX@
30CXXFLAGS = @CXXFLAGS@ @ARCH_DEP_FLAGS@
31DEFS = @DEFS@
32GSDLOS = @gsdlos@
33INCLUDES = -I$(COMMON_DIR) -I$(COMMON_DIR)/src/lib
34INSTALL = @INSTALL@
35LDFLAGS = @LDFLAGS@ @ARCH_DEP_FLAGS@
36LIBS = @LIBS@
37
38
39CXXCOMPILE = $(CXX) -c $(CXXFLAGS) $(DEFS) $(INCLUDES)
40CXXLINK = $(CXX) $(LDFLAGS) -o $@
41
42
43.SUFFIXES:
44.SUFFIXES: .cpp .o
45.cpp.o:
46 $(CXXCOMPILE) $<
47
48
49SOURCES = \
50 getpw.cpp
51
52OBJECTS = \
53 getpw.o
54
55EXECUTABLE_OBJECTS = \
56 $(OBJECTS)
57
58EXECUTABLE = getpw
59
60
61# Default target: make the getpw executable
62all: $(EXECUTABLE)
63
64getpw: $(EXECUTABLE_OBJECTS)
65 $(CXXLINK) $(EXECUTABLE_OBJECTS) $(LIBS)
66
67install: $(EXECUTABLE)
68 $(INSTALL) -d $(GSDL_DIR)/bin/$(GSDLOS)
69 $(INSTALL) -m 755 -s $(EXECUTABLE) $(GSDL_DIR)/bin/$(GSDLOS)
70
71clean:
72 rm -f $(OBJECTS) $(EXECUTABLE)
73
74distclean:
75 rm -f $(OBJECTS) $(EXECUTABLE) Makefile
76
77depend:
78 makedepend -Y -- $(DEFS) $(INCLUDES) $(CXXFLAGS) -- $(SOURCES)
Note: See TracBrowser for help on using the repository browser.