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