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