Makefile revision fb9f9b975cb9214fec5dab37d461199adab9b964
a6d42e7d71324c5193c3b94d57d96ba2925d52e1Peter Dunlap#
a6d42e7d71324c5193c3b94d57d96ba2925d52e1Peter Dunlap# CDDL HEADER START
a6d42e7d71324c5193c3b94d57d96ba2925d52e1Peter Dunlap#
a6d42e7d71324c5193c3b94d57d96ba2925d52e1Peter Dunlap# The contents of this file are subject to the terms of the
a6d42e7d71324c5193c3b94d57d96ba2925d52e1Peter Dunlap# Common Development and Distribution License, Version 1.0 only
a6d42e7d71324c5193c3b94d57d96ba2925d52e1Peter Dunlap# (the "License"). You may not use this file except in compliance
a6d42e7d71324c5193c3b94d57d96ba2925d52e1Peter Dunlap# with the License.
a6d42e7d71324c5193c3b94d57d96ba2925d52e1Peter Dunlap#
a6d42e7d71324c5193c3b94d57d96ba2925d52e1Peter Dunlap# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
a6d42e7d71324c5193c3b94d57d96ba2925d52e1Peter Dunlap# or http://www.opensolaris.org/os/licensing.
a6d42e7d71324c5193c3b94d57d96ba2925d52e1Peter Dunlap# See the License for the specific language governing permissions
a6d42e7d71324c5193c3b94d57d96ba2925d52e1Peter Dunlap# and limitations under the License.
a6d42e7d71324c5193c3b94d57d96ba2925d52e1Peter Dunlap#
a6d42e7d71324c5193c3b94d57d96ba2925d52e1Peter Dunlap# When distributing Covered Code, include this CDDL HEADER in each
a6d42e7d71324c5193c3b94d57d96ba2925d52e1Peter Dunlap# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
a6d42e7d71324c5193c3b94d57d96ba2925d52e1Peter Dunlap# If applicable, add the following below this CDDL HEADER, with the
a6d42e7d71324c5193c3b94d57d96ba2925d52e1Peter Dunlap# fields enclosed by brackets "[]" replaced with your own identifying
a6d42e7d71324c5193c3b94d57d96ba2925d52e1Peter Dunlap# information: Portions Copyright [yyyy] [name of copyright owner]
a6d42e7d71324c5193c3b94d57d96ba2925d52e1Peter Dunlap#
a6d42e7d71324c5193c3b94d57d96ba2925d52e1Peter Dunlap# CDDL HEADER END
a6d42e7d71324c5193c3b94d57d96ba2925d52e1Peter Dunlap#
a6d42e7d71324c5193c3b94d57d96ba2925d52e1Peter Dunlap#
a6d42e7d71324c5193c3b94d57d96ba2925d52e1Peter Dunlap#ident "%Z%%M% %I% %E% SMI"
a6d42e7d71324c5193c3b94d57d96ba2925d52e1Peter Dunlap#
a6d42e7d71324c5193c3b94d57d96ba2925d52e1Peter Dunlap# Copyright 2005 Sun Microsystems, Inc. All rights reserved.
a6d42e7d71324c5193c3b94d57d96ba2925d52e1Peter Dunlap# Use is subject to license terms.
a6d42e7d71324c5193c3b94d57d96ba2925d52e1Peter Dunlap#
a6d42e7d71324c5193c3b94d57d96ba2925d52e1Peter Dunlap# This makefile drives the production of the sun4u starfire platform
a6d42e7d71324c5193c3b94d57d96ba2925d52e1Peter Dunlap# module.
a6d42e7d71324c5193c3b94d57d96ba2925d52e1Peter Dunlap#
a6d42e7d71324c5193c3b94d57d96ba2925d52e1Peter Dunlap# sun4u starfire implementation architecture dependent
a6d42e7d71324c5193c3b94d57d96ba2925d52e1Peter Dunlap#
a6d42e7d71324c5193c3b94d57d96ba2925d52e1Peter Dunlap
a6d42e7d71324c5193c3b94d57d96ba2925d52e1Peter Dunlap#
a6d42e7d71324c5193c3b94d57d96ba2925d52e1Peter Dunlap# Path to the base of the uts directory tree (usually /usr/src/uts).
a6d42e7d71324c5193c3b94d57d96ba2925d52e1Peter Dunlap#
a6d42e7d71324c5193c3b94d57d96ba2925d52e1Peter DunlapUTSBASE = ../..
a6d42e7d71324c5193c3b94d57d96ba2925d52e1Peter Dunlap
a6d42e7d71324c5193c3b94d57d96ba2925d52e1Peter Dunlapinclude $(UTSBASE)/sun4u/starfire/Makefile.starfire
a6d42e7d71324c5193c3b94d57d96ba2925d52e1Peter Dunlap
a6d42e7d71324c5193c3b94d57d96ba2925d52e1Peter Dunlap#
a6d42e7d71324c5193c3b94d57d96ba2925d52e1Peter Dunlap# The following are SPARC specific (rather than sun4u) specific modules
a6d42e7d71324c5193c3b94d57d96ba2925d52e1Peter Dunlap# which are required for the sun4u kernel to completely lint. They are
a6d42e7d71324c5193c3b94d57d96ba2925d52e1Peter Dunlap# not involved in the build in any other way. In order to minimize
a6d42e7d71324c5193c3b94d57d96ba2925d52e1Peter Dunlap# build time, it is assumed that they are up to date. But since sun4u
a6d42e7d71324c5193c3b94d57d96ba2925d52e1Peter Dunlap# is really a separate architecture we cannot use the v7 sparc modules.
a6d42e7d71324c5193c3b94d57d96ba2925d52e1Peter Dunlap#
a6d42e7d71324c5193c3b94d57d96ba2925d52e1Peter DunlapSPARC_LIB_DIR = $(UTSBASE)/sparc/lint-libs/$(OBJS_DIR)
a6d42e7d71324c5193c3b94d57d96ba2925d52e1Peter Dunlap
a6d42e7d71324c5193c3b94d57d96ba2925d52e1Peter DunlapSPARC_LINTS =
a6d42e7d71324c5193c3b94d57d96ba2925d52e1Peter Dunlap
a6d42e7d71324c5193c3b94d57d96ba2925d52e1Peter DunlapSUN4U_LIB_DIR = $(UTSBASE)/sun4u/lint-libs/$(OBJS_DIR)
a6d42e7d71324c5193c3b94d57d96ba2925d52e1Peter Dunlap
a6d42e7d71324c5193c3b94d57d96ba2925d52e1Peter Dunlap#
a6d42e7d71324c5193c3b94d57d96ba2925d52e1Peter Dunlap#
a6d42e7d71324c5193c3b94d57d96ba2925d52e1Peter Dunlap#
a6d42e7d71324c5193c3b94d57d96ba2925d52e1Peter DunlapLINT_LIBS = $(LINT_LIB) \
a6d42e7d71324c5193c3b94d57d96ba2925d52e1Peter Dunlap $(SPARC_LINTS:%=$(SPARC_LIB_DIR)/llib-l%.ln) \
a6d42e7d71324c5193c3b94d57d96ba2925d52e1Peter Dunlap $(LINT_KMODS:%=$(SUN4U_LIB_DIR)/llib-l%.ln) \
a6d42e7d71324c5193c3b94d57d96ba2925d52e1Peter Dunlap $(CLOSED_LINT_KMODS:%=$(SUN4U_LIB_DIR)/llib-l%.ln)
a6d42e7d71324c5193c3b94d57d96ba2925d52e1Peter Dunlap
a6d42e7d71324c5193c3b94d57d96ba2925d52e1Peter Dunlapdef := TARGET= def
a6d42e7d71324c5193c3b94d57d96ba2925d52e1Peter Dunlapall := TARGET= all
a6d42e7d71324c5193c3b94d57d96ba2925d52e1Peter Dunlapinstall := TARGET= install
a6d42e7d71324c5193c3b94d57d96ba2925d52e1Peter Dunlapinstall_h := TARGET= install_h
a6d42e7d71324c5193c3b94d57d96ba2925d52e1Peter Dunlapclean := TARGET= clean
a6d42e7d71324c5193c3b94d57d96ba2925d52e1Peter Dunlapclobber := TARGET= clobber
a6d42e7d71324c5193c3b94d57d96ba2925d52e1Peter Dunlaplint := TARGET= lint
a6d42e7d71324c5193c3b94d57d96ba2925d52e1Peter Dunlaplintlib := TARGET= lintlib
a6d42e7d71324c5193c3b94d57d96ba2925d52e1Peter Dunlapmodlintlib := TARGET= modlintlib
a6d42e7d71324c5193c3b94d57d96ba2925d52e1Peter Dunlapmodlist := TARGET= modlist
a6d42e7d71324c5193c3b94d57d96ba2925d52e1Peter Dunlapmodlist := NO_STATE= -K $$MODSTATE$$$$
a6d42e7d71324c5193c3b94d57d96ba2925d52e1Peter Dunlapclean.lint := TARGET= clean.lint
a6d42e7d71324c5193c3b94d57d96ba2925d52e1Peter Dunlapcheck := TARGET= check
a6d42e7d71324c5193c3b94d57d96ba2925d52e1Peter Dunlap
a6d42e7d71324c5193c3b94d57d96ba2925d52e1Peter DunlapIMPLEMENTED_PLATFORM = SUNW,Ultra-Enterprise-10000
a6d42e7d71324c5193c3b94d57d96ba2925d52e1Peter Dunlap
a6d42e7d71324c5193c3b94d57d96ba2925d52e1Peter Dunlap#
a6d42e7d71324c5193c3b94d57d96ba2925d52e1Peter Dunlap# Default build targets.
a6d42e7d71324c5193c3b94d57d96ba2925d52e1Peter Dunlap#
a6d42e7d71324c5193c3b94d57d96ba2925d52e1Peter Dunlap.KEEP_STATE:
a6d42e7d71324c5193c3b94d57d96ba2925d52e1Peter Dunlap
a6d42e7d71324c5193c3b94d57d96ba2925d52e1Peter Dunlap.PARALLEL: $(STARFIRE_KMODS)
a6d42e7d71324c5193c3b94d57d96ba2925d52e1Peter Dunlap
a6d42e7d71324c5193c3b94d57d96ba2925d52e1Peter Dunlap.NO_PARALLEL: $(STARFIRE_CPU_KMODS)
a6d42e7d71324c5193c3b94d57d96ba2925d52e1Peter Dunlap
a6d42e7d71324c5193c3b94d57d96ba2925d52e1Peter Dunlapdef all clean clobber clean.lint: genassym unix .WAIT \
a6d42e7d71324c5193c3b94d57d96ba2925d52e1Peter Dunlap $(STARFIRE_CPU_KMODS) $(STARFIRE_KMODS)
a6d42e7d71324c5193c3b94d57d96ba2925d52e1Peter Dunlap
modlist: unix $(STARFIRE_CPU_KMODS) $(STARFIRE_KMODS)
install: $(ROOT_STARFIRE_DIR) $(USR_STARFIRE_DIR) \
$(USR_STARFIRE_INC_DIR) \
$(USR_STARFIRE_SBIN_DIR) \
$(USR_STARFIRE_LIB_DIR) \
genassym unix .WAIT $(STARFIRE_CPU_KMODS) $(STARFIRE_KMODS)
lintlib: unix
modlintlib: $(STARFIRE_KMODS) $(STARFIRE_CPU_KMODS)
genassym unix $(STARFIRE_CPU_KMODS) $(STARFIRE_KMODS): FRC
@cd $@; pwd; $(MAKE) $(NO_STATE) $(TARGET)
install_h check: FRC
@cd sys; pwd; $(MAKE) $(TARGET)
#
# Full kernel lint target.
#
LINT_TARGET = globallint
globallint:
@-$(ECHO) "\nStarfire KERNEL: global crosschecks:"
@-$(LINT) $(LINTFLAGS) $(LINT_LIBS) 2>&1 | $(LGREP.2)
lint: lintlib .WAIT modlintlib .WAIT $(LINT_DEPS)
#
# Include common targets.
#
include $(UTSBASE)/sun4u/starfire/Makefile.targ