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