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

Last change on this file since 18224 was 18224, checked in by mdewsnip, 15 years ago

GRRRR -- fixed up a whole lot more inconsistencies in the Makefiles. These were all perfect before the build-src/common-src/runtime-src split!!

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