[12844] | 1 | ###########################################################################
|
---|
| 2 | #
|
---|
[15932] | 3 | # Makefile -- src/gdbmedit/gdbmset
|
---|
[12844] | 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 | #
|
---|
[15932] | 8 | # Copyright (C) 1999-2008 The New Zealand Digital Library Project
|
---|
[12844] | 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 |
|
---|
[16603] | 27 | GSDL_DIR = ../../../..
|
---|
[15932] | 28 |
|
---|
| 29 |
|
---|
[15551] | 30 | CXX = @CXX@
|
---|
[15932] | 31 | CXXFLAGS = @CXXFLAGS@ @COMPAT32BITFLAGS@
|
---|
[12844] | 32 | DEFS = @DEFS@
|
---|
[15932] | 33 | GSDLOS = @gsdlos@
|
---|
| 34 | INCLUDES = @GDBM_INCLUDE@ -I$(GSDL_DIR)/src/lib
|
---|
| 35 | INSTALL = @INSTALL@
|
---|
[15551] | 36 | LDFLAGS = @LDFLAGS@ @COMPAT32BITFLAGS@
|
---|
[12844] | 37 | LIBS = @GDBM_LIBPATH@ -lgdbm @LIBS@
|
---|
[15932] | 38 |
|
---|
| 39 |
|
---|
| 40 | CXXCOMPILE = $(CXX) -c $(CXXFLAGS) $(DEFS) $(INCLUDES)
|
---|
[15551] | 41 | CXXLINK = $(CXX) $(LDFLAGS) -o $@
|
---|
[15932] | 42 |
|
---|
| 43 |
|
---|
[12844] | 44 | .SUFFIXES:
|
---|
| 45 | .SUFFIXES: .cpp .o
|
---|
| 46 | .cpp.o:
|
---|
[15551] | 47 | $(CXXCOMPILE) $<
|
---|
[12844] | 48 |
|
---|
| 49 |
|
---|
[15932] | 50 | SOURCES = \
|
---|
| 51 | gdbmset.cpp
|
---|
[12844] | 52 |
|
---|
[15932] | 53 | OBJECTS = \
|
---|
[15936] | 54 | gdbmset.o
|
---|
[12844] | 55 |
|
---|
[15932] | 56 | EXECUTABLE_OBJECTS = \
|
---|
| 57 | $(OBJECTS)
|
---|
[12844] | 58 |
|
---|
[15932] | 59 | EXECUTABLE = gdbmset
|
---|
[12844] | 60 |
|
---|
| 61 |
|
---|
[15932] | 62 | # Default target: make the gdbmset executable
|
---|
| 63 | all: $(EXECUTABLE)
|
---|
[12844] | 64 |
|
---|
[15932] | 65 | gdbmset: $(EXECUTABLE_OBJECTS)
|
---|
| 66 | $(CXXLINK) $(EXECUTABLE_OBJECTS) $(LIBS)
|
---|
[12844] | 67 |
|
---|
[15932] | 68 | install: $(EXECUTABLE)
|
---|
| 69 | $(INSTALL) -d $(GSDL_DIR)/bin/$(GSDLOS)
|
---|
| 70 | $(INSTALL) -m 755 -s $(EXECUTABLE) $(GSDL_DIR)/bin/$(GSDLOS)
|
---|
[12844] | 71 |
|
---|
[15932] | 72 | clean:
|
---|
| 73 | rm -f $(OBJECTS) $(EXECUTABLE)
|
---|
[12844] | 74 |
|
---|
[15932] | 75 | distclean:
|
---|
| 76 | rm -f $(OBJECTS) $(EXECUTABLE) Makefile
|
---|
| 77 |
|
---|
| 78 | depend:
|
---|
| 79 | makedepend -Y -- $(DEFS) $(INCLUDES) $(CXXFLAGS) -- $(SOURCES)
|
---|