source: main/trunk/greenstone2/common-src/src/gdbmedit/db2txt/Makefile.in@ 26821

Last change on this file since 26821 was 26821, checked in by davidb, 11 years ago

Strip added as separate stage to help when cross-compiling

  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
File size: 2.2 KB
RevLine 
[552]1###########################################################################
2#
[18224]3# Makefile -- common-src/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
[18224]30COMMON_PACKAGES_DIR = $(COMMON_DIR)/packages
31
[15551]32CXX = @CXX@
[25149]33CXXFLAGS = @CXXFLAGS@ @ARCH_DEP_FLAGS@
[22058]34DEFS = @DEFS@ $(GDBM_DEFINES) $(JDBM_DEFINES) $(SQLITE_DEFINES)
[15931]35GSDLOS = @gsdlos@
[18224]36INCLUDES = -I$(COMMON_PACKAGES_DIR)/gdbm/include -I$(COMMON_DIR)/src/lib
[26821]37
38STRIP = @STRIP@
[15931]39INSTALL = @INSTALL@
[25149]40LDFLAGS = @LDFLAGS@ @ARCH_DEP_FLAGS@
[18224]41LIBS = @LIBS@ $(COMMON_PACKAGES_DIR)/gdbm/lib/libgdbm.a
[15931]42
43
44CXXCOMPILE = $(CXX) -c $(CXXFLAGS) $(DEFS) $(INCLUDES)
[15551]45CXXLINK = $(CXX) $(LDFLAGS) -o $@
[15931]46
47
[552]48.SUFFIXES:
49.SUFFIXES: .cpp .o
50.cpp.o:
[15551]51 $(CXXCOMPILE) $<
[552]52
53
[15931]54SOURCES = \
55 db2txt.cpp
[552]56
[15931]57OBJECTS = \
[15936]58 db2txt.o
[552]59
[15931]60EXECUTABLE_OBJECTS = \
61 $(OBJECTS)
[552]62
[15931]63EXECUTABLE = db2txt
[552]64
[992]65
[15931]66# Default target: make the db2txt executable
67all: $(EXECUTABLE)
[552]68
[15931]69db2txt: $(EXECUTABLE_OBJECTS)
70 $(CXXLINK) $(EXECUTABLE_OBJECTS) $(LIBS)
[552]71
[15931]72install: $(EXECUTABLE)
73 $(INSTALL) -d $(GSDL_DIR)/bin/$(GSDLOS)
[26821]74 $(STRIP) $(EXECUTABLE)
75 $(INSTALL) -m 755 $(EXECUTABLE) $(GSDL_DIR)/bin/$(GSDLOS)
[552]76
[15931]77clean:
78 rm -f $(OBJECTS) $(EXECUTABLE)
[552]79
[15931]80distclean:
81 rm -f $(OBJECTS) $(EXECUTABLE) Makefile
[552]82
[15931]83depend:
84 makedepend -Y -- $(DEFS) $(INCLUDES) $(CXXFLAGS) -- $(SOURCES)
Note: See TracBrowser for help on using the repository browser.