Makefile revision 3f7d54a6b84904c8f4d8daa4c7b577bede7df8b9
6ae232055d4d8a97267517c5e50074c2c819941and# CDDL HEADER START
6ae232055d4d8a97267517c5e50074c2c819941and# The contents of this file are subject to the terms of the
6ae232055d4d8a97267517c5e50074c2c819941and# Common Development and Distribution License (the "License").
6ae232055d4d8a97267517c5e50074c2c819941and# You may not use this file except in compliance with the License.
6ae232055d4d8a97267517c5e50074c2c819941and# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
6ae232055d4d8a97267517c5e50074c2c819941and# See the License for the specific language governing permissions
d29d9ab4614ff992b0e8de6e2b88d52b6f1f153erbowen# and limitations under the License.
d29d9ab4614ff992b0e8de6e2b88d52b6f1f153erbowen# When distributing Covered Code, include this CDDL HEADER in each
d29d9ab4614ff992b0e8de6e2b88d52b6f1f153erbowen# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
6ae232055d4d8a97267517c5e50074c2c819941and# If applicable, add the following below this CDDL HEADER, with the
6ae232055d4d8a97267517c5e50074c2c819941and# fields enclosed by brackets "[]" replaced with your own identifying
6ae232055d4d8a97267517c5e50074c2c819941and# information: Portions Copyright [yyyy] [name of copyright owner]
3f08db06526d6901aa08c110b5bc7dde6bc39905nd# CDDL HEADER END
b43f840409794ed298e8634f6284741f193b6c4ftakashi# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
6ae232055d4d8a97267517c5e50074c2c819941and# Use is subject to license terms.
6ae232055d4d8a97267517c5e50074c2c819941and# This makefile drives the production of all implementation architecture
b43f840409794ed298e8634f6284741f193b6c4ftakashi# independent modules for Intel processors.
6ae232055d4d8a97267517c5e50074c2c819941and# EXPORT DELETE START
6ae232055d4d8a97267517c5e50074c2c819941and$(CLOSED_BUILD)LINT_LIBS += $(SVVS_KMODS:%=$(LINT_LIB_DIR)/llib-l%.ln)
6ae232055d4d8a97267517c5e50074c2c819941and$(CLOSED_BUILD)LINT_CLOSED_XMOD4 = $(LINT_CLOSED_XMOD5:bnxe=)
6ae232055d4d8a97267517c5e50074c2c819941and$(CLOSED_BUILD)LINT_CLOSED_XMOD3 = $(LINT_CLOSED_XMOD4:lsimega=)
6ae232055d4d8a97267517c5e50074c2c819941and$(CLOSED_BUILD)LINT_CLOSED_XMOD2 = $(LINT_CLOSED_XMOD3:spwr=)
6ae232055d4d8a97267517c5e50074c2c819941and$(CLOSED_BUILD)LINT_CLOSED_XMOD1 = $(LINT_CLOSED_XMOD2:adpu320=)
6ae232055d4d8a97267517c5e50074c2c819941and$(CLOSED_BUILD)LINT_LIBS += $(LINT_XMODLIBS:%=$(LINT_LIB_DIR)/llib-l%.ln)
6ae232055d4d8a97267517c5e50074c2c819941and# dprov is delivered in the SUNWcryptoint package.
6ae232055d4d8a97267517c5e50074c2c819941and# EXPORT DELETE END
6ae232055d4d8a97267517c5e50074c2c819941and.PARALLEL: $(PARALLEL_KMODS) $(CLOSED_KMODS) $(SVVS) $(XMODS) \
6ae232055d4d8a97267517c5e50074c2c819941anddef all install clean clobber modlist: genassym $(KMODS) $(CLOSED_KMODS) \
6ae232055d4d8a97267517c5e50074c2c819941and# Privilege constants
6ae232055d4d8a97267517c5e50074c2c819941and# NOTE: The rules for generating priv_const.c file are shared between all
6ae232055d4d8a97267517c5e50074c2c819941and# processor architectures and and should be kept in sync. If they are changed in
6ae232055d4d8a97267517c5e50074c2c819941and# this file make sure that sparc rules are updated as well.
ba543b319188dc1887607f6d59feddc00e38eee2humbedooh# Prerequisites
ba543b319188dc1887607f6d59feddc00e38eee2humbedooh# The uts/Makefile defines build parallelism for x86 platforms such that i86pc,
30471a4650391f57975f60bbb6e4a90be7b284bfhumbedooh# i86xpv and intel are all built in parallel. This requires building certain
30471a4650391f57975f60bbb6e4a90be7b284bfhumbedooh# parts before the parallel build can start. The uts/Makefile appends the
30471a4650391f57975f60bbb6e4a90be7b284bfhumbedooh# '.prereq' string to the original target and executes this Makefile to build
30471a4650391f57975f60bbb6e4a90be7b284bfhumbedooh# any prerequisites needed before the full parallel build can start. After that
30471a4650391f57975f60bbb6e4a90be7b284bfhumbedooh# make continues with normal targets.
30471a4650391f57975f60bbb6e4a90be7b284bfhumbedooh# Any build prerequisites for x86 builds should be described here.
30471a4650391f57975f60bbb6e4a90be7b284bfhumbedooh# genassym is used to build intel/dtrace and genunix, so it should be built
30471a4650391f57975f60bbb6e4a90be7b284bfhumbedooh# priv_const.c is required to build genunix.
30471a4650391f57975f60bbb6e4a90be7b284bfhumbedooh# genunix is used by everyone to ctf-merge with. Genunix is CTF-merged with
b43f840409794ed298e8634f6284741f193b6c4ftakashi# intel/ip so as a side effect this dependency builds intel/ip as part of the
d229f940abfb2490dee17979e9a5ff31b7012eb5rbowen# prerequisites.
7fec19672a491661b2fe4b29f685bc7f4efa64d4nd# intel/dtrace depends on i86pc/genassym, so we need to build both
6ae232055d4d8a97267517c5e50074c2c819941andall.prereq install.prereq def.prereq: genassym genunix FRC
%.prereq:
@if [ -f $@/Makefile ]; then \