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