source: gsdl/trunk/src/gdbmedit/txt2db/Makefile.in@ 15931

Last change on this file since 15931 was 15931, checked in by mdewsnip, 16 years ago

Tidied up the "db2txt" and "txt2db" makefiles.

  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
File size: 2.1 KB
RevLine 
[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
[15931]27GSDL_DIR = ../../..
28INDEXERS_DIR = $(GSDL_DIR)/indexers
29
30
[15551]31CXX = @CXX@
[15931]32CXXFLAGS = @CXXFLAGS@ @COMPAT32BITFLAGS@
[552]33DEFS = @DEFS@
[558]34GSDLOS = @gsdlos@
[15931]35INCLUDES = @GDBM_INCLUDE@ -I$(GSDL_DIR)/src/lib
[2900]36INSTALL = @INSTALL@
[15931]37LDFLAGS = @LDFLAGS@ @COMPAT32BITFLAGS@
38LIBS = @GDBM_LIBPATH@ -lgdbm @LIBS@
39
40
41CXXCOMPILE = $(CXX) -c $(CXXFLAGS) $(DEFS) $(INCLUDES)
[15551]42CXXLINK = $(CXX) $(LDFLAGS) -o $@
[15931]43
44
[552]45.SUFFIXES:
46.SUFFIXES: .cpp .o
47.cpp.o:
[15551]48 $(CXXCOMPILE) $<
[552]49
50
[15931]51SOURCES = \
52 txt2db.cpp
[552]53
[15931]54OBJECTS = \
55 txt2db.o \
[552]56
[15931]57GSDL_LIBS = \
58 $(GSDL_DIR)/src/lib/gsdllib.a \
59 $(INDEXERS_DIR)/mg/lib/libmglib.a
[552]60
[15931]61EXECUTABLE_OBJECTS = \
62 $(OBJECTS) \
63 $(GSDL_LIBS)
[552]64
[15931]65EXECUTABLE = txt2db
[992]66
[552]67
[15931]68# Default target: make the txt2db executable
69all: $(EXECUTABLE)
[552]70
[15931]71txt2db: $(EXECUTABLE_OBJECTS)
72 $(CXXLINK) $(EXECUTABLE_OBJECTS) $(LIBS)
[552]73
[15931]74install: $(EXECUTABLE)
75 $(INSTALL) -d $(GSDL_DIR)/bin/$(GSDLOS)
76 $(INSTALL) -m 755 -s $(EXECUTABLE) $(GSDL_DIR)/bin/$(GSDLOS)
[552]77
[15931]78clean:
79 rm -f $(OBJECTS) $(EXECUTABLE)
[552]80
[15931]81distclean:
82 rm -f $(OBJECTS) $(EXECUTABLE) Makefile
[579]83
[15931]84depend:
85 makedepend -Y -- $(DEFS) $(INCLUDES) $(CXXFLAGS) -- $(SOURCES)
Note: See TracBrowser for help on using the repository browser.