source: gs2-extensions/tdb/trunk/src/txt2tdb-src/Makefile.in@ 30221

Last change on this file since 30221 was 30221, checked in by jmt12, 9 years ago

Altered the makefile template to properly notice a GSDL3HOME environment and alter the path the common-src (needed for the text_t object)

  • Property svn:executable set to *
File size: 2.2 KB
Line 
1###########################################################################
2#
3# Makefile -- common-src/src/gdbmedit/txt2db
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#
8# Copyright (C) 1999-2008 The New Zealand Digital Library Project
9#
10#
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
27ifndef GSDL3SRCHOME
28 GSDL_DIR = ../../../..
29else
30 GSDL_DIR = ${GSDL3SRCHOME}/gs2build
31endif
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$(COMMON_DIR)/src/lib -I${GEXTTDBEDIT_INSTALLED}/include
40INSTALL = @INSTALL@
41LDFLAGS = @LDFLAGS@ -L${GEXTTDBEDIT_INSTALLED}/lib
42LIBS = @LIBS@ -ltdb ${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 txt2tdb.cpp
57
58OBJECTS = \
59 txt2tdb.o
60
61EXECUTABLE_OBJECTS = \
62 $(OBJECTS)
63
64EXECUTABLE = txt2tdb
65
66
67# Default target: make the txt2tdb executable
68all: $(EXECUTABLE)
69
70txt2tdb: $(EXECUTABLE_OBJECTS)
71 $(CXXLINK) $(EXECUTABLE_OBJECTS) $(LIBS)
72
73install: $(EXECUTABLE)
74 $(INSTALL) -d ${GEXTTDBEDIT_INSTALLED}/bin
75 $(INSTALL) -m 755 -s $(EXECUTABLE) ${GEXTTDBEDIT_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.