annotate usr/src/Makefile @ 13983:fe80600e1f8e

3606 zpool status -x shouldn't warn about old on-disk format Reviewed by: Christopher Siden <christopher.siden@delphix.com> Reviewed by: Matthew Ahrens <mahrens@delphix.com> Reviewed by: Richard Elling <richard.elling@dey-sys.com> Reviewed by: George Wilson <george.wilson@delphix.com> Approved by: Dan McDonald <danmcd@nexenta.com>
author Tim Connors <tconnors@rather.puzzling.org>
date Mon, 11 Mar 2013 16:29:50 -0800
parents 0bcf78798346
children 9a220e49d686
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
1 #
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
2 # CDDL HEADER START
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
3 #
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
4 # The contents of this file are subject to the terms of the
1167
9608ad751c4d 6289535 build_cscope complains a bit on x86
kupfer
parents: 920
diff changeset
5 # Common Development and Distribution License (the "License").
9608ad751c4d 6289535 build_cscope complains a bit on x86
kupfer
parents: 920
diff changeset
6 # You may not use this file except in compliance with the License.
0
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
7 #
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
9 # or http://www.opensolaris.org/os/licensing.
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
10 # See the License for the specific language governing permissions
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
11 # and limitations under the License.
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
12 #
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
13 # When distributing Covered Code, include this CDDL HEADER in each
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
15 # If applicable, add the following below this CDDL HEADER, with the
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
16 # fields enclosed by brackets "[]" replaced with your own identifying
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
17 # information: Portions Copyright [yyyy] [name of copyright owner]
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
18 #
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
19 # CDDL HEADER END
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
20 #
13899
0bcf78798346 3311 Want a test framework for arbitrary OS unit tests
John Wren Kennedy <john.kennedy@delphix.com>
parents: 13815
diff changeset
21
0
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
22 #
12776
0a254b4b5ca4 6932341 bfu should be removed
jmcp <James.McPherson@Sun.COM>
parents: 11838
diff changeset
23 # Copyright (c) 1989, 2010, Oracle and/or its affiliates. All rights reserved.
13899
0bcf78798346 3311 Want a test framework for arbitrary OS unit tests
John Wren Kennedy <john.kennedy@delphix.com>
parents: 13815
diff changeset
24 # Copyright (c) 2012 by Delphix. All rights reserved.
12776
0a254b4b5ca4 6932341 bfu should be removed
jmcp <James.McPherson@Sun.COM>
parents: 11838
diff changeset
25 #
13899
0bcf78798346 3311 Want a test framework for arbitrary OS unit tests
John Wren Kennedy <john.kennedy@delphix.com>
parents: 13815
diff changeset
26
0
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
27 #
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
28 # Makefile for system source
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
29 #
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
30 # include global definitions
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
31 include Makefile.master
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
32 #
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
33 # the Targetdirs file is the AT&T target.dirs file in a makefile format.
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
34 # it defines TARGETDIRS and ROOTDIRS.
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
35 include Targetdirs
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
36
13899
0bcf78798346 3311 Want a test framework for arbitrary OS unit tests
John Wren Kennedy <john.kennedy@delphix.com>
parents: 13815
diff changeset
37 COMMON_SUBDIRS= uts lib cmd ucblib ucbcmd psm man test
12858
e7476a71a02b 6969590 usr/src/Makefile needs better expression of its dependencies
Mark J. Nelson <Mark.J.Nelson@Oracle.COM>
parents: 12776
diff changeset
38 sparc_SUBDIRS= stand
e7476a71a02b 6969590 usr/src/Makefile needs better expression of its dependencies
Mark J. Nelson <Mark.J.Nelson@Oracle.COM>
parents: 12776
diff changeset
39 i386_SUBDIRS= grub
0
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
40
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
41 #
12858
e7476a71a02b 6969590 usr/src/Makefile needs better expression of its dependencies
Mark J. Nelson <Mark.J.Nelson@Oracle.COM>
parents: 12776
diff changeset
42 # sparc needs to build stand before psm
0
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
43 #
12858
e7476a71a02b 6969590 usr/src/Makefile needs better expression of its dependencies
Mark J. Nelson <Mark.J.Nelson@Oracle.COM>
parents: 12776
diff changeset
44 $(SPARC_BLD)psm: stand
0
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
45
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
46 SUBDIRS= $(COMMON_SUBDIRS) $($(MACH)_SUBDIRS)
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
47
10754
bc532f9d3ee0 PSARC 2009/539 Removal of ucb headers and lint libraries
Garrett D'Amore <Garrett.Damore@Sun.COM>
parents: 10702
diff changeset
48 HDRSUBDIRS= uts head lib cmd
0
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
49
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
50 # UCB headers are bug-for-bug compatible and not checkable against the header
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
51 # standards.
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
52 #
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
53 CHKHDRSUBDIRS= head uts lib
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
54
6094
3154969ecb41 6591892 ipf/netinet/Makefile incorrectly tries to install ip_icmp.h
akolb
parents: 5194
diff changeset
55 #
3154969ecb41 6591892 ipf/netinet/Makefile incorrectly tries to install ip_icmp.h
akolb
parents: 5194
diff changeset
56 # Headers that can be built in parallel
3154969ecb41 6591892 ipf/netinet/Makefile incorrectly tries to install ip_icmp.h
akolb
parents: 5194
diff changeset
57 #
10754
bc532f9d3ee0 PSARC 2009/539 Removal of ucb headers and lint libraries
Garrett D'Amore <Garrett.Damore@Sun.COM>
parents: 10702
diff changeset
58 PARALLEL_HEADERS = sysheaders userheaders libheaders cmdheaders
6094
3154969ecb41 6591892 ipf/netinet/Makefile incorrectly tries to install ip_icmp.h
akolb
parents: 5194
diff changeset
59
3154969ecb41 6591892 ipf/netinet/Makefile incorrectly tries to install ip_icmp.h
akolb
parents: 5194
diff changeset
60 #
3154969ecb41 6591892 ipf/netinet/Makefile incorrectly tries to install ip_icmp.h
akolb
parents: 5194
diff changeset
61 # Directories that can be built in parallel
3154969ecb41 6591892 ipf/netinet/Makefile incorrectly tries to install ip_icmp.h
akolb
parents: 5194
diff changeset
62 #
13304
b54231762cfa 243 system manual pages should live with the software
Richard Lowe <richlowe@richlowe.net>
parents: 13236
diff changeset
63 PARALLEL_DIRS = uts lib man
6094
3154969ecb41 6591892 ipf/netinet/Makefile incorrectly tries to install ip_icmp.h
akolb
parents: 5194
diff changeset
64
0
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
65 # The check target also causes smf(5) service manifests to be validated.
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
66 CHKMFSTSUBDIRS= cmd
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
67
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
68 MSGSUBDIRS= cmd ucbcmd lib
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
69 DOMAINS= \
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
70 SUNW_OST_ADMIN \
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
71 SUNW_OST_NETRPC \
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
72 SUNW_OST_OSCMD \
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
73 SUNW_OST_OSLIB \
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
74 SUNW_OST_UCBCMD \
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
75 SUNW_OST_ZONEINFO
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
76
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
77 MSGDDIRS= $(DOMAINS:%=$(MSGROOT)/%)
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
78 MSGDIRS= $(MSGROOT) $(MSGDDIRS) $(MSGROOT)/LC_TIME
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
79
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
80 all all_xmod := TARGET= all
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
81 install install_xmod := TARGET= install
12858
e7476a71a02b 6969590 usr/src/Makefile needs better expression of its dependencies
Mark J. Nelson <Mark.J.Nelson@Oracle.COM>
parents: 12776
diff changeset
82 install1 := TARGET= install
e7476a71a02b 6969590 usr/src/Makefile needs better expression of its dependencies
Mark J. Nelson <Mark.J.Nelson@Oracle.COM>
parents: 12776
diff changeset
83 install2 := TARGET= install
0
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
84 install_h := TARGET= install_h
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
85 clean := TARGET= clean
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
86 clobber := TARGET= clobber
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
87 check := TARGET= check
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
88
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
89 .KEEP_STATE:
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
90
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
91 #
12858
e7476a71a02b 6969590 usr/src/Makefile needs better expression of its dependencies
Mark J. Nelson <Mark.J.Nelson@Oracle.COM>
parents: 12776
diff changeset
92 # Note: install does not cause a build in pkg. To build packages,
11838
32bb5d254240 PSARC 2010/067 Interim modernization updates
Liane Praza <Liane.Praza@Sun.COM>
parents: 11395
diff changeset
93 # cd pkg and do a 'make install'
0
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
94 #
12858
e7476a71a02b 6969590 usr/src/Makefile needs better expression of its dependencies
Mark J. Nelson <Mark.J.Nelson@Oracle.COM>
parents: 12776
diff changeset
95
e7476a71a02b 6969590 usr/src/Makefile needs better expression of its dependencies
Mark J. Nelson <Mark.J.Nelson@Oracle.COM>
parents: 12776
diff changeset
96 all: mapfiles closedbins sgs .WAIT $(SUBDIRS) pkg
e7476a71a02b 6969590 usr/src/Makefile needs better expression of its dependencies
Mark J. Nelson <Mark.J.Nelson@Oracle.COM>
parents: 12776
diff changeset
97
13010
c0270875939a 6929502 packages are missing some license files
Mark J. Nelson <Mark.J.Nelson@Oracle.COM>
parents: 12858
diff changeset
98 #
c0270875939a 6929502 packages are missing some license files
Mark J. Nelson <Mark.J.Nelson@Oracle.COM>
parents: 12858
diff changeset
99 # The _msg build is a two-step process. First, the _msg dependency
c0270875939a 6929502 packages are missing some license files
Mark J. Nelson <Mark.J.Nelson@Oracle.COM>
parents: 12858
diff changeset
100 # causes recursive makes in $(MSGSUBDIRS), which stages raw message
c0270875939a 6929502 packages are missing some license files
Mark J. Nelson <Mark.J.Nelson@Oracle.COM>
parents: 12858
diff changeset
101 # files in $(ROOT)/catalog. Second, the action from the install
c0270875939a 6929502 packages are missing some license files
Mark J. Nelson <Mark.J.Nelson@Oracle.COM>
parents: 12858
diff changeset
102 # target rule causes those messages to be post-processed from where
c0270875939a 6929502 packages are missing some license files
Mark J. Nelson <Mark.J.Nelson@Oracle.COM>
parents: 12858
diff changeset
103 # they were staged in $(ROOT)/catalog, and the results placed into the
c0270875939a 6929502 packages are missing some license files
Mark J. Nelson <Mark.J.Nelson@Oracle.COM>
parents: 12858
diff changeset
104 # proto area.
c0270875939a 6929502 packages are missing some license files
Mark J. Nelson <Mark.J.Nelson@Oracle.COM>
parents: 12858
diff changeset
105 #
c0270875939a 6929502 packages are missing some license files
Mark J. Nelson <Mark.J.Nelson@Oracle.COM>
parents: 12858
diff changeset
106 # The stage-licenses target causes the license files needed for
c0270875939a 6929502 packages are missing some license files
Mark J. Nelson <Mark.J.Nelson@Oracle.COM>
parents: 12858
diff changeset
107 # packaging to be pulled from $(SRC) and $(CLOSED) and staged in
c0270875939a 6929502 packages are missing some license files
Mark J. Nelson <Mark.J.Nelson@Oracle.COM>
parents: 12858
diff changeset
108 # $(ROOT)/licenses.
c0270875939a 6929502 packages are missing some license files
Mark J. Nelson <Mark.J.Nelson@Oracle.COM>
parents: 12858
diff changeset
109 #
c0270875939a 6929502 packages are missing some license files
Mark J. Nelson <Mark.J.Nelson@Oracle.COM>
parents: 12858
diff changeset
110 install: install1 install2 _msg stage-licenses
10420
263180af0fee 6876674 _msg build post processing should not live in svr4 pkgdefs
Mark J. Nelson <Mark.J.Nelson@Sun.COM>
parents: 10207
diff changeset
111 @cd msg; pwd; $(MAKE) _msg
0
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
112 @rm -rf "$(ROOT)/catalog"
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
113
13010
c0270875939a 6929502 packages are missing some license files
Mark J. Nelson <Mark.J.Nelson@Oracle.COM>
parents: 12858
diff changeset
114 stage-licenses: install2
c0270875939a 6929502 packages are missing some license files
Mark J. Nelson <Mark.J.Nelson@Oracle.COM>
parents: 12858
diff changeset
115 @cd pkg; pwd; $(MAKE) stage-licenses
c0270875939a 6929502 packages are missing some license files
Mark J. Nelson <Mark.J.Nelson@Oracle.COM>
parents: 12858
diff changeset
116
12858
e7476a71a02b 6969590 usr/src/Makefile needs better expression of its dependencies
Mark J. Nelson <Mark.J.Nelson@Oracle.COM>
parents: 12776
diff changeset
117 install1: mapfiles closedbins sgs
e7476a71a02b 6969590 usr/src/Makefile needs better expression of its dependencies
Mark J. Nelson <Mark.J.Nelson@Oracle.COM>
parents: 12776
diff changeset
118
e7476a71a02b 6969590 usr/src/Makefile needs better expression of its dependencies
Mark J. Nelson <Mark.J.Nelson@Oracle.COM>
parents: 12776
diff changeset
119 install2: install1 $(SUBDIRS)
e7476a71a02b 6969590 usr/src/Makefile needs better expression of its dependencies
Mark J. Nelson <Mark.J.Nelson@Oracle.COM>
parents: 12776
diff changeset
120
e7476a71a02b 6969590 usr/src/Makefile needs better expression of its dependencies
Mark J. Nelson <Mark.J.Nelson@Oracle.COM>
parents: 12776
diff changeset
121 _msg: _msgdirs rootdirs install2 FRC
e7476a71a02b 6969590 usr/src/Makefile needs better expression of its dependencies
Mark J. Nelson <Mark.J.Nelson@Oracle.COM>
parents: 12776
diff changeset
122 @for m in $(MSGSUBDIRS); do \
e7476a71a02b 6969590 usr/src/Makefile needs better expression of its dependencies
Mark J. Nelson <Mark.J.Nelson@Oracle.COM>
parents: 12776
diff changeset
123 cd $$m; pwd; $(MAKE) _msg; cd ..; \
e7476a71a02b 6969590 usr/src/Makefile needs better expression of its dependencies
Mark J. Nelson <Mark.J.Nelson@Oracle.COM>
parents: 12776
diff changeset
124 done
e7476a71a02b 6969590 usr/src/Makefile needs better expression of its dependencies
Mark J. Nelson <Mark.J.Nelson@Oracle.COM>
parents: 12776
diff changeset
125
4449
46bf98d3ae88 6567995 6455532 broke "make setup" within a new "bldenv -t" environment.
rie
parents: 4271
diff changeset
126 mapfiles: bldtools
4271
dda1ded496b7 6455532 OSNet cleanup required in preparation for direct bindings
rie
parents: 3899
diff changeset
127 @cd common/mapfiles; pwd; $(MAKE) install
dda1ded496b7 6455532 OSNet cleanup required in preparation for direct bindings
rie
parents: 3899
diff changeset
128
11838
32bb5d254240 PSARC 2010/067 Interim modernization updates
Liane Praza <Liane.Praza@Sun.COM>
parents: 11395
diff changeset
129 clean clobber: $(SUBDIRS) head pkg
0
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
130
13815
61cf2631639d 2224 closed-bins should be stripped of CTF
Jason King <jason.brian.king@gmail.com>
parents: 13304
diff changeset
131 closedbins: bldtools $(ROOTDIRS) FRC
3188
25caa991d3ff 6495870 usr/src/Makefile needs to recognise the non-debug encumbered binary deliverable
ah89892
parents: 2930
diff changeset
132 @CLOSED_ROOT="$$ON_CLOSED_BINS/root_$(MACH)$${RELEASE_BUILD+-nd}"; \
25caa991d3ff 6495870 usr/src/Makefile needs to recognise the non-debug encumbered binary deliverable
ah89892
parents: 2930
diff changeset
133 if [ "$$CLOSED_IS_PRESENT" = no ]; then \
25caa991d3ff 6495870 usr/src/Makefile needs to recognise the non-debug encumbered binary deliverable
ah89892
parents: 2930
diff changeset
134 if [ ! -d "$$CLOSED_ROOT" ]; then \
1167
9608ad751c4d 6289535 build_cscope complains a bit on x86
kupfer
parents: 920
diff changeset
135 $(ECHO) "Error: if closed sources are not present," \
9608ad751c4d 6289535 build_cscope complains a bit on x86
kupfer
parents: 920
diff changeset
136 "ON_CLOSED_BINS must point to closed binaries."; \
3188
25caa991d3ff 6495870 usr/src/Makefile needs to recognise the non-debug encumbered binary deliverable
ah89892
parents: 2930
diff changeset
137 $(ECHO) "root_$(MACH)$${RELEASE_BUILD+-nd} is not" \
25caa991d3ff 6495870 usr/src/Makefile needs to recognise the non-debug encumbered binary deliverable
ah89892
parents: 2930
diff changeset
138 "present in $$ON_CLOSED_BINS."; \
1167
9608ad751c4d 6289535 build_cscope complains a bit on x86
kupfer
parents: 920
diff changeset
139 exit 1; \
9608ad751c4d 6289535 build_cscope complains a bit on x86
kupfer
parents: 920
diff changeset
140 fi; \
3188
25caa991d3ff 6495870 usr/src/Makefile needs to recognise the non-debug encumbered binary deliverable
ah89892
parents: 2930
diff changeset
141 $(ECHO) "Copying closed binaries from $$CLOSED_ROOT"; \
13187
36a51d4e554c 188 should keep unused closed-bins out of the proto area
Garrett D'Amore <garrett@nexenta.com>
parents: 13010
diff changeset
142 (cd $$CLOSED_ROOT; \
36a51d4e554c 188 should keep unused closed-bins out of the proto area
Garrett D'Amore <garrett@nexenta.com>
parents: 13010
diff changeset
143 $(TAR) cfX - $(CODEMGR_WS)/exception_lists/closed-bins .) | \
36a51d4e554c 188 should keep unused closed-bins out of the proto area
Garrett D'Amore <garrett@nexenta.com>
parents: 13010
diff changeset
144 (cd $(ROOT); $(TAR) xBpf -); \
13815
61cf2631639d 2224 closed-bins should be stripped of CTF
Jason King <jason.brian.king@gmail.com>
parents: 13304
diff changeset
145 ( cd $(ROOT); $(CTFSTRIP) $$(cd $$CLOSED_ROOT; $(FIND) \
61cf2631639d 2224 closed-bins should be stripped of CTF
Jason King <jason.brian.king@gmail.com>
parents: 13304
diff changeset
146 ./kernel ./usr/kernel ./platform/*/kernel -type f -a -perm -u+x | \
61cf2631639d 2224 closed-bins should be stripped of CTF
Jason King <jason.brian.king@gmail.com>
parents: 13304
diff changeset
147 $(EGREP) -vf $(CODEMGR_WS)/exception_lists/closed-bins) ); \
1167
9608ad751c4d 6289535 build_cscope complains a bit on x86
kupfer
parents: 920
diff changeset
148 fi
9608ad751c4d 6289535 build_cscope complains a bit on x86
kupfer
parents: 920
diff changeset
149
6094
3154969ecb41 6591892 ipf/netinet/Makefile incorrectly tries to install ip_icmp.h
akolb
parents: 5194
diff changeset
150 #
12858
e7476a71a02b 6969590 usr/src/Makefile needs better expression of its dependencies
Mark J. Nelson <Mark.J.Nelson@Oracle.COM>
parents: 12776
diff changeset
151 # Declare what parts can be built in parallel
6094
3154969ecb41 6591892 ipf/netinet/Makefile incorrectly tries to install ip_icmp.h
akolb
parents: 5194
diff changeset
152 # DUMMY at the end is used in case macro expansion produces an empty string to
3154969ecb41 6591892 ipf/netinet/Makefile incorrectly tries to install ip_icmp.h
akolb
parents: 5194
diff changeset
153 # prevent everything going in parallel
3154969ecb41 6591892 ipf/netinet/Makefile incorrectly tries to install ip_icmp.h
akolb
parents: 5194
diff changeset
154 #
3154969ecb41 6591892 ipf/netinet/Makefile incorrectly tries to install ip_icmp.h
akolb
parents: 5194
diff changeset
155 .PARALLEL: $(PARALLEL_HEADERS) DUMMY
3154969ecb41 6591892 ipf/netinet/Makefile incorrectly tries to install ip_icmp.h
akolb
parents: 5194
diff changeset
156 .PARALLEL: $(PARALLEL_DIRS) DUMMY
3154969ecb41 6591892 ipf/netinet/Makefile incorrectly tries to install ip_icmp.h
akolb
parents: 5194
diff changeset
157
11838
32bb5d254240 PSARC 2010/067 Interim modernization updates
Liane Praza <Liane.Praza@Sun.COM>
parents: 11395
diff changeset
158 $(SUBDIRS) head pkg: FRC
0
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
159 @cd $@; pwd; $(MAKE) $(TARGET)
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
160
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
161 # librpcsvc has a dependency on headers installed by
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
162 # userheaders, hence the .WAIT before libheaders.
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
163 sgs: rootdirs .WAIT sysheaders userheaders .WAIT \
10754
bc532f9d3ee0 PSARC 2009/539 Removal of ucb headers and lint libraries
Garrett D'Amore <Garrett.Damore@Sun.COM>
parents: 10702
diff changeset
164 libheaders cmdheaders
0
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
165
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
166 #
4449
46bf98d3ae88 6567995 6455532 broke "make setup" within a new "bldenv -t" environment.
rie
parents: 4271
diff changeset
167 # Top-level setup target to setup the development environment that includes
46bf98d3ae88 6567995 6455532 broke "make setup" within a new "bldenv -t" environment.
rie
parents: 4271
diff changeset
168 # headers, tools and generated mapfiles. For open-only builds (i.e.: source
46bf98d3ae88 6567995 6455532 broke "make setup" within a new "bldenv -t" environment.
rie
parents: 4271
diff changeset
169 # trees w/o usr/closed), this also depends on the closedbins target (above)
46bf98d3ae88 6567995 6455532 broke "make setup" within a new "bldenv -t" environment.
rie
parents: 4271
diff changeset
170 # in order to properly seed the proto area. Note, although the tools are
46bf98d3ae88 6567995 6455532 broke "make setup" within a new "bldenv -t" environment.
rie
parents: 4271
diff changeset
171 # dependent on a number of constant mapfiles, the tools themselves are
46bf98d3ae88 6567995 6455532 broke "make setup" within a new "bldenv -t" environment.
rie
parents: 4271
diff changeset
172 # required to build the generated mapfiles.
1973
61bcd18fbe88 6425426 usr/src/Makefile 'setup' target is not enough for external developers
stevel
parents: 1792
diff changeset
173 #
12776
0a254b4b5ca4 6932341 bfu should be removed
jmcp <James.McPherson@Sun.COM>
parents: 11838
diff changeset
174 setup: closedbins bldtools sgs mapfiles
4449
46bf98d3ae88 6567995 6455532 broke "make setup" within a new "bldenv -t" environment.
rie
parents: 4271
diff changeset
175
12776
0a254b4b5ca4 6932341 bfu should be removed
jmcp <James.McPherson@Sun.COM>
parents: 11838
diff changeset
176 bldtools:
0
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
177 @cd tools; pwd; $(MAKE) install
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
178
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
179 # /var/mail/:saved is a special case because of the colon in the name.
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
180 #
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
181 rootdirs: $(ROOTDIRS)
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
182 $(INS) -d -m 775 $(ROOT)/var/mail/:saved
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
183
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
184 lint: FRC
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
185 $(MAKE) -f Makefile.lint
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
186
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
187 _msgdirs: $(MSGDIRS)
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
188
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
189 $(ROOTDIRS) $(MSGDIRS):
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
190 $(INS.dir)
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
191
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
192 userheaders: FRC
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
193 @cd head; pwd; $(MAKE) install_h
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
194
12776
0a254b4b5ca4 6932341 bfu should be removed
jmcp <James.McPherson@Sun.COM>
parents: 11838
diff changeset
195 libheaders: bldtools
0
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
196 @cd lib; pwd; $(MAKE) install_h
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
197
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
198 sysheaders: FRC
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
199 @cd uts; pwd; $(MAKE) install_h
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
200
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
201 cmdheaders: FRC
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
202 @cd cmd/fm; pwd; $(MAKE) install_h
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
203 @cd cmd/mdb; pwd; $(MAKE) install_h
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
204
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
205 # each xmod target depends on a corresponding MACH-specific pseudotarget
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
206 # before doing common xmod work
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
207 #
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
208 all_xmod install_xmod: $$@_$(MACH)
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
209 @cd uts/common/sys; pwd; $(MAKE) svvs_h
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
210
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
211 all_xmod_sparc install_xmod_sparc: FRC
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
212 @cd uts/sparc; pwd; \
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
213 $(MAKE) TARGET=$(TARGET) svvs pm wsdrv
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
214
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
215 all_xmod_i386 install_xmod_i386: FRC
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
216 @cd uts/i86; pwd; $(MAKE) TARGET=$(TARGET) svvs
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
217
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
218 check: $(CHKHDRSUBDIRS) $(CHKMFSTSUBDIRS)
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
219
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
220 #
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
221 # Cross-reference customization: skip all of the subdirectories that
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
222 # don't contain actual source code.
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
223 #
1167
9608ad751c4d 6289535 build_cscope complains a bit on x86
kupfer
parents: 920
diff changeset
224 $(CLOSED_BUILD)XRDIRS += ../closed
11838
32bb5d254240 PSARC 2010/067 Interim modernization updates
Liane Praza <Liane.Praza@Sun.COM>
parents: 11395
diff changeset
225 XRPRUNE = pkg prototypes xmod
0
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
226 XRINCDIRS = uts/common head ucbhead
1167
9608ad751c4d 6289535 build_cscope complains a bit on x86
kupfer
parents: 920
diff changeset
227 $(CLOSED_BUILD)XRINCDIRS = uts/common ../closed/uts/common head ucbhead
0
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
228
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
229 cscope.out tags: FRC
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
230 $(XREF) -f -x $@
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
231
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
232 FRC:
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
233
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
234 # EXPORT DELETE START
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
235
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
236 XMOD_DELETE_FILES:sh = cat xmod/xmod_files
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
237
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
238 EXPORT_SRC:
1167
9608ad751c4d 6289535 build_cscope complains a bit on x86
kupfer
parents: 920
diff changeset
239 @cd $(CLOSED)/cmd/cmd-inet/usr.lib/in.iked; pwd; $(MAKE) EXPORT_SRC
9608ad751c4d 6289535 build_cscope complains a bit on x86
kupfer
parents: 920
diff changeset
240 @cd $(CLOSED)/cmd/cmd-inet/usr.lib/ike-certutils; pwd; \
9608ad751c4d 6289535 build_cscope complains a bit on x86
kupfer
parents: 920
diff changeset
241 $(MAKE) EXPORT_SRC
0
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
242 @cd cmd/cmd-inet/usr.sbin; pwd; $(MAKE) EXPORT_SRC
1167
9608ad751c4d 6289535 build_cscope complains a bit on x86
kupfer
parents: 920
diff changeset
243 @cd $(CLOSED)/cmd/cmd-crypto/etc; pwd; $(MAKE) EXPORT_SRC
0
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
244 @cd cmd/crypt; pwd; $(MAKE) EXPORT_SRC
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
245 @cd cmd/gss/gssd; pwd; $(MAKE) EXPORT_SRC
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
246 @cd cmd/krb5/kadmin; pwd; $(MAKE) EXPORT_SRC
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
247 @cd cmd/sendmail/src; pwd; $(MAKE) EXPORT_SRC
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
248 @cd common/crypto/aes; pwd; $(MAKE) EXPORT_SRC
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
249 @cd common/crypto/arcfour; pwd; $(MAKE) EXPORT_SRC
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
250 @cd common/crypto/blowfish; pwd; $(MAKE) EXPORT_SRC
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
251 @cd common/crypto/des; pwd; $(MAKE) EXPORT_SRC
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
252 @cd common/crypto/rsa; pwd; $(MAKE) EXPORT_SRC
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
253 @cd lib/crypt_modules/bsdbf; pwd ; $(MAKE) EXPORT_SRC
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
254 @cd lib/gss_mechs/mech_dummy; pwd; $(MAKE) EXPORT_SRC
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
255 @cd lib/gss_mechs/mech_dh/backend; pwd; $(MAKE) EXPORT_SRC
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
256 @cd lib/gss_mechs/mech_krb5; pwd; $(MAKE) EXPORT_SRC
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
257 @cd lib/gss_mechs/mech_spnego; pwd; $(MAKE) EXPORT_SRC
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
258 @cd lib/libcrypt; pwd; $(MAKE) EXPORT_SRC
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
259 @cd lib/libgss; pwd; $(MAKE) EXPORT_SRC
1167
9608ad751c4d 6289535 build_cscope complains a bit on x86
kupfer
parents: 920
diff changeset
260 @cd $(CLOSED)/lib/libike; pwd; $(MAKE) EXPORT_SRC
0
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
261 @cd lib/libnsl; pwd; $(MAKE) EXPORT_SRC
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
262 @cd lib/pkcs11/pkcs11_softtoken/common; pwd; $(MAKE) EXPORT_SRC
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
263 @cd lib/libsldap; pwd; $(MAKE) EXPORT_SRC
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
264 @cd lib/libsasl; pwd; $(MAKE) EXPORT_SRC
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
265 @cd lib/sasl_plugins; pwd; $(MAKE) EXPORT_SRC
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
266 @cd lib/pam_modules/krb5; pwd; $(MAKE) EXPORT_SRC
7489
91fcc73c7333 6336875 wanboot.c and wbcli.c compiles fail on source product builds
John.Zolnowsky@Sun.COM
parents: 6125
diff changeset
267 @cd psm/stand/boot; pwd; $(MAKE) EXPORT_SRC
0
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
268 @cd uts/common/crypto/io; pwd; $(MAKE) EXPORT_SRC
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
269 @cd uts/common/des; pwd; $(MAKE) EXPORT_SRC
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
270 @cd uts/common/rpc; pwd; $(MAKE) EXPORT_SRC
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
271 @cd uts/common/sys; pwd; $(MAKE) EXPORT_SRC
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
272 @cd uts/common/gssapi/include; pwd; $(MAKE) EXPORT_SRC
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
273 @cd uts/common/gssapi; pwd; $(MAKE) EXPORT_SRC
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
274 @cd uts/common/gssapi/mechs/dummy; pwd; $(MAKE) EXPORT_SRC
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
275 @cd uts/common/gssapi/mechs/krb5; pwd; $(MAKE) EXPORT_SRC
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
276 @cd uts/common; pwd; $(MAKE) EXPORT_SRC
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
277 @cd uts/sparc; pwd; $(MAKE) EXPORT_SRC
1167
9608ad751c4d 6289535 build_cscope complains a bit on x86
kupfer
parents: 920
diff changeset
278 @cd $(CLOSED)/uts/sun4u/forthdebug; pwd; $(MAKE) EXPORT_SRC
7489
91fcc73c7333 6336875 wanboot.c and wbcli.c compiles fail on source product builds
John.Zolnowsky@Sun.COM
parents: 6125
diff changeset
279 @cd $(CLOSED)/uts/sun4v/forthdebug; pwd; $(MAKE) EXPORT_SRC
0
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
280 @cd uts/intel; pwd; $(MAKE) EXPORT_SRC
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
281 @cd uts/sun4u; pwd; $(MAKE) EXPORT_SRC
1167
9608ad751c4d 6289535 build_cscope complains a bit on x86
kupfer
parents: 920
diff changeset
282 @cd $(CLOSED)/uts/sun4v/io/ncp; pwd; $(MAKE) EXPORT_SRC
9228
8a603a30882a 6813765 n2cp has dormant directives
Valerie Bubb Fenwick <Valerie.Fenwick@Sun.COM>
parents: 7710
diff changeset
283 @cd $(CLOSED)/uts/sun4v/io/n2cp; pwd; $(MAKE) EXPORT_SRC
11838
32bb5d254240 PSARC 2010/067 Interim modernization updates
Liane Praza <Liane.Praza@Sun.COM>
parents: 11395
diff changeset
284 @cd pkg; pwd; $(MAKE) EXPORT_SRC
0
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
285 $(RM) -r $(XMOD_DELETE_FILES)
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
286 $(RM) Targetdirs+
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
287 sed -e "/^# EXPORT DELETE START/,/^# EXPORT DELETE END/d" \
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
288 < Targetdirs > Targetdirs+
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
289 $(MV) Targetdirs+ Targetdirs
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
290 $(CHMOD) 444 Targetdirs
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
291 $(RM) Makefile+
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
292 sed -e "/^# EXPORT DELETE START/,/^# EXPORT DELETE END/d" \
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
293 < Makefile > Makefile+
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
294 $(MV) Makefile+ Makefile
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
295 $(CHMOD) 444 Makefile
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
296 $(RM) Makefile.master+
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
297 sed -e "/^# EXPORT DELETE START/,/^# EXPORT DELETE END/d" \
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
298 < Makefile.master > Makefile.master+
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
299 $(MV) Makefile.master+ Makefile.master
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
300 $(CHMOD) 444 Makefile.master
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
301
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
302 CRYPT_SRC:
7710
ef77b917edab 6367955 SUNWcryptoint pkg build broken for domestic source build
John.Zolnowsky@Sun.COM
parents: 7489
diff changeset
303 @cd $(CLOSED)/cmd/cmd-crypto/etc; pwd; $(MAKE) CRYPT_SRC
1167
9608ad751c4d 6289535 build_cscope complains a bit on x86
kupfer
parents: 920
diff changeset
304 @cd $(CLOSED)/cmd/cmd-inet/usr.lib/in.iked; pwd; $(MAKE) CRYPT_SRC
9608ad751c4d 6289535 build_cscope complains a bit on x86
kupfer
parents: 920
diff changeset
305 @cd $(CLOSED)/cmd/cmd-inet/usr.lib/ike-certutils; pwd; \
9608ad751c4d 6289535 build_cscope complains a bit on x86
kupfer
parents: 920
diff changeset
306 $(MAKE) CRYPT_SRC
0
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
307 @cd lib/crypt_modules/bsdbf; pwd ; $(MAKE) CRYPT_SRC
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
308 @cd lib/gss_mechs/mech_dummy; pwd; $(MAKE) CRYPT_SRC
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
309 @cd lib/gss_mechs/mech_dh/backend; pwd; $(MAKE) CRYPT_SRC
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
310 @cd lib/gss_mechs/mech_krb5; pwd; $(MAKE) CRYPT_SRC
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
311 @cd lib/gss_mechs/mech_spnego; pwd; $(MAKE) CRYPT_SRC
1167
9608ad751c4d 6289535 build_cscope complains a bit on x86
kupfer
parents: 920
diff changeset
312 @cd $(CLOSED)/lib/libike; pwd; $(MAKE) CRYPT_SRC
0
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
313 @cd lib/libnsl; pwd; $(MAKE) CRYPT_SRC
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
314 @cd lib/libsasl; pwd; $(MAKE) CRYPT_SRC
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
315 @cd lib/sasl_plugins; pwd; $(MAKE) CRYPT_SRC
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
316 @cd lib/pam_modules/krb5; pwd; $(MAKE) CRYPT_SRC
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
317 @cd uts/common/gssapi; pwd; $(MAKE) CRYPT_SRC
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
318 @cd uts/common/gssapi/include; pwd; $(MAKE) CRYPT_SRC
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
319 @cd uts/common/gssapi/mechs/dummy; pwd; $(MAKE) CRYPT_SRC
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
320 @cd uts/common/gssapi/mechs/krb5; pwd; $(MAKE) CRYPT_SRC
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
321 $(RM) Makefile+
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
322 sed -e "/^# EXPORT DELETE START/,/^# EXPORT DELETE END/d" \
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
323 < Makefile > Makefile+
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
324 $(MV) Makefile+ Makefile
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
325 $(CHMOD) 444 Makefile
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
326 $(RM) Makefile.master+
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
327 sed -e "/^# EXPORT DELETE START/,/^# EXPORT DELETE END/d" \
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
328 < Makefile.master > Makefile.master+
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
329 $(MV) Makefile.master+ Makefile.master
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
330 $(CHMOD) 444 Makefile.master
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
331
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
332 # EXPORT DELETE END
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
333
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
334 ONC_PLUS:
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
335 @cd cmd/login; pwd; $(MAKE) ONC_PLUS
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
336 @cd uts; pwd; $(MAKE) ONC_PLUS
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
337
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
338 #
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
339 # Targets for reporting compiler versions; nightly uses these.
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
340 #
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
341
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
342 cc-version:
1792
7e25f1c5948e 6406661 nightly doesn't tell about the shadow compiler
wesolows
parents: 1772
diff changeset
343 @if $($(MACH)_CC) -_versions >/dev/null 2>/dev/null; then \
411
ae71859f7fc8 6302154 fix for 6297567 introduces some undesirable output changes
wesolows
parents: 224
diff changeset
344 $(ECHO) 32-bit compiler; \
224
a34f75a89973 6266620 mi2cv shouldn't #include <note.h>
wesolows
parents: 134
diff changeset
345 $(ECHO) $($(MACH)_CC); \
1792
7e25f1c5948e 6406661 nightly doesn't tell about the shadow compiler
wesolows
parents: 1772
diff changeset
346 $($(MACH)_CC) -_versions 2>&1 | \
7e25f1c5948e 6406661 nightly doesn't tell about the shadow compiler
wesolows
parents: 1772
diff changeset
347 $(EGREP) '^(cw|cc|gcc|primary|shadow)'; \
224
a34f75a89973 6266620 mi2cv shouldn't #include <note.h>
wesolows
parents: 134
diff changeset
348 else \
a34f75a89973 6266620 mi2cv shouldn't #include <note.h>
wesolows
parents: 134
diff changeset
349 __COMPILER=`$($(MACH)_CC) -_compiler 2>/dev/null || $(TRUE)`;\
a34f75a89973 6266620 mi2cv shouldn't #include <note.h>
wesolows
parents: 134
diff changeset
350 if [ -z "$$__COMPILER" ]; then \
411
ae71859f7fc8 6302154 fix for 6297567 introduces some undesirable output changes
wesolows
parents: 224
diff changeset
351 $(ECHO) No 32-bit compiler found; \
224
a34f75a89973 6266620 mi2cv shouldn't #include <note.h>
wesolows
parents: 134
diff changeset
352 exit 1; \
a34f75a89973 6266620 mi2cv shouldn't #include <note.h>
wesolows
parents: 134
diff changeset
353 else \
411
ae71859f7fc8 6302154 fix for 6297567 introduces some undesirable output changes
wesolows
parents: 224
diff changeset
354 $(ECHO) 32-bit compiler; \
224
a34f75a89973 6266620 mi2cv shouldn't #include <note.h>
wesolows
parents: 134
diff changeset
355 $(ECHO) $($(MACH)_CC); \
a34f75a89973 6266620 mi2cv shouldn't #include <note.h>
wesolows
parents: 134
diff changeset
356 $(ECHO) $$__COMPILER; \
a34f75a89973 6266620 mi2cv shouldn't #include <note.h>
wesolows
parents: 134
diff changeset
357 $($(MACH)_CC) -V 2>&1 | head -1; \
a34f75a89973 6266620 mi2cv shouldn't #include <note.h>
wesolows
parents: 134
diff changeset
358 fi; \
0
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
359 fi
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
360
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
361 cc64-version:
1792
7e25f1c5948e 6406661 nightly doesn't tell about the shadow compiler
wesolows
parents: 1772
diff changeset
362 @if $($(MACH64)_CC) -_versions >/dev/null 2>/dev/null; then \
411
ae71859f7fc8 6302154 fix for 6297567 introduces some undesirable output changes
wesolows
parents: 224
diff changeset
363 $(ECHO) 64-bit compiler; \
224
a34f75a89973 6266620 mi2cv shouldn't #include <note.h>
wesolows
parents: 134
diff changeset
364 $(ECHO) $($(MACH64)_CC); \
1792
7e25f1c5948e 6406661 nightly doesn't tell about the shadow compiler
wesolows
parents: 1772
diff changeset
365 $($(MACH64)_CC) -_versions 2>&1 | \
7e25f1c5948e 6406661 nightly doesn't tell about the shadow compiler
wesolows
parents: 1772
diff changeset
366 $(EGREP) '^(cw|cc|gcc|primary|shadow)'; \
224
a34f75a89973 6266620 mi2cv shouldn't #include <note.h>
wesolows
parents: 134
diff changeset
367 else \
a34f75a89973 6266620 mi2cv shouldn't #include <note.h>
wesolows
parents: 134
diff changeset
368 __COMPILER=`$($(MACH64)_CC) -_compiler 2>/dev/null || $(TRUE)`;\
a34f75a89973 6266620 mi2cv shouldn't #include <note.h>
wesolows
parents: 134
diff changeset
369 if [ -z "$$__COMPILER" ]; then \
a34f75a89973 6266620 mi2cv shouldn't #include <note.h>
wesolows
parents: 134
diff changeset
370 $(ECHO) No 64-bit compiler found; \
a34f75a89973 6266620 mi2cv shouldn't #include <note.h>
wesolows
parents: 134
diff changeset
371 exit 1; \
a34f75a89973 6266620 mi2cv shouldn't #include <note.h>
wesolows
parents: 134
diff changeset
372 else \
411
ae71859f7fc8 6302154 fix for 6297567 introduces some undesirable output changes
wesolows
parents: 224
diff changeset
373 $(ECHO) 64-bit compiler; \
224
a34f75a89973 6266620 mi2cv shouldn't #include <note.h>
wesolows
parents: 134
diff changeset
374 $(ECHO) $($(MACH64)_CC); \
a34f75a89973 6266620 mi2cv shouldn't #include <note.h>
wesolows
parents: 134
diff changeset
375 $(ECHO) $$__COMPILER; \
a34f75a89973 6266620 mi2cv shouldn't #include <note.h>
wesolows
parents: 134
diff changeset
376 $($(MACH64)_CC) -V 2>&1 | head -1; \
a34f75a89973 6266620 mi2cv shouldn't #include <note.h>
wesolows
parents: 134
diff changeset
377 fi; \
0
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
378 fi
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
379
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
380 java-version:
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
381 @if [ -x "$(JAVAC)" ]; then \
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
382 $(ECHO) $(JAVAC); \
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
383 $(JAVA_ROOT)/bin/java -fullversion 2>&1 | head -1; \
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
384 else \
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
385 $(ECHO) No Java compiler found; \
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
386 exit 1; \
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
387 fi