source: gsdl/trunk/src/hashfile/Makefile.in@ 15915

Last change on this file since 15915 was 15915, checked in by mdewsnip, 16 years ago

Tidied up makefile and removed unnecessary references to the Greenstone "lib" directory (which has just moved).

  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
File size: 1.9 KB
Line 
1###########################################################################
2#
3# Makefile -- src/hashfile
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 = ../..
28
29
30CXX = @CXX@
31CXXFLAGS = @CXXFLAGS@ @COMPAT32BITFLAGS@
32DEFS = @DEFS@
33INCLUDES = @INCLUDES@
34INSTALL = @INSTALL@
35LDFLAGS = @LDFLAGS@ @COMPAT32BITFLAGS@
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 hashfile.cpp
51
52OBJECTS = \
53 hashfile.o \
54
55EXECUTABLE_OBJECTS = \
56 $(OBJECTS)
57
58EXECUTABLE = hashfile
59
60
61# Default target: make the hashfile executable
62all: $(EXECUTABLE)
63
64hashfile: $(EXECUTABLE_OBJECTS)
65 $(CXXLINK) $(EXECUTABLE_OBJECTS) $(LIBS)
66
67install: $(EXECUTABLE)
68 $(INSTALL) -d ../../bin/$(GSDLOS)
69 $(INSTALL) -m 755 -s $(EXEC) ../../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.