Makefile.master (35a86aa15b9b2d79753a6e9a27890c7193e60958) Makefile.master (8ad60789b9913d5b2118fe76d8cd7a661d8ae8b6)
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, Version 1.0 only
6# (the "License"). You may not use this file except in compliance
7# with the License.
8#

--- 41 unchanged lines hidden (view full) ---

50#
51# EXPORT_RELEASE_BUILD controls whether binaries are built in a form that
52# can be released for export under a binary license. It is orthogonal to
53# the other *RELEASE_BUILD settings.
54#
55# STRIP_COMMENTS toggles comment section striping. Generally the same setting
56# as INTERNAL_RELEASE_BUILD.
57#
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, Version 1.0 only
6# (the "License"). You may not use this file except in compliance
7# with the License.
8#

--- 41 unchanged lines hidden (view full) ---

50#
51# EXPORT_RELEASE_BUILD controls whether binaries are built in a form that
52# can be released for export under a binary license. It is orthogonal to
53# the other *RELEASE_BUILD settings.
54#
55# STRIP_COMMENTS toggles comment section striping. Generally the same setting
56# as INTERNAL_RELEASE_BUILD.
57#
58# STRIPFLAG is similar. It is set here for use in lower level Makefiles to
59# allow a single point change to affect the entire build.
60#
61# __GNUC toggles the building of ON components using gcc and related tools.
62# Normally set to `#', set it to `' to do gcc build.
63#
64# The declaration POUND_SIGN is always '#'. This is needed to get around the
65# make feature that '#' is always a comment delimiter, even when escaped or
66# quoted. The only way of generating this is the :sh macro mechanism. Note
67# however that in general :sh macros should be avoided in makefiles that are
68# widely included into other makefiles, as the resulting shell executions can

--- 14 unchanged lines hidden (view full) ---

83# INTEL_BLD is '#' for a Sparc build.
84SPARC_BLD_1= $(MACH:i386=$(POUND_SIGN))
85SPARC_BLD= $(SPARC_BLD_1:sparc=)
86INTEL_BLD_1= $(MACH:sparc=$(POUND_SIGN))
87INTEL_BLD= $(INTEL_BLD_1:i386=)
88
89STRIP_COMMENTS= $(INTERNAL_RELEASE_BUILD)
90
58# __GNUC toggles the building of ON components using gcc and related tools.
59# Normally set to `#', set it to `' to do gcc build.
60#
61# The declaration POUND_SIGN is always '#'. This is needed to get around the
62# make feature that '#' is always a comment delimiter, even when escaped or
63# quoted. The only way of generating this is the :sh macro mechanism. Note
64# however that in general :sh macros should be avoided in makefiles that are
65# widely included into other makefiles, as the resulting shell executions can

--- 14 unchanged lines hidden (view full) ---

80# INTEL_BLD is '#' for a Sparc build.
81SPARC_BLD_1= $(MACH:i386=$(POUND_SIGN))
82SPARC_BLD= $(SPARC_BLD_1:sparc=)
83INTEL_BLD_1= $(MACH:sparc=$(POUND_SIGN))
84INTEL_BLD= $(INTEL_BLD_1:i386=)
85
86STRIP_COMMENTS= $(INTERNAL_RELEASE_BUILD)
87
91# Historical notes: at one point, STRIPFLAG was set to '-s' for root builds,
92# and empty for non-root. It's now set empty all the time, so that builds
93# using manual invocation of "make install" will have debug data (as they did
94# when run as non-root before). The 'nightly' script overrides DEF_STRIPFLAG
95# with '-s' so that nightly builds are stripped -- since nightlies were once
96# done only as root, that preserves the known nightly behavior. The
97# non-nightly behavior can always be overridden by putting "STRIPFLAG=" in the
98# environment, on the 'make' command line, or by overriding STRIPFLAG in the
99# subsystem Makefile itself. STRIP_COMMENTS, although similar in nature, has
100# always been controlled by INTERNAL_RELEASE_BUILD (always set by nightly).
101
102DEF_STRIPFLAG=
103STRIPFLAG=$(DEF_STRIPFLAG)
104
105# set __GNUC= in the environment to build 32-bit with the gcc compiler.
106# The default is to use the Sun Studio 10 compiler for all processor types.
107__GNUC= $(POUND_SIGN)
108
109# set __GNUC64= in the environment to build 64-bit with the gcc compiler.
110# The default is to use the Sun Studio 10 compiler by using the __GNUC
111# setting.
112__GNUC64= $(__GNUC)

--- 666 unchanged lines hidden (view full) ---

779
780STRIP_STABS= :
781$(RELEASE_BUILD)STRIP_STABS= $(STRIP) -x $@
782
783POST_PROCESS_O= $(PROCESS_COMMENT) $@
784POST_PROCESS_A=
785POST_PROCESS_SO= $(PROCESS_COMMENT) $@ ; $(STRIP_STABS) ; \
786 $(ELFSIGN_OBJECT)
88# set __GNUC= in the environment to build 32-bit with the gcc compiler.
89# The default is to use the Sun Studio 10 compiler for all processor types.
90__GNUC= $(POUND_SIGN)
91
92# set __GNUC64= in the environment to build 64-bit with the gcc compiler.
93# The default is to use the Sun Studio 10 compiler by using the __GNUC
94# setting.
95__GNUC64= $(__GNUC)

--- 666 unchanged lines hidden (view full) ---

762
763STRIP_STABS= :
764$(RELEASE_BUILD)STRIP_STABS= $(STRIP) -x $@
765
766POST_PROCESS_O= $(PROCESS_COMMENT) $@
767POST_PROCESS_A=
768POST_PROCESS_SO= $(PROCESS_COMMENT) $@ ; $(STRIP_STABS) ; \
769 $(ELFSIGN_OBJECT)
787POST_PROCESS= $(PROCESS_COMMENT) $@ ; $(ELFSIGN_OBJECT)
770POST_PROCESS= $(PROCESS_COMMENT) $@ ; $(STRIP_STABS) ; \
771 $(ELFSIGN_OBJECT)
788
789#
790# The PKGDEFS macro points to the source directory containing the majority
791# of ON's package definitions plus Makefiles with general package creation
792# rules.
793#
794# PKGARCHIVE specifies the default location where packages should be
795# placed if built.

--- 139 unchanged lines hidden ---
772
773#
774# The PKGDEFS macro points to the source directory containing the majority
775# of ON's package definitions plus Makefiles with general package creation
776# rules.
777#
778# PKGARCHIVE specifies the default location where packages should be
779# placed if built.

--- 139 unchanged lines hidden ---