1 | ###########################################################################
|
---|
2 | #
|
---|
3 | # Makefile -- Makefile for phind
|
---|
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) 2000 Gordon Paynter
|
---|
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 |
|
---|
28 | CXX = @CXX@
|
---|
29 | CXXFLAGS = @CXXFLAGS@
|
---|
30 |
|
---|
31 | DEFS = @DEFS@
|
---|
32 | RANLIB = @RANLIB@
|
---|
33 | INCLUDES =
|
---|
34 | LDFLAGS = @LDFLAGS@
|
---|
35 | DPLIBS =
|
---|
36 | LIBS = @LIBS@
|
---|
37 | GSDLOS = @gsdlos@
|
---|
38 | INSTALL = @INSTALL@
|
---|
39 |
|
---|
40 | .SUFFIXES: .cpp .o
|
---|
41 | .cpp.o:
|
---|
42 | $(CXX) -c $(DEFS) $(INCLUDES) $(CXXFLAGS) $<
|
---|
43 |
|
---|
44 |
|
---|
45 | HEADERS = suffix.h phrase.h check.h
|
---|
46 | SOURCES = suffix.cpp phrase.cpp
|
---|
47 | OBJECTS = phrase.o suffix.o
|
---|
48 | EXEC = suffix
|
---|
49 |
|
---|
50 | all : $(EXEC)
|
---|
51 |
|
---|
52 | install : $(EXEC)
|
---|
53 | $(INSTALL) -d ../../../bin/$(GSDLOS)
|
---|
54 | $(INSTALL) -m 775 -s $(EXEC) ../../../bin/$(GSDLOS)
|
---|
55 |
|
---|
56 | distclean:
|
---|
57 | rm -f $(OBJECTS) $(EXEC) Makefile
|
---|
58 |
|
---|
59 | clean:
|
---|
60 | rm -f $(OBJECTS) $(EXEC)
|
---|
61 |
|
---|
62 | depend:
|
---|
63 | makedepend -Y -- $(DEFS) $(INCLUDES) $(CXXFLAGS) -- $(SOURCES)
|
---|
64 |
|
---|
65 | suffix : $(OBJECTS)
|
---|
66 | $(CXX) $(LDFLAGS) -o $@ $(OBJECTS)
|
---|
67 |
|
---|
68 |
|
---|