Makefile.master (e119f2433126d4147d64877f8987520e416038e5) | Makefile.master (34ae5cdf42c9fd8bc75aedb3a91cc2fba8d5182c) |
---|---|
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 --- 30 unchanged lines hidden (view full) --- 39# Adjunct for building things that run on the build machine. 40# 41NATIVE_ADJUNCT= /usr 42 43# 44# RELEASE_BUILD should be cleared for final release builds. 45# NOT_RELEASE_BUILD is exactly what the name implies. 46# | 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 --- 30 unchanged lines hidden (view full) --- 39# Adjunct for building things that run on the build machine. 40# 41NATIVE_ADJUNCT= /usr 42 43# 44# RELEASE_BUILD should be cleared for final release builds. 45# NOT_RELEASE_BUILD is exactly what the name implies. 46# |
47# INTERNAL_RELEASE_BUILD is a subset of RELEASE_BUILD. It mostly controls 48# identification strings. Enabling RELEASE_BUILD automatically enables 49# INTERNAL_RELEASE_BUILD. 50# 51# STRIP_COMMENTS toggles comment section striping. Generally the same setting 52# as INTERNAL_RELEASE_BUILD. 53# | |
54# __GNUC toggles the building of ON components using gcc and related tools. 55# Normally set to `#', set it to `' to do gcc build. 56# 57# The declaration POUND_SIGN is always '#'. This is needed to get around the 58# make feature that '#' is always a comment delimiter, even when escaped or 59# quoted. We use this macro expansion method to get POUND_SIGN rather than 60# always breaking out a shell because the general case can cause a noticable 61# slowdown in build times when so many Makefiles include Makefile.master. 62# 63# While the majority of users are expected to override the setting below 64# with an env file (via nightly or bldenv), if you aren't building that way 65# (ie, you're using "ws" or some other bootstrapping method) then you need 66# this definition in order to avoid the subshell invocation mentioned above. 67# 68 69PRE_POUND= pre\# 70POUND_SIGN= $(PRE_POUND:pre\%=%) 71 72NOT_RELEASE_BUILD= | 47# __GNUC toggles the building of ON components using gcc and related tools. 48# Normally set to `#', set it to `' to do gcc build. 49# 50# The declaration POUND_SIGN is always '#'. This is needed to get around the 51# make feature that '#' is always a comment delimiter, even when escaped or 52# quoted. We use this macro expansion method to get POUND_SIGN rather than 53# always breaking out a shell because the general case can cause a noticable 54# slowdown in build times when so many Makefiles include Makefile.master. 55# 56# While the majority of users are expected to override the setting below 57# with an env file (via nightly or bldenv), if you aren't building that way 58# (ie, you're using "ws" or some other bootstrapping method) then you need 59# this definition in order to avoid the subshell invocation mentioned above. 60# 61 62PRE_POUND= pre\# 63POUND_SIGN= $(PRE_POUND:pre\%=%) 64 65NOT_RELEASE_BUILD= |
73INTERNAL_RELEASE_BUILD= $(POUND_SIGN) | |
74RELEASE_BUILD= $(POUND_SIGN) 75$(RELEASE_BUILD)NOT_RELEASE_BUILD= $(POUND_SIGN) | 66RELEASE_BUILD= $(POUND_SIGN) 67$(RELEASE_BUILD)NOT_RELEASE_BUILD= $(POUND_SIGN) |
76$(RELEASE_BUILD)INTERNAL_RELEASE_BUILD= | |
77PATCH_BUILD= $(POUND_SIGN) 78 79# SPARC_BLD is '#' for an Intel build. 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 | 68PATCH_BUILD= $(POUND_SIGN) 69 70# SPARC_BLD is '#' for an Intel build. 71# INTEL_BLD is '#' for a Sparc build. 72SPARC_BLD_1= $(MACH:i386=$(POUND_SIGN)) 73SPARC_BLD= $(SPARC_BLD_1:sparc=) 74INTEL_BLD_1= $(MACH:sparc=$(POUND_SIGN)) 75INTEL_BLD= $(INTEL_BLD_1:i386=) 76 |
86STRIP_COMMENTS= $(INTERNAL_RELEASE_BUILD) 87 | |
88# The variables below control the compilers used during the build. 89# There are a number of permutations. 90# 91# __GNUC and __SUNC control (and indicate) the primary compiler. Whichever 92# one is not POUND_SIGN is the primary, with the other as the shadow. They 93# may also be used to control entirely compiler-specific Makefile assignments. 94# __SUNC and Sun Studio are the default. 95# --- 867 unchanged lines hidden (view full) --- 963RELEASE= $(RELEASE_MAJOR).$(RELEASE_MINOR) 964VERSION= SunOS Development 965PATCHID= $(VERSION) 966RELEASE_DATE= release date not set 967PATCH_DATE= $(RELEASE_DATE) 968RELEASE_CM= "@($(POUND_SIGN))SunOS $(RELEASE) $(PATCHID) $(PATCH_DATE)" 969DEV_CM= "@($(POUND_SIGN))SunOS Internal Development: non-nightly build" 970 | 77# The variables below control the compilers used during the build. 78# There are a number of permutations. 79# 80# __GNUC and __SUNC control (and indicate) the primary compiler. Whichever 81# one is not POUND_SIGN is the primary, with the other as the shadow. They 82# may also be used to control entirely compiler-specific Makefile assignments. 83# __SUNC and Sun Studio are the default. 84# --- 867 unchanged lines hidden (view full) --- 952RELEASE= $(RELEASE_MAJOR).$(RELEASE_MINOR) 953VERSION= SunOS Development 954PATCHID= $(VERSION) 955RELEASE_DATE= release date not set 956PATCH_DATE= $(RELEASE_DATE) 957RELEASE_CM= "@($(POUND_SIGN))SunOS $(RELEASE) $(PATCHID) $(PATCH_DATE)" 958DEV_CM= "@($(POUND_SIGN))SunOS Internal Development: non-nightly build" 959 |
971PROCESS_COMMENT= @?${MCS} -c -a $(RELEASE_CM) -a $(DEV_CM) 972$(STRIP_COMMENTS)PROCESS_COMMENT= @?${MCS} -d -a $(RELEASE_CM) -a $(DEV_CM) | 960PROCESS_COMMENT= @?${MCS} -d -a $(RELEASE_CM) -a $(DEV_CM) |
973$(RELEASE_BUILD)PROCESS_COMMENT= @?${MCS} -d -a $(RELEASE_CM) 974 975STRIP_STABS= : 976$(RELEASE_BUILD)STRIP_STABS= $(STRIP) -x $@ 977$(SRCDBGBLD)STRIP_STABS= : 978 979POST_PROCESS_O= $(PROCESS_COMMENT) $@ 980POST_PROCESS_A= --- 190 unchanged lines hidden --- | 961$(RELEASE_BUILD)PROCESS_COMMENT= @?${MCS} -d -a $(RELEASE_CM) 962 963STRIP_STABS= : 964$(RELEASE_BUILD)STRIP_STABS= $(STRIP) -x $@ 965$(SRCDBGBLD)STRIP_STABS= : 966 967POST_PROCESS_O= $(PROCESS_COMMENT) $@ 968POST_PROCESS_A= --- 190 unchanged lines hidden --- |