root/main/trunk/greenstone2/common-src/src/gdbmedit/db2txt/Makefile.in @ 27600

Revision 27600, 2.3 KB (checked in by ak19, 6 years ago)

Two things 1. Moving John's windows (un)locking to new file winlock.cpp and 2. Adding sorting minus option to db2txt to help with diffcol.pl

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