0
|
1 |
#
|
|
2 |
#
|
|
3 |
# CDDL HEADER START
|
|
4 |
#
|
|
5 |
# The contents of this file are subject to the terms of the
|
|
6 |
# Common Development and Distribution License (the "License").
|
|
7 |
# You may not use this file except in compliance with the License.
|
|
8 |
#
|
|
9 |
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
|
|
10 |
# or http://www.opensolaris.org/os/licensing.
|
|
11 |
# See the License for the specific language governing permissions
|
|
12 |
# and limitations under the License.
|
|
13 |
#
|
|
14 |
# When distributing Covered Code, include this CDDL HEADER in each
|
|
15 |
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
|
|
16 |
# If applicable, add the following below this CDDL HEADER, with the
|
|
17 |
# fields enclosed by brackets "[]" replaced with your own identifying
|
|
18 |
# information: Portions Copyright [yyyy] [name of copyright owner]
|
|
19 |
#
|
|
20 |
# CDDL HEADER END
|
|
21 |
#
|
|
22 |
# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
|
|
23 |
# Use is subject to license terms.
|
|
24 |
#
|
|
25 |
#ident "@(#)Makefile.sfw 1.8 08/02/09 SMI"
|
|
26 |
#
|
|
27 |
|
|
28 |
# Generated by: PUFA (For Solaris 9) Version S9.1.5
|
|
29 |
|
|
30 |
VER=psutils
|
|
31 |
PATCHL=p17
|
|
32 |
|
|
33 |
include ../Makefile.cmd
|
|
34 |
|
|
35 |
SFW_PATH="$(SPRO_VROOT)/bin:/usr/perl5/bin:/usr/sfw/bin:$(PATH)"
|
|
36 |
|
|
37 |
all: $(VER)/config.status
|
|
38 |
(cd $(VER); env \
|
|
39 |
CC=$(CC) \
|
|
40 |
CFLAGS='$(CFLAGS) -DPAPER=\"letter\" -DUNIX' \
|
|
41 |
INCLUDEDIR=$(ROOT)/usr/share/psutils \
|
|
42 |
PERL=/usr/perl5/bin/perl \
|
|
43 |
PATH=$(SFW_PATH) \
|
|
44 |
MAKE=$(CCSMAKE) \
|
|
45 |
$(CCSMAKE) -f Makefile.unix)
|
|
46 |
@find . -name core -exec rm -f {} \;
|
|
47 |
|
|
48 |
# Leave in symlinks for compatibility
|
|
49 |
COMPAT= epsffit extractres fixdlsrps fixfmps fixmacps fixpsditps fixpspps \
|
|
50 |
fixscribeps fixtpps fixwfwps fixwpps fixwwps getafm includeres psbook \
|
|
51 |
psmerge psnup psresize psselect pstops showchar
|
|
52 |
|
|
53 |
COMPATLINKS = $(COMPAT:%=$(ROOTSFWBIN)/%)
|
|
54 |
$(COMPATLINKS):
|
|
55 |
$(RM) $@; $(SYMLINK) ../../bin/$(@F) $@
|
|
56 |
|
|
57 |
install: all $(COMPATLINKS)
|
|
58 |
# install the bits in the proto area
|
|
59 |
cd $(VER); env SRC=$(SRC) \
|
|
60 |
DESTDIR=$(ROOT) \
|
|
61 |
MANSCRIPT=../sunman-stability \
|
|
62 |
INSTALL="$(SRC)/tools/install-proto -c -m 0555" \
|
|
63 |
INSTALLMAN="$(SRC)/tools/install-proto -c -m 0444" \
|
|
64 |
BINDIR=$(ROOT)/usr/bin \
|
|
65 |
INCLUDEDIR=$(ROOT)/usr/share/psutils \
|
|
66 |
MANDIR=$(ROOT)/usr/share/man/man1 \
|
|
67 |
PERL=/usr/perl5/bin/perl \
|
|
68 |
PATH=$(SFW_PATH) \
|
|
69 |
MAKE=$(CCSMAKE) \
|
|
70 |
$(CCSMAKE) -f Makefile.unix install
|
|
71 |
# fix the proto area
|
|
72 |
$(SRC)/tools/protofix --pkg SUNWpsutils --perm
|
|
73 |
|
|
74 |
check: $(VER)/config.status
|
|
75 |
|
|
76 |
|
|
77 |
$(VER)/config.status: $(VER)/configure
|
|
78 |
|
|
79 |
$(VER)/configure: $(VER)-$(PATCHL).tar.gz
|
|
80 |
/usr/bin/gzip -dc $(VER)-$(PATCHL).tar.gz | \
|
|
81 |
$(GTAR) xpf - --no-same-owner
|
|
82 |
touch $(VER)/configure
|
|
83 |
|
|
84 |
clean:
|
|
85 |
-rm -rf $(VER)
|
|
86 |
|
|
87 |
include ../Makefile.targ
|
|
88 |
|
|
89 |
FRC:
|