20 #
21
22 #
23 # Copyright (c) 1989, 2010, Oracle and/or its affiliates. All rights reserved.
24 # Copyright 2018 Nexenta Systems, Inc.
25 #
26
27 include ../Makefile.master
28
29 #
30 # List of architectures to build as part of the standard build.
31 #
32 # Some of these architectures are built in parallel (see i386_PARALLEL and
33 # sparc_PARALLEL). This requires building some parts first before parallel build
34 # can start. Platform make files know what should be built as a prerequisite for
35 # the parallel build to work. The i386_PREREQ and sparc_PREREQ variables tell
36 # which platform directory to enter to start making prerequisite dependencies.
37 #
38 sparc_ARCHITECTURES = sun4v sun4u sparc
39
40 i386_ARCHITECTURES = i86pc i86xpv intel
41
42 #
43 # For i386 all architectures can be compiled in parallel.
44 #
45 # intel/Makefile knows how to build prerequisites needed for parallel build.
46 #
47 i386_PREREQ = intel
48 i386_PARALLEL = $(i386_ARCHITECTURES)
49
50 #
51 # For sparc all architectures can be compiled in parallel.
52 #
53 # sun4/Makefile knows how to build prerequisites needed for parallel build.
54 # can start.
55 #
56 sparc_PREREQ = sun4
57 sparc_PARALLEL = $(sparc_ARCHITECTURES)
58
59 #
60 # Platforms defined in $(MACH)_PARALLEL are built in parallel. DUMMY is placed
157 common/smbsrv \
158 common/sys \
159 common/vm
160
161
162 #
163 # Subset of COMMON_HDRDIRS in which at least one header is generated
164 # at runtime (e.g., rpcgen), and in which "make clean" should run.
165 # Other directories should be included here, but do not yet have the
166 # necessary Makefile support (make clean).
167 #
168 DYNHDRDIRS = common/gssapi \
169 common/idmap \
170 common/io/fibre-channel/fca/qlc \
171 common/klm \
172 common/rpc \
173 common/rpcsvc \
174 common/sys
175
176 sparc_HDRDIRS= sun/sys
177 i386_HDRDIRS= i86pc/vm i86xpv/vm
178
179 HDRDIRS= $(COMMON_HDRDIRS) $($(MACH)_HDRDIRS)
180 install_h check: $(HDRDIRS) $($(MACH)_ARCHITECTURES)
181
182 $(HDRDIRS): FRC
183 @cd $@; pwd; $(MAKE) $(TARGET)
184
185 # ensures that headers made by rpcgen and others are available in uts source
186 # for kernel builds to reference without building install_h
187 #
188 all_h: FRC
189 @cd common/sys; pwd; $(MAKE) $@
190 @cd common/rpc; pwd; $(MAKE) $@
191 @cd common/rpcsvc; pwd; $(MAKE) $@
192 @cd common/gssapi; pwd; $(MAKE) $@
193 @cd common/idmap; pwd; $(MAKE) $@
194 @cd common/klm; pwd; $(MAKE) $@
195
196 clean clobber: $($(MACH)_ARCHITECTURES) $(DYNHDRDIRS)
197 @if [ '$(PATCH_BUILD)' != '#' ] ; then \
|
20 #
21
22 #
23 # Copyright (c) 1989, 2010, Oracle and/or its affiliates. All rights reserved.
24 # Copyright 2018 Nexenta Systems, Inc.
25 #
26
27 include ../Makefile.master
28
29 #
30 # List of architectures to build as part of the standard build.
31 #
32 # Some of these architectures are built in parallel (see i386_PARALLEL and
33 # sparc_PARALLEL). This requires building some parts first before parallel build
34 # can start. Platform make files know what should be built as a prerequisite for
35 # the parallel build to work. The i386_PREREQ and sparc_PREREQ variables tell
36 # which platform directory to enter to start making prerequisite dependencies.
37 #
38 sparc_ARCHITECTURES = sun4v sun4u sparc
39
40 i386_ARCHITECTURES = i86pc intel
41
42 #
43 # For i386 all architectures can be compiled in parallel.
44 #
45 # intel/Makefile knows how to build prerequisites needed for parallel build.
46 #
47 i386_PREREQ = intel
48 i386_PARALLEL = $(i386_ARCHITECTURES)
49
50 #
51 # For sparc all architectures can be compiled in parallel.
52 #
53 # sun4/Makefile knows how to build prerequisites needed for parallel build.
54 # can start.
55 #
56 sparc_PREREQ = sun4
57 sparc_PARALLEL = $(sparc_ARCHITECTURES)
58
59 #
60 # Platforms defined in $(MACH)_PARALLEL are built in parallel. DUMMY is placed
157 common/smbsrv \
158 common/sys \
159 common/vm
160
161
162 #
163 # Subset of COMMON_HDRDIRS in which at least one header is generated
164 # at runtime (e.g., rpcgen), and in which "make clean" should run.
165 # Other directories should be included here, but do not yet have the
166 # necessary Makefile support (make clean).
167 #
168 DYNHDRDIRS = common/gssapi \
169 common/idmap \
170 common/io/fibre-channel/fca/qlc \
171 common/klm \
172 common/rpc \
173 common/rpcsvc \
174 common/sys
175
176 sparc_HDRDIRS= sun/sys
177 i386_HDRDIRS= i86pc/vm
178
179 HDRDIRS= $(COMMON_HDRDIRS) $($(MACH)_HDRDIRS)
180 install_h check: $(HDRDIRS) $($(MACH)_ARCHITECTURES)
181
182 $(HDRDIRS): FRC
183 @cd $@; pwd; $(MAKE) $(TARGET)
184
185 # ensures that headers made by rpcgen and others are available in uts source
186 # for kernel builds to reference without building install_h
187 #
188 all_h: FRC
189 @cd common/sys; pwd; $(MAKE) $@
190 @cd common/rpc; pwd; $(MAKE) $@
191 @cd common/rpcsvc; pwd; $(MAKE) $@
192 @cd common/gssapi; pwd; $(MAKE) $@
193 @cd common/idmap; pwd; $(MAKE) $@
194 @cd common/klm; pwd; $(MAKE) $@
195
196 clean clobber: $($(MACH)_ARCHITECTURES) $(DYNHDRDIRS)
197 @if [ '$(PATCH_BUILD)' != '#' ] ; then \
|