da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin#
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# CDDL HEADER START
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin#
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# The contents of this file are subject to the terms of the
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# Common Development and Distribution License, Version 1.0 only
3e14f97f673e8a630f076077de35afdd43dc1587Roger A. Faulkner# (the "License"). You may not use this file except in compliance
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# with the License.
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin#
7c2fbfb345896881c631598ee3852ce9ce33fb07April Chin# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# or http://www.opensolaris.org/os/licensing.
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# See the License for the specific language governing permissions
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# and limitations under the License.
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin#
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# When distributing Covered Code, include this CDDL HEADER in each
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# If applicable, add the following below this CDDL HEADER, with the
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# fields enclosed by brackets "[]" replaced with your own identifying
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# information: Portions Copyright [yyyy] [name of copyright owner]
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin#
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# CDDL HEADER END
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin#
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin#
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin#ident "%Z%%M% %I% %E% SMI"
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin#
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# Copyright 2005 Sun Microsystems, Inc. All rights reserved.
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# Use is subject to license terms.
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin#
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# This makefile drives the production of the sun4u starfire platform
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# module.
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin#
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# sun4u starfire implementation architecture dependent
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin#
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin#
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# Path to the base of the uts directory tree (usually /usr/src/uts).
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin#
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinUTSBASE = ../..
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chininclude $(UTSBASE)/sun4u/starfire/Makefile.starfire
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin#
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# The following are SPARC specific (rather than sun4u) specific modules
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# which are required for the sun4u kernel to completely lint. They are
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# not involved in the build in any other way. In order to minimize
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# build time, it is assumed that they are up to date. But since sun4u
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# is really a separate architecture we cannot use the v7 sparc modules.
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin#
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinSPARC_LIB_DIR = $(UTSBASE)/sparc/lint-libs/$(OBJS_DIR)
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinSPARC_LINTS =
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinSUN4U_LIB_DIR = $(UTSBASE)/sun4u/lint-libs/$(OBJS_DIR)
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin#
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin#
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin#
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinLINT_LIBS = $(LINT_LIB) \
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin $(SPARC_LINTS:%=$(SPARC_LIB_DIR)/llib-l%.ln) \
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin $(LINT_KMODS:%=$(SUN4U_LIB_DIR)/llib-l%.ln) \
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin $(CLOSED_LINT_KMODS:%=$(SUN4U_LIB_DIR)/llib-l%.ln)
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chindef := TARGET= def
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinall := TARGET= all
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chininstall := TARGET= install
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chininstall_h := TARGET= install_h
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinclean := TARGET= clean
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinclobber := TARGET= clobber
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinlint := TARGET= lint
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinlintlib := TARGET= lintlib
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinmodlintlib := TARGET= modlintlib
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinmodlist := TARGET= modlist
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinmodlist := NO_STATE= -K $$MODSTATE$$$$
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinclean.lint := TARGET= clean.lint
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chincheck := TARGET= check
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinIMPLEMENTED_PLATFORM = SUNW,Ultra-Enterprise-10000
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin#
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# Default build targets.
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin#
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin.KEEP_STATE:
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin.PARALLEL: $(STARFIRE_KMODS)
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin.NO_PARALLEL: $(STARFIRE_CPU_KMODS)
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chindef all clean clobber clean.lint: genassym unix .WAIT \
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin $(STARFIRE_CPU_KMODS) $(STARFIRE_KMODS)
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinmodlist: unix $(STARFIRE_CPU_KMODS) $(STARFIRE_KMODS)
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chininstall: $(ROOT_STARFIRE_DIR) $(USR_STARFIRE_DIR) \
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin $(USR_STARFIRE_INC_DIR) \
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin $(USR_STARFIRE_SBIN_DIR) \
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin $(USR_STARFIRE_LIB_DIR) \
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin genassym unix .WAIT $(STARFIRE_CPU_KMODS) $(STARFIRE_KMODS)
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin
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