source: other-projects/trunk/search4j/Makefile.in@ 20218

Last change on this file since 20218 was 19989, checked in by oranfry, 15 years ago

added a few lines to get search4j to work standalone

  • Property svn:executable set to *
File size: 2.0 KB
Line 
1###########################################################################
2#
3# Makefile for search4j used by Greenstone
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.
7#
8# Copyright (C) 1999-2008 The New Zealand Digital Library Project
9#
10#
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
27prefix = @prefix@
28exec_prefix = @exec_prefix@
29bindir = @bindir@
30
31CXX = @CXX@
32CXXFLAGS = @CXXFLAGS@
33DEFS = @DEFS@
34GSDLOS = @gsdlos@
35INCLUDES =
36INSTALL = @INSTALL@
37LDFLAGS = @LDFLAGS@
38LIBS = @LIBS@
39
40
41CXXCOMPILE = $(CXX) -c $(CXXFLAGS) $(DEFS) $(INCLUDES)
42CXXLINK = $(CXX) $(LDFLAGS) -o $@
43
44
45.SUFFIXES:
46.SUFFIXES: .cpp .o
47.cpp.o:
48 $(CXXCOMPILE) $<
49
50
51SOURCES = \
52 libsearch4j.cpp \
53 search4j.cpp
54
55OBJECTS = \
56 libsearch4j.o \
57 search4j.o
58
59EXECUTABLE_OBJECTS = \
60 $(OBJECTS)
61
62EXECUTABLE = search4j
63
64
65# Default target: make the search4j executable
66all: $(EXECUTABLE)
67
68search4j: $(EXECUTABLE_OBJECTS)
69 $(CXXLINK) $(EXECUTABLE_OBJECTS) $(LIBS)
70
71install: $(EXECUTABLE)
72 $(INSTALL) -d $(bindir)
73 $(INSTALL) -m 755 -s $(EXECUTABLE) $(bindir)
74
75clean:
76 rm -f $(OBJECTS) $(EXECUTABLE)
77
78distclean:
79 rm -f $(OBJECTS) $(EXECUTABLE) Makefile
80
81depend:
82 makedepend -Y -- $(DEFS) $(INCLUDES) $(CXXFLAGS) -- $(SOURCES)
Note: See TracBrowser for help on using the repository browser.