source: gsdl/trunk/common-src/src/gdbmedit/db2txt/Makefile.in@ 16605

Last change on this file since 16605 was 16605, checked in by davidb, 16 years ago

Fix to GSDL_DIR so binaries installed in correct top-level folder

  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
File size: 2.0 KB
RevLine 
[552]1###########################################################################
2#
[15931]3# Makefile -- src/gdbmedit/db2txt
[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.
7#
[15931]8# Copyright (C) 1999-2008 The New Zealand Digital Library Project
[552]9#
[558]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]27GSDL_DIR = ../../../..
[16605]28COMMON_DIR = $(GSDL_DIR)/common-src
[15931]29
[15551]30CXX = @CXX@
[15931]31CXXFLAGS = @CXXFLAGS@ @COMPAT32BITFLAGS@
[552]32DEFS = @DEFS@
[15931]33GSDLOS = @gsdlos@
[16605]34INCLUDES = @GDBM_INCLUDE@ -I$(COMMON_DIR)/src/lib
[15931]35INSTALL = @INSTALL@
[15551]36LDFLAGS = @LDFLAGS@ @COMPAT32BITFLAGS@
[2371]37LIBS = @GDBM_LIBPATH@ -lgdbm @LIBS@
[15931]38
39
40CXXCOMPILE = $(CXX) -c $(CXXFLAGS) $(DEFS) $(INCLUDES)
[15551]41CXXLINK = $(CXX) $(LDFLAGS) -o $@
[15931]42
43
[552]44.SUFFIXES:
45.SUFFIXES: .cpp .o
46.cpp.o:
[15551]47 $(CXXCOMPILE) $<
[552]48
49
[15931]50SOURCES = \
51 db2txt.cpp
[552]52
[15931]53OBJECTS = \
[15936]54 db2txt.o
[552]55
[15931]56EXECUTABLE_OBJECTS = \
57 $(OBJECTS)
[552]58
[15931]59EXECUTABLE = db2txt
[552]60
[992]61
[15931]62# Default target: make the db2txt executable
63all: $(EXECUTABLE)
[552]64
[15931]65db2txt: $(EXECUTABLE_OBJECTS)
66 $(CXXLINK) $(EXECUTABLE_OBJECTS) $(LIBS)
[552]67
[15931]68install: $(EXECUTABLE)
69 $(INSTALL) -d $(GSDL_DIR)/bin/$(GSDLOS)
70 $(INSTALL) -m 755 -s $(EXECUTABLE) $(GSDL_DIR)/bin/$(GSDLOS)
[552]71
[15931]72clean:
73 rm -f $(OBJECTS) $(EXECUTABLE)
[552]74
[15931]75distclean:
76 rm -f $(OBJECTS) $(EXECUTABLE) Makefile
[552]77
[15931]78depend:
79 makedepend -Y -- $(DEFS) $(INCLUDES) $(CXXFLAGS) -- $(SOURCES)
Note: See TracBrowser for help on using the repository browser.