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