root/gs2-extensions/tdb-edit/trunk/src/src/tdbcli-src/Makefile.in @ 25392

Revision 25392, 2.1 KB (checked in by jmt12, 8 years ago)

A new CLI tool for TDB to allow bidirectional pipe ala GDBMServer

  • Property svn:executable set to *
Line 
1###########################################################################
2#
3# Makefile -- tdb_edit/src/tdbcli
4#
5# A component of the Greenstone digital library software
6# from the New Zealand Digital Library Project at the
7# University of Waikato, New Zealand.
8#
9# Copyright (C) 1999-2011  The New Zealand Digital Library Project
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
27GSDL_DIR = ../../../..
28COMMON_DIR = $(GSDL_DIR)/common-src
29
30COMMON_PACKAGES_DIR = $(COMMON_DIR)/packages
31
32CXX = @CXX@
33CXXFLAGS = @CXXFLAGS@
34DEFS = @DEFS@
35INCLUDES = -I. -I$(COMMON_DIR)/src/lib -I${GEXTTDBEDIT_INSTALLED}/include
36INSTALL = @INSTALL@
37LDFLAGS = @LDFLAGS@ -L${GEXTTDBEDIT_INSTALLED}/lib
38LIBS = @LIBS@ $(COMMON_DIR)/src/lib/gsdllib.a -ltdb
39
40
41CXXCOMPILE = $(CXX) -c $(CXXFLAGS) $(DEFS) $(INCLUDES)
42CXXLINK = $(CXX) $(LDFLAGS) -o $@
43
44
45.SUFFIXES:
46.SUFFIXES: .cpp .o
47.cpp.o:
48    $(CXXCOMPILE) $<
49
50
51SOURCES = \
52    tdbcli.cpp
53
54OBJECTS = \
55    tdbcli.o
56
57EXECUTABLE_OBJECTS = \
58    $(OBJECTS)
59
60EXECUTABLE = tdbcli
61
62
63##### Targets #####
64all:     $(EXECUTABLE)
65
66tdbcli:  $(EXECUTABLE_OBJECTS)
67     $(CXXLINK) $(EXECUTABLE_OBJECTS) $(LIBS)
68
69install: $(EXECUTABLE)
70     $(INSTALL) -d ${GEXTTDBEDIT_INSTALLED}/bin
71     $(INSTALL) -m 755 -s $(EXECUTABLE) ${GEXTTDBEDIT_INSTALLED}/bin
72
73clean:
74     rm -f $(OBJECTS) $(EXECUTABLE)
75
76distclean:
77     rm -f $(OBJECTS) $(EXECUTABLE) Makefile
78
79depend:
80     makedepend -Y -- $(DEFS) $(INCLUDES) $(CXXFLAGS) -- $(SOURCES)
Note: See TracBrowser for help on using the browser.