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 |
|
---|
27 | prefix = @prefix@
|
---|
28 | exec_prefix = @exec_prefix@
|
---|
29 | bindir = @bindir@
|
---|
30 |
|
---|
31 | CXX = @CXX@
|
---|
32 | CXXFLAGS = @CXXFLAGS@
|
---|
33 | DEFS = @DEFS@
|
---|
34 | GSDLOS = @gsdlos@
|
---|
35 | INCLUDES =
|
---|
36 | STRIP = @STRIP@
|
---|
37 | INSTALL = @INSTALL@
|
---|
38 | LDFLAGS = @LDFLAGS@
|
---|
39 | LIBS = @LIBS@
|
---|
40 |
|
---|
41 |
|
---|
42 | CXXCOMPILE = $(CXX) -c $(CXXFLAGS) $(DEFS) $(INCLUDES)
|
---|
43 | CXXLINK = $(CXX) $(LDFLAGS) -o $@
|
---|
44 |
|
---|
45 |
|
---|
46 | .SUFFIXES:
|
---|
47 | .SUFFIXES: .cpp .o
|
---|
48 | .cpp.o:
|
---|
49 | $(CXXCOMPILE) $<
|
---|
50 |
|
---|
51 |
|
---|
52 | SOURCES = \
|
---|
53 | libsearch4j.cpp \
|
---|
54 | search4j.cpp
|
---|
55 |
|
---|
56 | OBJECTS = \
|
---|
57 | libsearch4j.o \
|
---|
58 | search4j.o
|
---|
59 |
|
---|
60 | EXECUTABLE_OBJECTS = \
|
---|
61 | $(OBJECTS)
|
---|
62 |
|
---|
63 | EXECUTABLE = search4j
|
---|
64 |
|
---|
65 |
|
---|
66 | # Default target: make the search4j executable
|
---|
67 | all: $(EXECUTABLE)
|
---|
68 |
|
---|
69 | search4j: $(EXECUTABLE_OBJECTS)
|
---|
70 | $(CXXLINK) $(EXECUTABLE_OBJECTS) $(LIBS)
|
---|
71 |
|
---|
72 | install: $(EXECUTABLE)
|
---|
73 | $(INSTALL) -d $(bindir)
|
---|
74 | # $(STRIP) $(EXECUTABLE)
|
---|
75 | $(INSTALL) -m 755 $(EXECUTABLE) $(bindir)
|
---|
76 |
|
---|
77 | clean:
|
---|
78 | rm -f $(OBJECTS) $(EXECUTABLE)
|
---|
79 |
|
---|
80 | distclean:
|
---|
81 | rm -f $(OBJECTS) $(EXECUTABLE) Makefile
|
---|
82 |
|
---|
83 | depend:
|
---|
84 | makedepend -Y -- $(DEFS) $(INCLUDES) $(CXXFLAGS) -- $(SOURCES)
|
---|