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