Makefile revision fb9f9b975cb9214fec5dab37d461199adab9b964
10139N/A#
10139N/A# CDDL HEADER START
10139N/A#
10139N/A# The contents of this file are subject to the terms of the
10139N/A# Common Development and Distribution License, Version 1.0 only
10139N/A# (the "License"). You may not use this file except in compliance
10139N/A# with the License.
10139N/A#
10139N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10139N/A# or http://www.opensolaris.org/os/licensing.
10139N/A# See the License for the specific language governing permissions
10139N/A# and limitations under the License.
10139N/A#
10139N/A# When distributing Covered Code, include this CDDL HEADER in each
10139N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
10139N/A# If applicable, add the following below this CDDL HEADER, with the
10139N/A# fields enclosed by brackets "[]" replaced with your own identifying
10139N/A# information: Portions Copyright [yyyy] [name of copyright owner]
10139N/A#
10139N/A# CDDL HEADER END
10139N/A#
10139N/A#
10139N/A# uts/sun4u/darwin/Makefile
10139N/A# Copyright 2005 Sun Microsystems, Inc. All rights reserved.
10139N/A# Use is subject to license terms.
10139N/A#
10139N/A#ident "%Z%%M% %I% %E% SMI"
10139N/A#
10139N/A# This makefile drives the production of the sun4u darwin platform
10139N/A# module.
10139N/A#
10139N/A# sun4u implementation architecture dependent
10139N/A#
10139N/A
10139N/A#
10139N/A# Path to the base of the uts directory tree (usually /usr/src/uts).
10139N/A#
10139N/AUTSBASE = ../..
10139N/A
10139N/A#
10139N/A# Include common rules.
10139N/A#
10139N/Ainclude $(UTSBASE)/sun4u/darwin/Makefile.darwin
10139N/A
10139N/Adef := TARGET= def
10139N/Aall := TARGET= all
10139N/Ainstall := TARGET= install
10139N/Ainstall_h := TARGET= install_h
10139N/Aclean := TARGET= clean
10139N/Aclobber := TARGET= clobber
10139N/Alint := TARGET= lint
10139N/Alintlib := TARGET= lintlib
10139N/Amodlintlib := TARGET= modlintlib
10139N/Amodlist := TARGET= modlist
10139N/Amodlist := NO_STATE= -K $$MODSTATE$$$$
10139N/Aclean.lint := TARGET= clean.lint
10139N/Acheck := TARGET= check
10139N/A
10139N/A#
10139N/A# Default build targets.
10139N/A#
10139N/A.KEEP_STATE:
10139N/A
10139N/Adef all clean clean.lint clobber modlist: $(DARWIN_KMODS)
10139N/A
10139N/Amodlintlib: $(DARWIN_KMODS)
10139N/A
10139N/Ainstall: $(ROOT_DARWIN_DIR) $(USR_DARWIN_DIR) $(DARWIN_KMODS)
13570N/A
10139N/Acheck install_h:
10139N/A
10139N/Alint: modlintlib
11965N/A
11965N/A#
13678N/A# The 'lint.platmod' target lints the darwin platform module against the sun4u
10139N/A# kernel. This ends up doing all the kernel cross-checks, so it takes a couple
10139N/A# of minutes. Due to the low ROI, it's not run by default, but it's a good
13680N/A# idea to run this if you change os/darwin.c.
10139N/A#
10139N/ALINT_LIBS = $(LINT_LIB) \
11933N/A -L$(DARWIN_LINT_LIB_DIR) \
10139N/A -L$(LINT_LIB_DIR) $(LINT_KMODS:%=-l%) \
10139N/A $(CLOSED_LINT_KMODS:%=-l%) \
10139N/A -L$(SPARC_LIB_DIR) $(SPARC_LINTS:%=-l%)
10139N/A
10139N/Alint.platmod: modlintlib
10139N/A @-$(ECHO) "\nDarwin Platform-dependent module: global crosschecks:"
10139N/A @-$(LINT) $(LINTFLAGS) $(LINT_LIBS) 2>&1 | $(LGREP.2)
10139N/A
10139N/A$(DARWIN_KMODS): FRC
10139N/A @cd $@; pwd; $(MAKE) $(NO_STATE) $(TARGET)
10139N/A
10139N/A#
10139N/A# Include common targets.
10139N/A#
10139N/Ainclude $(UTSBASE)/sun4u/darwin/Makefile.targ
10139N/A