[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] | 26 | GSDL_DIR = ../..
|
---|
| 27 |
|
---|
| 28 |
|
---|
[2276] | 29 | CXX = @CXX@
|
---|
[15917] | 30 | CXXFLAGS = @CXXFLAGS@ @COMPAT32BITFLAGS@
|
---|
[1493] | 31 | DEFS = @DEFS@
|
---|
| 32 | GSDLOS = @gsdlos@
|
---|
[15917] | 33 | INCLUDES = @INCLUDES@ -I$(GSDL_DIR) -I$(GSDL_DIR)/src/lib
|
---|
[2900] | 34 | INSTALL = @INSTALL@
|
---|
[15917] | 35 | LDFLAGS = @LDFLAGS@ @COMPAT32BITFLAGS@
|
---|
| 36 | LIBS = @LIBS@
|
---|
| 37 |
|
---|
| 38 |
|
---|
| 39 | CXXCOMPILE = $(CXX) -c $(CXXFLAGS) $(DEFS) $(INCLUDES)
|
---|
| 40 | CXXLINK = $(CXX) $(LDFLAGS) -o $@
|
---|
| 41 |
|
---|
| 42 |
|
---|
[1493] | 43 | .SUFFIXES:
|
---|
| 44 | .SUFFIXES: .cpp .o
|
---|
| 45 | .cpp.o:
|
---|
[15917] | 46 | $(CXXCOMPILE) $<
|
---|
[1493] | 47 |
|
---|
| 48 |
|
---|
[15917] | 49 | SOURCES = \
|
---|
| 50 | getpw.cpp
|
---|
[1493] | 51 |
|
---|
[15917] | 52 | OBJECTS = \
|
---|
| 53 | getpw.o \
|
---|
[1493] | 54 |
|
---|
[15917] | 55 | EXECUTABLE_OBJECTS = \
|
---|
| 56 | $(OBJECTS)
|
---|
[1493] | 57 |
|
---|
[15917] | 58 | EXECUTABLE = getpw
|
---|
[1493] | 59 |
|
---|
| 60 |
|
---|
[15917] | 61 | # Default target: make the getpw executable
|
---|
| 62 | all: $(EXECUTABLE)
|
---|
[1493] | 63 |
|
---|
[15917] | 64 | hashfile: $(EXECUTABLE_OBJECTS)
|
---|
| 65 | $(CXXLINK) $(EXECUTABLE_OBJECTS) $(LIBS)
|
---|
[1493] | 66 |
|
---|
[15917] | 67 | install: $(EXECUTABLE)
|
---|
| 68 | $(INSTALL) -d $(GSDL_DIR)/bin/$(GSDLOS)
|
---|
| 69 | $(INSTALL) -m 755 -s $(EXEC) $(GSDL_DIR)/bin/$(GSDLOS)
|
---|
[1493] | 70 |
|
---|
[15917] | 71 | clean:
|
---|
| 72 | rm -f $(OBJECTS) $(EXECUTABLE)
|
---|
[1493] | 73 |
|
---|
[15917] | 74 | distclean:
|
---|
| 75 | rm -f $(OBJECTS) $(EXECUTABLE) Makefile
|
---|
[1493] | 76 |
|
---|
[15917] | 77 | depend:
|
---|
| 78 | makedepend -Y -- $(DEFS) $(INCLUDES) $(CXXFLAGS) -- $(SOURCES)
|
---|