0
|
1 |
#
|
|
2 |
# CDDL HEADER START
|
|
3 |
#
|
|
4 |
# The contents of this file are subject to the terms of the
|
|
5 |
# Common Development and Distribution License (the "License").
|
|
6 |
# You may not use this file except in compliance with the License.
|
|
7 |
#
|
|
8 |
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
|
|
9 |
# or http://www.opensolaris.org/os/licensing.
|
|
10 |
# See the License for the specific language governing permissions
|
|
11 |
# and limitations under the License.
|
|
12 |
#
|
|
13 |
# When distributing Covered Code, include this CDDL HEADER in each
|
|
14 |
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
|
|
15 |
# If applicable, add the following below this CDDL HEADER, with the
|
|
16 |
# fields enclosed by brackets "[]" replaced with your own identifying
|
|
17 |
# information: Portions Copyright [yyyy] [name of copyright owner]
|
|
18 |
#
|
|
19 |
# CDDL HEADER END
|
|
20 |
#
|
|
21 |
|
|
22 |
#
|
|
23 |
# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
|
|
24 |
# Use is subject to license terms.
|
|
25 |
#
|
5
|
26 |
# ident "@(#)Makefile.sfw 1.4 09/12/06 SMI"
|
0
|
27 |
#
|
|
28 |
|
|
29 |
VER=$(COMPONENT_NAME:sh)-$(COMPONENT_VERSION:sh)
|
|
30 |
TARBALL=$(VER).tar.gz
|
|
31 |
VER64=$(VER)-64
|
|
32 |
PWD:sh=pwd
|
|
33 |
DIR=$(PWD)
|
|
34 |
include ../Makefile.cmd
|
|
35 |
|
|
36 |
# configure(1) options
|
|
37 |
# (use default --prefix in Makefile.master)
|
|
38 |
CONFIGURE_OPTIONS += --disable-static
|
|
39 |
CONFIGURE_OPTIONS += --disable-error-on-warning
|
|
40 |
CONFIGURE_OPTIONS += ac_cv_type_complex_double=no
|
|
41 |
|
|
42 |
|
|
43 |
|
|
44 |
|
|
45 |
all : all32 all64
|
|
46 |
|
|
47 |
all32: $(VER)/config.status
|
|
48 |
(cd $(VER); env - \
|
|
49 |
LD_OPTINOS="-M $(SRC)/cmd/mapfile_noexstk" \
|
|
50 |
PATH=$(SFW_PATH) \
|
|
51 |
MAKE=$(CCSMAKE) \
|
|
52 |
$(CCSMAKE) )
|
|
53 |
|
|
54 |
all64: $(VER64)/config.status
|
|
55 |
(cd $(VER64); env - \
|
|
56 |
LD_OPTIONS="-M $(SRC)/cmd/mapfile_noexstk" \
|
|
57 |
PATH=$(SFW_PATH) \
|
|
58 |
CFLAGS="-m64" \
|
|
59 |
MAKE=$(CCSMAKE) \
|
|
60 |
$(CCSMAKE) )
|
|
61 |
|
|
62 |
install: all
|
|
63 |
# install the bits in the proto area
|
|
64 |
(cd $(VER); env SRC=$(SRC) \
|
|
65 |
DESTDIR=$(ROOT) \
|
|
66 |
BINDIR=$(ROOT)/usr/bin \
|
|
67 |
PERL=/usr/perl5/bin/perl \
|
|
68 |
INSTALL="$(SRC)/tools/install-proto -c -m 0555" \
|
|
69 |
PATH=$(SFW_PATH) \
|
|
70 |
$(CCSMAKE) install)
|
|
71 |
PKGDIR=$(VER)
|
|
72 |
$(SHELL) ./install-sfw
|
|
73 |
# install 64bit to temp dir
|
|
74 |
(cd $(VER64); $(RM) -r $(DIR)/tmp ; mkdir $(DIR)/tmp; env SRC=$(SRC) \
|
|
75 |
DESTDIR=$(DIR)/tmp \
|
|
76 |
PERL=/usr/perl5/bin/perl \
|
|
77 |
INSTALL="$(SRC)/tools/install-proto -c -m 0555" \
|
|
78 |
PATH=$(SFW_PATH) \
|
|
79 |
$(CCSMAKE) install )
|
|
80 |
VER64=$(VER64) MACH64=$(MACH64) DIR=$(DIR) $(SHELL) ./install-sfw-64
|
|
81 |
# fix the proto area
|
|
82 |
$(SRC)/tools/protofix --pkg $(COMPONENT_PACKAGES:sh) --perm
|
|
83 |
|
|
84 |
$(VER)/config.status: $(VER)/configure
|
|
85 |
(cd $(VER); env - \
|
|
86 |
CC=$(GCC) \
|
|
87 |
PATH=$(SFW_PATH) \
|
5
|
88 |
CPPFLAGS="-I/usr/include/gmp" \
|
0
|
89 |
MAKE=$(CCSMAKE) \
|
|
90 |
./configure $(CONFIGURE_OPTIONS) )
|
|
91 |
|
|
92 |
$(VER64)/config.status: $(VER64)/configure
|
|
93 |
(cd $(VER64);env - \
|
|
94 |
CC=$(GCC64) \
|
|
95 |
CFLAGS="-m64 " \
|
5
|
96 |
CPPFLAGS="-m64 -I/usr/include/gmp" \
|
0
|
97 |
PATH=$(SFW_PATH) \
|
|
98 |
MAKE=$(CCSMAKE) \
|
|
99 |
$(SHELL) ./configure $(CONFIGURE_OPTIONS) )
|
|
100 |
|
|
101 |
$(VER)/configure: $(TARBALL)
|
|
102 |
/usr/bin/gzip -dc $(TARBALL) | tar xpf -
|
|
103 |
touch $(VER)/configure
|
|
104 |
/usr/bin/gpatch -p0 < guile-config-add-relative-path.patch
|
|
105 |
|
|
106 |
$(VER64)/configure: $(TARBALL)
|
|
107 |
-$(RM) -r tmp ; mkdir -p tmp
|
|
108 |
gzip -dc $(TARBALL) | (cd tmp; tar xpf - )
|
|
109 |
rm -rf $(VER64)
|
|
110 |
mv tmp/$(VER) $(VER64); rmdir tmp
|
|
111 |
touch $(VER64)/configure
|
|
112 |
clean:
|
|
113 |
-rm -rf $(VER) $(VER64) tmp
|
|
114 |
|
|
115 |
|
|
116 |
include ../Makefile.targ
|