source: main/trunk/greenstone2/build-src/src/phind/generate/Makefile.in@ 25149

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