Makefile revision 29949e866e40b95795203f3ee46f44a197c946e4
453c9b0df0380abe5abb38db3b15530bd3b3dcf5Christian Maeder#
453c9b0df0380abe5abb38db3b15530bd3b3dcf5Christian Maeder# CDDL HEADER START
453c9b0df0380abe5abb38db3b15530bd3b3dcf5Christian Maeder#
453c9b0df0380abe5abb38db3b15530bd3b3dcf5Christian Maeder# The contents of this file are subject to the terms of the
304c84f22dd78f7979efd81b8fc38c8d2197ed39Christian Maeder# Common Development and Distribution License (the "License").
304c84f22dd78f7979efd81b8fc38c8d2197ed39Christian Maeder# You may not use this file except in compliance with the License.
304c84f22dd78f7979efd81b8fc38c8d2197ed39Christian Maeder#
453c9b0df0380abe5abb38db3b15530bd3b3dcf5Christian Maeder# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
453c9b0df0380abe5abb38db3b15530bd3b3dcf5Christian Maeder# or http://www.opensolaris.org/os/licensing.
453c9b0df0380abe5abb38db3b15530bd3b3dcf5Christian Maeder# See the License for the specific language governing permissions
453c9b0df0380abe5abb38db3b15530bd3b3dcf5Christian Maeder# and limitations under the License.
453c9b0df0380abe5abb38db3b15530bd3b3dcf5Christian Maeder#
20921b0900acb7e19a778e4b309a7e6d6c305e5eChristian Maeder# When distributing Covered Code, include this CDDL HEADER in each
453c9b0df0380abe5abb38db3b15530bd3b3dcf5Christian Maeder# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
4dd227b3f9c659b37083476347d01e2fdd0c71dbChristian Maeder# If applicable, add the following below this CDDL HEADER, with the
4dd227b3f9c659b37083476347d01e2fdd0c71dbChristian Maeder# fields enclosed by brackets "[]" replaced with your own identifying
4dd227b3f9c659b37083476347d01e2fdd0c71dbChristian Maeder# information: Portions Copyright [yyyy] [name of copyright owner]
453c9b0df0380abe5abb38db3b15530bd3b3dcf5Christian Maeder#
453c9b0df0380abe5abb38db3b15530bd3b3dcf5Christian Maeder# CDDL HEADER END
453c9b0df0380abe5abb38db3b15530bd3b3dcf5Christian Maeder#
453c9b0df0380abe5abb38db3b15530bd3b3dcf5Christian Maeder
453c9b0df0380abe5abb38db3b15530bd3b3dcf5Christian Maeder#
4dd227b3f9c659b37083476347d01e2fdd0c71dbChristian Maeder# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
4dd227b3f9c659b37083476347d01e2fdd0c71dbChristian Maeder# Use is subject to license terms.
453c9b0df0380abe5abb38db3b15530bd3b3dcf5Christian Maeder#
453c9b0df0380abe5abb38db3b15530bd3b3dcf5Christian Maeder#ident "%Z%%M% %I% %E% SMI"
1256a6994be0c94373a47f8b30747727b24c27faChristian Maeder#
4dd227b3f9c659b37083476347d01e2fdd0c71dbChristian Maeder# This makefile drives the production of the sun4u sunfire platform
1256a6994be0c94373a47f8b30747727b24c27faChristian Maeder# module.
1256a6994be0c94373a47f8b30747727b24c27faChristian Maeder#
1256a6994be0c94373a47f8b30747727b24c27faChristian Maeder# sun4u implementation architecture dependent
1256a6994be0c94373a47f8b30747727b24c27faChristian Maeder#
1256a6994be0c94373a47f8b30747727b24c27faChristian Maeder
1256a6994be0c94373a47f8b30747727b24c27faChristian Maeder#
1256a6994be0c94373a47f8b30747727b24c27faChristian Maeder# Path to the base of the uts directory tree (usually /usr/src/uts).
1256a6994be0c94373a47f8b30747727b24c27faChristian Maeder#
1256a6994be0c94373a47f8b30747727b24c27faChristian MaederUTSBASE = ../..
1256a6994be0c94373a47f8b30747727b24c27faChristian Maeder
1256a6994be0c94373a47f8b30747727b24c27faChristian Maeder#
1256a6994be0c94373a47f8b30747727b24c27faChristian Maeder# Include common rules.
1256a6994be0c94373a47f8b30747727b24c27faChristian Maeder#
include $(UTSBASE)/sun4u/sunfire/Makefile.sunfire
def := TARGET= def
all := TARGET= all
install := TARGET= install
install_h := TARGET= install_h
clean := TARGET= clean
clobber := TARGET= clobber
lint := TARGET= lint
lintlib := TARGET= lintlib
modlintlib := TARGET= modlintlib
modlist := TARGET= modlist
modlist := NO_STATE= -K $$MODSTATE$$$$
clean.lint := TARGET= clean.lint
check := TARGET= check
#
# Default build targets.
#
.KEEP_STATE:
def all clean clean.lint clobber modlist: \
$(SUNFIRE_KMODS) $(CLOSED_SUNFIRE_KMODS)
modlintlib: $(SUNFIRE_KMODS) $(CLOSED_SUNFIRE_KMODS)
IMPLEMENTED_PLATFORM = SUNW,Ultra-Enterprise
install: $(ROOT_SUNFIRE_DIR) $(USR_SUNFIRE_DIR) \
$(USR_SUNFIRE_INC_DIR) \
$(USR_SUNFIRE_SBIN_DIR) \
$(USR_SUNFIRE_LIB_DIR) \
.WAIT $(SUNFIRE_KMODS) $(CLOSED_SUNFIRE_KMODS)
install_h check: FRC
@cd sys; pwd; $(MAKE) $(TARGET)
lint: modlintlib
#
# The 'lint.platmod' target lints the sunfire platform module against the sun4u
# kernel. This ends up doing all the kernel cross-checks, so it takes a couple
# of minutes. Due to the low ROI, it's not run by default, but it's a good
# idea to run this if you change os/sunfire.c.
#
LINT_LIBS = $(LINT_LIB) \
-L$(SUNFIRE_LINT_LIB_DIR) \
-L$(LINT_LIB_DIR) $(LINT_KMODS:%=-l%) \
$(CLOSED_LINT_KMODS:%=-l%) \
-L$(SPARC_LIB_DIR) $(SPARC_LINTS:%=-l%)
lint.platmod: modlintlib
@-$(ECHO) "\nSunfire Platform-dependent module: global crosschecks:"
@-$(LINT) $(LINTFLAGS) $(LINT_LIBS) 2>&1 | $(LGREP.2)
$(SUNFIRE_KMODS): FRC
@cd $@; pwd; $(MAKE) $(NO_STATE) $(TARGET)
$(CLOSED_SUNFIRE_KMODS): FRC
@cd $(CLOSED)/uts/sun4u/sunfire/$@; pwd; $(MAKE) $(NO_STATE) $(TARGET)
#
# Include common targets.
#
include $(UTSBASE)/sun4u/sunfire/Makefile.targ