source: main/branches/64_bit_Greenstone/greenstone2/common-src/src/gdbmedit/gdbmset/Makefile.in@ 23508

Last change on this file since 23508 was 23508, checked in by sjm84, 13 years ago

Committing 64 bit changes into the branch

  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
File size: 2.1 KB
Line 
1###########################################################################
2#
3# Makefile -- common-src/src/gdbmedit/gdbmset
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@
34DEFS = @DEFS@ $(GDBM_DEFINES) $(JDBM_DEFINES) $(SQLITE_DEFINES)
35GSDLOS = @gsdlos@
36INCLUDES = -I$(COMMON_PACKAGES_DIR)/gdbm/include -I$(COMMON_DIR)/src/lib
37INSTALL = @INSTALL@
38LDFLAGS = @LDFLAGS@
39LIBS = @LIBS@ $(COMMON_PACKAGES_DIR)/gdbm/lib/libgdbm.a
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 gdbmset.cpp
54
55OBJECTS = \
56 gdbmset.o
57
58EXECUTABLE_OBJECTS = \
59 $(OBJECTS)
60
61EXECUTABLE = gdbmset
62
63
64# Default target: make the gdbmset executable
65all: $(EXECUTABLE)
66
67gdbmset: $(EXECUTABLE_OBJECTS)
68 $(CXXLINK) $(EXECUTABLE_OBJECTS) $(LIBS)
69
70install: $(EXECUTABLE)
71 $(INSTALL) -d $(GSDL_DIR)/bin/$(GSDLOS)
72 $(INSTALL) -m 755 -s $(EXECUTABLE) $(GSDL_DIR)/bin/$(GSDLOS)
73
74clean:
75 rm -f $(OBJECTS) $(EXECUTABLE)
76
77distclean:
78 rm -f $(OBJECTS) $(EXECUTABLE) Makefile
79
80depend:
81 makedepend -Y -- $(DEFS) $(INCLUDES) $(CXXFLAGS) -- $(SOURCES)
Note: See TracBrowser for help on using the repository browser.