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 | CC = @CC@
|
---|
29 | CCFLAGS = -Wall @CFLAGS@
|
---|
30 | DEFS = @DEFS@
|
---|
31 | RANLIB = @RANLIB@
|
---|
32 | INCLUDES =
|
---|
33 | LDFLAGS =
|
---|
34 | DPLIBS =
|
---|
35 | LIBS = @LIBS@
|
---|
36 | GSDLOS = @gsdlos@
|
---|
37 |
|
---|
38 | COMPILE = $(CC) -c $(DEFS) $(INCLUDES) $(CCFLAGS)
|
---|
39 | LINK = $(CC) $(LDFLAGS) -o $@
|
---|
40 |
|
---|
41 | .SUFFIXES:
|
---|
42 | .SUFFIXES: .c .o
|
---|
43 | .c.o:
|
---|
44 | $(COMPILE) $<
|
---|
45 |
|
---|
46 | .SUFFIXES: .cpp .o
|
---|
47 | .cpp.o:
|
---|
48 | $(COMPILE) $<
|
---|
49 |
|
---|
50 |
|
---|
51 | HEADERS = suffix.h phrase.h
|
---|
52 | SOURCES = suffix.cpp phrase.cpp
|
---|
53 | OBJECTS = phrase.o
|
---|
54 | EXEC = suffix
|
---|
55 |
|
---|
56 | STOPWORDS_EN = stopwords/en/brown.sw
|
---|
57 | STOPWORDS_FR = stopwords/fr/Jacques-Savoy-JASIS-50-10.sw
|
---|
58 |
|
---|
59 |
|
---|
60 | all : $(EXEC)
|
---|
61 |
|
---|
62 | # Phind is still experimental, so it is not installed by default.
|
---|
63 | # An explicit "make install-phind" is required to get it on your system.
|
---|
64 | install :
|
---|
65 |
|
---|
66 |
|
---|
67 | install-phind : $(EXEC)
|
---|
68 | install -d $(GSDLHOME)/bin/$(GSDLOS)
|
---|
69 | install -m 775 -s $(EXEC) $(GSDLHOME)/bin/$(GSDLOS)
|
---|
70 | install -d $(GSDLHOME)/etc/stopwords
|
---|
71 | install -d $(GSDLHOME)/etc/stopwords/en
|
---|
72 | install -m 664 $(STOPWORDS_EN) $(GSDLHOME)/etc/stopwords/en
|
---|
73 | install -d $(GSDLHOME)/etc/stopwords/fr
|
---|
74 | install -m 664 $(STOPWORDS_FR) $(GSDLHOME)/etc/stopwords/fr
|
---|
75 |
|
---|
76 | distclean:
|
---|
77 | rm -f $(OBJECTS) $(EXEC) Makefile
|
---|
78 |
|
---|
79 | clean:
|
---|
80 | rm -f $(OBJECTS) $(EXEC)
|
---|
81 |
|
---|
82 | depend:
|
---|
83 | makedepend -Y -- $(DEFS) $(INCLUDES) $(CCFLAGS) -- $(SOURCES)
|
---|
84 |
|
---|
85 |
|
---|
86 | # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
|
---|
87 |
|
---|
88 | suffix : $(OBJECTS) suffix.cpp
|
---|
89 | $(CC) $(DEFS) $(INCLUDES) $(CCFLAGS) -o suffix $(OBJECTS) suffix.cpp $(LIBS)
|
---|