source: gs2-extensions/parallel-building/trunk/src/src/txt2dbl-src/Makefile.in@ 24618

Last change on this file since 24618 was 24618, checked in by jmt12, 13 years ago

Adding the version of GDBM txt2db with simply file locking so as to support parallel building (albeit slowly)

File size: 2.3 KB
Line 
1###########################################################################
2#
3# Makefile -- parallel-building/src/txt2dbl-src
4#
5# Standard txt2db (GDBM) executable but augmented with file locking so as
6# to support parallel reads/writes
7#
8# A component of the Greenstone digital library software
9# from the New Zealand Digital Library Project at the
10# University of Waikato, New Zealand.
11#
12# Copyright (C) 1999-2008 The New Zealand Digital Library Project
13#
14#
15# This program is free software; you can redistribute it and/or modify
16# it under the terms of the GNU General Public License as published by
17# the Free Software Foundation; either version 2 of the License, or
18# (at your option) any later version.
19#
20# This program is distributed in the hope that it will be useful,
21# but WITHOUT ANY WARRANTY; without even the implied warranty of
22# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23# GNU General Public License for more details.
24#
25# You should have received a copy of the GNU General Public License
26# along with this program; if not, write to the Free Software
27# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
28#
29###########################################################################
30
31GSDL_DIR = ../../../..
32COMMON_DIR = $(GSDL_DIR)/common-src
33
34COMMON_PACKAGES_DIR = $(COMMON_DIR)/packages
35
36CXX = @CXX@
37CXXFLAGS = @CXXFLAGS@
38DEFS = @DEFS@ $(GDBM_DEFINES) $(JDBM_DEFINES) $(SQLITE_DEFINES)
39INCLUDES = -I. @GDBM_CFLAGS@ -I$(COMMON_DIR)/src/lib -I${GEXTPARALLELBUILDING_INSTALLED}/include
40INSTALL = @INSTALL@
41LDFLAGS = @LDFLAGS@ -L${GEXTPARALLELBUILDING_INSTALLED}/lib
42LIBS = -lm -lg @LIBS@ @GDBM_LIBS@ $(COMMON_DIR)/src/lib/gsdllib.a
43
44
45CXXCOMPILE = $(CXX) -c $(CXXFLAGS) $(DEFS) $(INCLUDES)
46CXXLINK = $(CXX) $(LDFLAGS) -o $@
47
48
49.SUFFIXES:
50.SUFFIXES: .cpp .o
51.cpp.o:
52 $(CXXCOMPILE) $<
53
54
55SOURCES = \
56 txt2dbl.cpp
57
58OBJECTS = \
59 txt2dbl.o
60
61EXECUTABLE_OBJECTS = \
62 $(OBJECTS)
63
64EXECUTABLE = txt2dbl
65
66
67# Default target: make the txt2tdb executable
68all: $(EXECUTABLE)
69
70txt2dbl: $(EXECUTABLE_OBJECTS)
71 $(CXXLINK) $(EXECUTABLE_OBJECTS) $(LIBS)
72
73install: $(EXECUTABLE)
74 $(INSTALL) -d ${GEXTPARALLELBUILDING_INSTALLED}/bin
75 $(INSTALL) -m 755 -s $(EXECUTABLE) ${GEXTPARALLELBUILDING_INSTALLED}/bin
76
77clean:
78 rm -f $(OBJECTS) $(EXECUTABLE)
79
80distclean:
81 rm -f $(OBJECTS) $(EXECUTABLE) Makefile
82
83depend:
84 makedepend -Y -- $(DEFS) $(INCLUDES) $(CXXFLAGS) -- $(SOURCES)
Note: See TracBrowser for help on using the repository browser.