source: gsdl/trunk/common-src/src/gdbmedit/txt2db/Makefile.in@ 16605

Last change on this file since 16605 was 16605, checked in by davidb, 16 years ago

Fix to GSDL_DIR so binaries installed in correct top-level folder

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