[552] | 1 | ###########################################################################
|
---|
| 2 | #
|
---|
[15915] | 3 | # Makefile -- src/hashfile
|
---|
[558] | 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.
|
---|
[552] | 7 | #
|
---|
[15915] | 8 | # Copyright (C) 1999-2008 The New Zealand Digital Library Project
|
---|
[558] | 9 | #
|
---|
| 10 | #
|
---|
[552] | 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 |
|
---|
[16604] | 27 | GSDL_DIR = ../../..
|
---|
[15915] | 28 |
|
---|
| 29 |
|
---|
[2998] | 30 | CXX = @CXX@
|
---|
[25149] | 31 | CXXFLAGS = @CXXFLAGS@ @ARCH_DEP_FLAGS@
|
---|
[552] | 32 | DEFS = @DEFS@
|
---|
[15916] | 33 | GSDLOS = @gsdlos@
|
---|
[15924] | 34 | INCLUDES =
|
---|
[26820] | 35 | STRIP = @STRIP@
|
---|
[2900] | 36 | INSTALL = @INSTALL@
|
---|
[25149] | 37 | LDFLAGS = @LDFLAGS@ @ARCH_DEP_FLAGS@
|
---|
[15915] | 38 | LIBS = @LIBS@
|
---|
| 39 |
|
---|
| 40 |
|
---|
| 41 | CXXCOMPILE = $(CXX) -c $(CXXFLAGS) $(DEFS) $(INCLUDES)
|
---|
| 42 | CXXLINK = $(CXX) $(LDFLAGS) -o $@
|
---|
| 43 |
|
---|
| 44 |
|
---|
[552] | 45 | .SUFFIXES:
|
---|
| 46 | .SUFFIXES: .cpp .o
|
---|
| 47 | .cpp.o:
|
---|
[15915] | 48 | $(CXXCOMPILE) $<
|
---|
[552] | 49 |
|
---|
| 50 |
|
---|
[15915] | 51 | SOURCES = \
|
---|
| 52 | hashfile.cpp
|
---|
[552] | 53 |
|
---|
[15915] | 54 | OBJECTS = \
|
---|
[15937] | 55 | hashfile.o
|
---|
[552] | 56 |
|
---|
[15915] | 57 | EXECUTABLE_OBJECTS = \
|
---|
| 58 | $(OBJECTS)
|
---|
[552] | 59 |
|
---|
[15915] | 60 | EXECUTABLE = hashfile
|
---|
| 61 |
|
---|
| 62 |
|
---|
| 63 | # Default target: make the hashfile executable
|
---|
| 64 | all: $(EXECUTABLE)
|
---|
| 65 |
|
---|
| 66 | hashfile: $(EXECUTABLE_OBJECTS)
|
---|
| 67 | $(CXXLINK) $(EXECUTABLE_OBJECTS) $(LIBS)
|
---|
| 68 |
|
---|
| 69 | install: $(EXECUTABLE)
|
---|
[15916] | 70 | $(INSTALL) -d $(GSDL_DIR)/bin/$(GSDLOS)
|
---|
[26820] | 71 | $(STRIP) $(EXECUTABLE)
|
---|
| 72 | $(INSTALL) -m 755 $(EXECUTABLE) $(GSDL_DIR)/bin/$(GSDLOS)
|
---|
[552] | 73 |
|
---|
[15915] | 74 | clean:
|
---|
| 75 | rm -f $(OBJECTS) $(EXECUTABLE)
|
---|
| 76 |
|
---|
[992] | 77 | distclean:
|
---|
[15915] | 78 | rm -f $(OBJECTS) $(EXECUTABLE) Makefile
|
---|
[992] | 79 |
|
---|
[552] | 80 | depend:
|
---|
[15552] | 81 | makedepend -Y -- $(DEFS) $(INCLUDES) $(CXXFLAGS) -- $(SOURCES)
|
---|