Makefile revision fb9f9b975cb9214fec5dab37d461199adab9b964
083dd76e9fd7a829b1ed67ffc9003276643e7db1vboxsync#
083dd76e9fd7a829b1ed67ffc9003276643e7db1vboxsync# CDDL HEADER START
083dd76e9fd7a829b1ed67ffc9003276643e7db1vboxsync#
083dd76e9fd7a829b1ed67ffc9003276643e7db1vboxsync# The contents of this file are subject to the terms of the
083dd76e9fd7a829b1ed67ffc9003276643e7db1vboxsync# Common Development and Distribution License, Version 1.0 only
083dd76e9fd7a829b1ed67ffc9003276643e7db1vboxsync# (the "License"). You may not use this file except in compliance
1c94c0a63ba68be1a7b2c640e70d7a06464e4fcavboxsync# with the License.
083dd76e9fd7a829b1ed67ffc9003276643e7db1vboxsync#
083dd76e9fd7a829b1ed67ffc9003276643e7db1vboxsync# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
083dd76e9fd7a829b1ed67ffc9003276643e7db1vboxsync# or http://www.opensolaris.org/os/licensing.
083dd76e9fd7a829b1ed67ffc9003276643e7db1vboxsync# See the License for the specific language governing permissions
083dd76e9fd7a829b1ed67ffc9003276643e7db1vboxsync# and limitations under the License.
083dd76e9fd7a829b1ed67ffc9003276643e7db1vboxsync#
083dd76e9fd7a829b1ed67ffc9003276643e7db1vboxsync# When distributing Covered Code, include this CDDL HEADER in each
083dd76e9fd7a829b1ed67ffc9003276643e7db1vboxsync# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
1c94c0a63ba68be1a7b2c640e70d7a06464e4fcavboxsync# If applicable, add the following below this CDDL HEADER, with the
1c94c0a63ba68be1a7b2c640e70d7a06464e4fcavboxsync# fields enclosed by brackets "[]" replaced with your own identifying
1c94c0a63ba68be1a7b2c640e70d7a06464e4fcavboxsync# information: Portions Copyright [yyyy] [name of copyright owner]
1c94c0a63ba68be1a7b2c640e70d7a06464e4fcavboxsync#
083dd76e9fd7a829b1ed67ffc9003276643e7db1vboxsync# CDDL HEADER END
083dd76e9fd7a829b1ed67ffc9003276643e7db1vboxsync#
083dd76e9fd7a829b1ed67ffc9003276643e7db1vboxsync#
083dd76e9fd7a829b1ed67ffc9003276643e7db1vboxsync# uts/sun4u/tazmo/Makefile
083dd76e9fd7a829b1ed67ffc9003276643e7db1vboxsync# Copyright 2005 Sun Microsystems, Inc. All rights reserved.
d6aa6429f99fb7648883eb612f8a52b9aaf3bff4vboxsync# Use is subject to license terms.
23316a8447d9cfe4824469370ca4574c590fcc99vboxsync#
23316a8447d9cfe4824469370ca4574c590fcc99vboxsync#ident "%Z%%M% %I% %E% SMI"
083dd76e9fd7a829b1ed67ffc9003276643e7db1vboxsync#
d6aa6429f99fb7648883eb612f8a52b9aaf3bff4vboxsync# This makefile drives the production of the sun4u tazmo platform
083dd76e9fd7a829b1ed67ffc9003276643e7db1vboxsync# module.
590bfe12ce22cd3716448fbb9f4dc51664bfe5e2vboxsync#
083dd76e9fd7a829b1ed67ffc9003276643e7db1vboxsync# sun4u implementation architecture dependent
0c1bdc5adae416967cb64e09f8ec81a5b77fe31dvboxsync#
0c1bdc5adae416967cb64e09f8ec81a5b77fe31dvboxsync
0c1bdc5adae416967cb64e09f8ec81a5b77fe31dvboxsync#
0c1bdc5adae416967cb64e09f8ec81a5b77fe31dvboxsync# Path to the base of the uts directory tree (usually /usr/src/uts).
083dd76e9fd7a829b1ed67ffc9003276643e7db1vboxsync#
083dd76e9fd7a829b1ed67ffc9003276643e7db1vboxsyncUTSBASE = ../..
083dd76e9fd7a829b1ed67ffc9003276643e7db1vboxsync
083dd76e9fd7a829b1ed67ffc9003276643e7db1vboxsync#
083dd76e9fd7a829b1ed67ffc9003276643e7db1vboxsync# Include common rules.
083dd76e9fd7a829b1ed67ffc9003276643e7db1vboxsync#
cd6ab0be0a8f4e8064a530081d804e16670b1506vboxsyncinclude $(UTSBASE)/sun4u/tazmo/Makefile.tazmo
083dd76e9fd7a829b1ed67ffc9003276643e7db1vboxsync
083dd76e9fd7a829b1ed67ffc9003276643e7db1vboxsyncdef := TARGET= def
083dd76e9fd7a829b1ed67ffc9003276643e7db1vboxsyncall := TARGET= all
083dd76e9fd7a829b1ed67ffc9003276643e7db1vboxsyncinstall := TARGET= install
083dd76e9fd7a829b1ed67ffc9003276643e7db1vboxsyncinstall_h := TARGET= install_h
083dd76e9fd7a829b1ed67ffc9003276643e7db1vboxsyncclean := TARGET= clean
083dd76e9fd7a829b1ed67ffc9003276643e7db1vboxsyncclobber := TARGET= clobber
083dd76e9fd7a829b1ed67ffc9003276643e7db1vboxsynclint := TARGET= lint
083dd76e9fd7a829b1ed67ffc9003276643e7db1vboxsynclintlib := TARGET= lintlib
083dd76e9fd7a829b1ed67ffc9003276643e7db1vboxsyncmodlintlib := TARGET= modlintlib
083dd76e9fd7a829b1ed67ffc9003276643e7db1vboxsyncmodlist := TARGET= modlist
083dd76e9fd7a829b1ed67ffc9003276643e7db1vboxsyncmodlist := NO_STATE= -K $$MODSTATE$$$$
083dd76e9fd7a829b1ed67ffc9003276643e7db1vboxsyncclean.lint := TARGET= clean.lint
083dd76e9fd7a829b1ed67ffc9003276643e7db1vboxsynccheck := TARGET= check
083dd76e9fd7a829b1ed67ffc9003276643e7db1vboxsync
3c3a5ab35783f4d31cb5d3a15db9daadeb804daavboxsync#
3c3a5ab35783f4d31cb5d3a15db9daadeb804daavboxsync# Default build targets.
3c3a5ab35783f4d31cb5d3a15db9daadeb804daavboxsync#
3c3a5ab35783f4d31cb5d3a15db9daadeb804daavboxsync.KEEP_STATE:
3c3a5ab35783f4d31cb5d3a15db9daadeb804daavboxsync
3c3a5ab35783f4d31cb5d3a15db9daadeb804daavboxsyncdef all clean clean.lint clobber modlist: $(TAZMO_KMODS) $(CLOSED_TAZMO_KMODS)
3c3a5ab35783f4d31cb5d3a15db9daadeb804daavboxsync
3c3a5ab35783f4d31cb5d3a15db9daadeb804daavboxsyncmodlintlib: $(TAZMO_KMODS) $(CLOSED_TAZMO_KMODS)
3c3a5ab35783f4d31cb5d3a15db9daadeb804daavboxsync
3c3a5ab35783f4d31cb5d3a15db9daadeb804daavboxsyncinstall: $(ROOT_TAZMO_DIR) $(USR_TAZMO_DIR) \
3c3a5ab35783f4d31cb5d3a15db9daadeb804daavboxsync $(USR_TAZMO_INC_DIR) \
3c3a5ab35783f4d31cb5d3a15db9daadeb804daavboxsync $(USR_TAZMO_SBIN_DIR) \
3c3a5ab35783f4d31cb5d3a15db9daadeb804daavboxsync $(USR_TAZMO_LIB_DIR) \
3c3a5ab35783f4d31cb5d3a15db9daadeb804daavboxsync $(TAZMO_KMODS) $(CLOSED_TAZMO_KMODS)
3c3a5ab35783f4d31cb5d3a15db9daadeb804daavboxsync
3c3a5ab35783f4d31cb5d3a15db9daadeb804daavboxsynccheck install_h:
3c3a5ab35783f4d31cb5d3a15db9daadeb804daavboxsync
3c3a5ab35783f4d31cb5d3a15db9daadeb804daavboxsynclint: modlintlib
083dd76e9fd7a829b1ed67ffc9003276643e7db1vboxsync
083dd76e9fd7a829b1ed67ffc9003276643e7db1vboxsync#
083dd76e9fd7a829b1ed67ffc9003276643e7db1vboxsync# The 'lint.platmod' target lints the tazmo platform module against the sun4u
083dd76e9fd7a829b1ed67ffc9003276643e7db1vboxsync# kernel. This ends up doing all the kernel cross-checks, so it takes a couple
a6f10913bc1cf5692d55c9608ed921baefffbe4avboxsync# of minutes. Due to the low ROI, it's not run by default, but it's a good
083dd76e9fd7a829b1ed67ffc9003276643e7db1vboxsync# idea to run this if you change os/tazmo.c.
083dd76e9fd7a829b1ed67ffc9003276643e7db1vboxsync#
bf4de0c2965291e927412f708c6c27eeeb5825d4vboxsyncLINT_LIBS = $(LINT_LIB) \
bf4de0c2965291e927412f708c6c27eeeb5825d4vboxsync -L$(TAZMO_LINT_LIB_DIR) \
bf4de0c2965291e927412f708c6c27eeeb5825d4vboxsync -L$(LINT_LIB_DIR) $(LINT_KMODS:%=-l%) \
bf4de0c2965291e927412f708c6c27eeeb5825d4vboxsync $(CLOSED_LINT_KMODS:%=-l%) \
bf4de0c2965291e927412f708c6c27eeeb5825d4vboxsync -L$(SPARC_LIB_DIR) $(SPARC_LINTS:%=-l%)
bf4de0c2965291e927412f708c6c27eeeb5825d4vboxsync
bf4de0c2965291e927412f708c6c27eeeb5825d4vboxsynclint.platmod: modlintlib
bf4de0c2965291e927412f708c6c27eeeb5825d4vboxsync @-$(ECHO) "\nTazmo Platform-dependent module: global crosschecks:"
bf4de0c2965291e927412f708c6c27eeeb5825d4vboxsync @-$(LINT) $(LINTFLAGS) $(LINT_LIBS) 2>&1 | $(LGREP.2)
bf4de0c2965291e927412f708c6c27eeeb5825d4vboxsync
bf4de0c2965291e927412f708c6c27eeeb5825d4vboxsync$(TAZMO_KMODS): FRC
bf4de0c2965291e927412f708c6c27eeeb5825d4vboxsync @cd $@; pwd; $(MAKE) $(NO_STATE) $(TARGET)
590bfe12ce22cd3716448fbb9f4dc51664bfe5e2vboxsync
083dd76e9fd7a829b1ed67ffc9003276643e7db1vboxsync$(CLOSED_TAZMO_KMODS): FRC
083dd76e9fd7a829b1ed67ffc9003276643e7db1vboxsync cd $(CLOSED)/uts/sun4u/tazmo/$@; pwd; $(MAKE) $(NO_STATE) $(TARGET)
d6aa6429f99fb7648883eb612f8a52b9aaf3bff4vboxsync
#
# Include common targets.
#
include $(UTSBASE)/sun4u/tazmo/Makefile.targ