6
|
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 |
#
|
17
|
22 |
# Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
|
6
|
23 |
#
|
|
24 |
|
17
|
25 |
#ident "@(#)Makefile.sfw 1.2 10/04/23 SMI"
|
6
|
26 |
|
|
27 |
|
|
28 |
VER=$(COMPONENT_NAME:sh)-$(COMPONENT_VERSION:sh)
|
|
29 |
|
|
30 |
include ../Makefile.cmd
|
|
31 |
|
|
32 |
CCC += -norunpath
|
|
33 |
|
|
34 |
all: $(VER)/config.status
|
|
35 |
(cd $(VER); env \
|
|
36 |
"CC=$(CC)" \
|
|
37 |
"CXX=$(CCC)" \
|
|
38 |
"CFLAGS=$(CFLAGS)" \
|
|
39 |
"LD_OPTIONS=-M $(SRC)/cmd/mapfile_noexstk -L/usr/sfw/lib -R/usr/sfw/lib" \
|
|
40 |
"PATH=$(SFW_PATH)" \
|
|
41 |
"MAKE=$(CCSMAKE)" \
|
|
42 |
"INSTALL=$(INSTALL)" \
|
|
43 |
$(CCSMAKE))
|
|
44 |
(cd $(VER)/docs; env \
|
|
45 |
"CC=$(CC)" \
|
|
46 |
"CXX=$(CCC)" \
|
|
47 |
"CFLAGS=$(CFLAGS)" \
|
|
48 |
"LD_OPTIONS=-M $(SRC)/cmd/mapfile_noexstk -L/usr/sfw/lib -R/usr/sfw/lib" \
|
|
49 |
"PATH=$(SFW_PATH)" \
|
|
50 |
"MAKE=$(CCSMAKE)" \
|
|
51 |
"INSTALL=$(INSTALL)" \
|
|
52 |
$(CCSMAKE) info)
|
|
53 |
|
|
54 |
install: all
|
|
55 |
VER=$(VER) $(SH) ./install-sfw
|
|
56 |
|
|
57 |
# Unfortunately, the following configure command causes the output
|
|
58 |
# of "Fitting error variables: yes". Because this output has a ":"
|
|
59 |
# and the word "error" in it, Sun's nightly script (used to build
|
|
60 |
# SFW) shows this line in Build errors, and the nightly fails.
|
|
61 |
# Therefore, we will use sed to slightly modify the message.
|
|
62 |
|
|
63 |
$(VER)/config.status: $(VER)/configure
|
|
64 |
(cd $(VER); env \
|
|
65 |
"CC=$(CC)" \
|
|
66 |
"CXX=$(CCC)" \
|
|
67 |
"CFLAGS=$(CFLAGS)" \
|
|
68 |
"LD_OPTIONS=-M $(SRC)/cmd/mapfile_noexstk -L/usr/sfw/lib -R/usr/sfw/lib" \
|
|
69 |
"PATH=$(SFW_PATH)" \
|
|
70 |
"MAKE=$(CCSMAKE)" \
|
|
71 |
"INSTALL=$(INSTALL)" \
|
|
72 |
./configure --prefix=/usr --libexecdir=/usr/lib | \
|
|
73 |
sed 's/\<Fitting error variables\>/Fitting_error_variables/' )
|
|
74 |
|
|
75 |
$(VER)/configure: $(VER).tar.gz
|
|
76 |
$(GTAR) zxpf $(VER).tar.gz --no-same-owner
|
|
77 |
patch $(VER)/term/gd.trm < arial.diff
|
17
|
78 |
patch $(VER)/src/syscfg.h < syscfg.h.diff
|
6
|
79 |
touch $(VER)/configure
|
|
80 |
|
|
81 |
clean:
|
|
82 |
-rm -rf $(VER)
|
|
83 |
|
|
84 |
include ../Makefile.targ
|
|
85 |
|
|
86 |
FRC:
|