source: gsdl/trunk/src/getpw/Makefile.in@ 15917

Last change on this file since 15917 was 15917, checked in by mdewsnip, 16 years ago

Changed getpw Makefile to handle the "lib" to "src/lib", and also tidied up to match the main Makefiles.

  • Property svn:keywords set to Author Date Id Revision
File size: 2.0 KB
RevLine 
[1493]1###########################################################################
2#
[15917]3# Makefile -- src/getpw
[1493]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#
[15917]8# Copyright (C) 2000-2008 The New Zealand Digital Library Project
[1493]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
[15917]26GSDL_DIR = ../..
27
28
[2276]29CXX = @CXX@
[15917]30CXXFLAGS = @CXXFLAGS@ @COMPAT32BITFLAGS@
[1493]31DEFS = @DEFS@
32GSDLOS = @gsdlos@
[15917]33INCLUDES = @INCLUDES@ -I$(GSDL_DIR) -I$(GSDL_DIR)/src/lib
[2900]34INSTALL = @INSTALL@
[15917]35LDFLAGS = @LDFLAGS@ @COMPAT32BITFLAGS@
36LIBS = @LIBS@
37
38
39CXXCOMPILE = $(CXX) -c $(CXXFLAGS) $(DEFS) $(INCLUDES)
40CXXLINK = $(CXX) $(LDFLAGS) -o $@
41
42
[1493]43.SUFFIXES:
44.SUFFIXES: .cpp .o
45.cpp.o:
[15917]46 $(CXXCOMPILE) $<
[1493]47
48
[15917]49SOURCES = \
50 getpw.cpp
[1493]51
[15917]52OBJECTS = \
53 getpw.o \
[1493]54
[15917]55EXECUTABLE_OBJECTS = \
56 $(OBJECTS)
[1493]57
[15917]58EXECUTABLE = getpw
[1493]59
60
[15917]61# Default target: make the getpw executable
62all: $(EXECUTABLE)
[1493]63
[15917]64hashfile: $(EXECUTABLE_OBJECTS)
65 $(CXXLINK) $(EXECUTABLE_OBJECTS) $(LIBS)
[1493]66
[15917]67install: $(EXECUTABLE)
68 $(INSTALL) -d $(GSDL_DIR)/bin/$(GSDLOS)
69 $(INSTALL) -m 755 -s $(EXEC) $(GSDL_DIR)/bin/$(GSDLOS)
[1493]70
[15917]71clean:
72 rm -f $(OBJECTS) $(EXECUTABLE)
[1493]73
[15917]74distclean:
75 rm -f $(OBJECTS) $(EXECUTABLE) Makefile
[1493]76
[15917]77depend:
78 makedepend -Y -- $(DEFS) $(INCLUDES) $(CXXFLAGS) -- $(SOURCES)
Note: See TracBrowser for help on using the repository browser.