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

Last change on this file since 26820 was 26820, checked in by davidb, 10 years ago

Strip added as separate stage to help when cross-compiling

  • 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 =
36STRIP = @STRIP@
37INSTALL = @INSTALL@
38LDFLAGS = @LDFLAGS@ @ARCH_DEP_FLAGS@
39LIBS = @LIBS@
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 phrase.cpp \
54 suffix.cpp
55
56OBJECTS = \
57 phrase.o \
58 suffix.o
59
60EXECUTABLE_OBJECTS = \
61 $(OBJECTS)
62
63EXECUTABLE = suffix
64
65
66# Default target: make the suffix executable
67all: $(EXECUTABLE)
68
69suffix: $(EXECUTABLE_OBJECTS)
70 $(CXXLINK) $(EXECUTABLE_OBJECTS) $(LIBS)
71
72install: $(EXECUTABLE)
73 $(INSTALL) -d $(GSDL_DIR)/bin/$(GSDLOS)
74 $(STRIP) $(EXECUTABLE)
75 $(INSTALL) -m 755 $(EXECUTABLE) $(GSDL_DIR)/bin/$(GSDLOS)
76
77clean:
78 rm -f $(OBJECTS) $(EXECUTABLE)
79
80distclean:
81 rm -f $(OBJECTS) $(EXECUTABLE) Makefile
82
83depend:
84 makedepend -Y -- $(DEFS) $(INCLUDES) $(CXXFLAGS) -- $(SOURCES)
Note: See TracBrowser for help on using the repository browser.