source: trunk/gsdl/src/phind/generate/Makefile.in@ 1601

Last change on this file since 1601 was 1601, checked in by jrm21, 24 years ago

Modified makefile slightly due to gcc-2.95 problems: moved $LIBS to the
end of link command line.

  • Property svn:keywords set to Author Date Id Revision
File size: 2.3 KB
Line 
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
28CC = @CC@
29CCFLAGS = -Wall @CFLAGS@
30DEFS = @DEFS@
31RANLIB = @RANLIB@
32INCLUDES =
33LDFLAGS =
34DPLIBS =
35LIBS = @LIBS@
36GSDLOS = @gsdlos@
37
38COMPILE = $(CC) -c $(DEFS) $(INCLUDES) $(CCFLAGS)
39LINK = $(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
51HEADERS = suffix.h phrase.h
52SOURCES = suffix.cpp phrase.cpp
53OBJECTS = phrase.o
54EXEC = suffix
55
56PERL_SCRIPTS = phindgen.pl
57PERL_MODULES = phproc.pm
58
59LEXICON_ENGLISH = lexicons/english/brown.sw lexicons/english/fao.sw lexicons/english/punctuation.sw
60
61all : $(EXEC)
62
63install : $(EXEC)
64 install -d $(GSDLHOME)/bin/$(GSDLOS)
65 install -m 775 -s $(EXEC) $(GSDLHOME)/bin/$(GSDLOS)
66 install -d $(GSDLHOME)/bin/script
67 install -m 775 $(PERL_SCRIPTS) $(GSDLHOME)/bin/script
68 install -d $(GSDLHOME)/perllib
69 install -m 664 $(PERL_MODULES) $(GSDLHOME)/perllib
70 install -d $(GSDLHOME)/etc/phind/english
71 install -m 664 $(LEXICON_ENGLISH) $(GSDLHOME)/etc/phind/english
72
73distclean:
74 rm -f $(OBJECTS) $(EXEC) Makefile
75
76clean:
77 rm -f $(OBJECTS) $(EXEC)
78
79depend:
80 makedepend -Y -- $(DEFS) $(INCLUDES) $(CCFLAGS) -- $(SOURCES)
81
82
83# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
84
85suffix : $(OBJECTS) suffix.cpp
86 $(CC) $(DEFS) $(INCLUDES) $(CCFLAGS) -o suffix $(OBJECTS) suffix.cpp $(LIBS)
Note: See TracBrowser for help on using the repository browser.