source: gsdl/trunk/common-src/src/getpw/Makefile.in@ 16615

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

Tweak to GSDL_DIR

  • Property svn:keywords set to Author Date Id Revision
File size: 2.0 KB
Line 
1###########################################################################
2#
3# Makefile -- src/getpw
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) 2000-2008 The New Zealand Digital Library Project
9#
10# This program is free software; you can redistribute it and/or modify
11# it under the terms of the GNU General Public License as published by
12# the Free Software Foundation; either version 2 of the License, or
13# (at your option) any later version.
14#
15# This program is distributed in the hope that it will be useful,
16# but WITHOUT ANY WARRANTY; without even the implied warranty of
17# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18# GNU General Public License for more details.
19#
20# You should have received a copy of the GNU General Public License
21# along with this program; if not, write to the Free Software
22# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
23#
24###########################################################################
25
26GSDL_DIR = ../../..
27COMMON_DIR = $(GSDL_DIR)/common-src
28
29CXX = @CXX@
30CXXFLAGS = @CXXFLAGS@ @COMPAT32BITFLAGS@
31DEFS = @DEFS@
32GSDLOS = @gsdlos@
33INCLUDES = -I$(GSDL_DIR) -I$(COMMON_DIR)/src/lib
34INSTALL = @INSTALL@
35LDFLAGS = @LDFLAGS@ @COMPAT32BITFLAGS@
36LIBS = @LIBS@
37
38
39CXXCOMPILE = $(CXX) -c $(CXXFLAGS) $(DEFS) $(INCLUDES)
40CXXLINK = $(CXX) $(LDFLAGS) -o $@
41
42
43.SUFFIXES:
44.SUFFIXES: .cpp .o
45.cpp.o:
46 $(CXXCOMPILE) $<
47
48
49SOURCES = \
50 getpw.cpp
51
52OBJECTS = \
53 getpw.o
54
55EXECUTABLE_OBJECTS = \
56 $(OBJECTS)
57
58EXECUTABLE = getpw
59
60
61# Default target: make the getpw executable
62all: $(EXECUTABLE)
63
64getpw: $(EXECUTABLE_OBJECTS)
65 $(CXXLINK) $(EXECUTABLE_OBJECTS) $(LIBS)
66
67install: $(EXECUTABLE)
68 $(INSTALL) -d $(GSDL_DIR)/bin/$(GSDLOS)
69 $(INSTALL) -m 755 -s $(EXECUTABLE) $(GSDL_DIR)/bin/$(GSDLOS)
70
71clean:
72 rm -f $(OBJECTS) $(EXECUTABLE)
73
74distclean:
75 rm -f $(OBJECTS) $(EXECUTABLE) Makefile
76
77depend:
78 makedepend -Y -- $(DEFS) $(INCLUDES) $(CXXFLAGS) -- $(SOURCES)
Note: See TracBrowser for help on using the repository browser.