Makefile revision 6ee3e50ca5b616936ee051bd9e7d0af9a74416ec
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync#
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync# CDDL HEADER START
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync#
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync# The contents of this file are subject to the terms of the
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync# Common Development and Distribution License (the "License").
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync# You may not use this file except in compliance with the License.
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync#
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync# or http://www.opensolaris.org/os/licensing.
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync# See the License for the specific language governing permissions
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync# and limitations under the License.
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync#
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync# When distributing Covered Code, include this CDDL HEADER in each
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync# If applicable, add the following below this CDDL HEADER, with the
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync# fields enclosed by brackets "[]" replaced with your own identifying
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync# information: Portions Copyright [yyyy] [name of copyright owner]
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync#
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync# CDDL HEADER END
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync#
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync#
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync# Use is subject to license terms.
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync#
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync# ident "%Z%%M% %I% %E% SMI"
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync#
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync#
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync# This makefile drives the production of the sun4u douglas platform module.
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync#
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync# sun4u implementation architecture dependent
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync#
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync#
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync# Path to the base of the uts directory tree (usually /usr/src/uts).
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync#
b9a21c3c91c47e090316e28d759194e46628ed49vboxsyncUTSBASE = ../../..
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync#
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync# Define the module and object file sets.
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync#
b9a21c3c91c47e090316e28d759194e46628ed49vboxsyncMODULE = platmod
b9a21c3c91c47e090316e28d759194e46628ed49vboxsyncOBJECTS = $(DOUGLAS_OBJS:%=$(OBJS_DIR)/%)
b9a21c3c91c47e090316e28d759194e46628ed49vboxsyncLINTS = $(DOUGLAS_OBJS:%.o=$(LINTS_DIR)/%.ln)
b9a21c3c91c47e090316e28d759194e46628ed49vboxsyncROOTMODULE = $(ROOT_DOUGLAS_MISC_DIR)/$(MODULE)
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync
b9a21c3c91c47e090316e28d759194e46628ed49vboxsyncPLAT_DIR = .
b9a21c3c91c47e090316e28d759194e46628ed49vboxsyncHERE = ../douglas/platmod
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync#
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync# Include common rules.
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync#
b9a21c3c91c47e090316e28d759194e46628ed49vboxsyncinclude $(UTSBASE)/sun4u/douglas/Makefile.douglas
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync#
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync# Override defaults
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync#
b9a21c3c91c47e090316e28d759194e46628ed49vboxsyncCLEANFILES += $(PLATLIB) $(SYM_MOD)
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync#
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync# Define targets
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync#
b9a21c3c91c47e090316e28d759194e46628ed49vboxsyncALL_TARGET = $(SYM_MOD)
b9a21c3c91c47e090316e28d759194e46628ed49vboxsyncLINT_TARGET = $(MODULE).lint
b9a21c3c91c47e090316e28d759194e46628ed49vboxsyncINSTALL_TARGET = $(BINARY) $(ROOTMODULE)
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync#
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync# lint pass one enforcement
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync#
b9a21c3c91c47e090316e28d759194e46628ed49vboxsyncCFLAGS += $(CCVERBOSE)
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync#
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync# Default build targets.
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync#
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync.KEEP_STATE:
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync
b9a21c3c91c47e090316e28d759194e46628ed49vboxsyncdef: $(DEF_DEPS)
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync
b9a21c3c91c47e090316e28d759194e46628ed49vboxsyncall: $(ALL_DEPS)
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync
b9a21c3c91c47e090316e28d759194e46628ed49vboxsyncclean: $(CLEAN_DEPS)
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync
b9a21c3c91c47e090316e28d759194e46628ed49vboxsyncclobber: $(CLOBBER_DEPS)
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync
b9a21c3c91c47e090316e28d759194e46628ed49vboxsynclint: $(LINT_DEPS)
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync
b9a21c3c91c47e090316e28d759194e46628ed49vboxsyncmodlintlib: $(MODLINTLIB_DEPS)
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync
b9a21c3c91c47e090316e28d759194e46628ed49vboxsyncclean.lint: $(CLEAN_LINT_DEPS)
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync
b9a21c3c91c47e090316e28d759194e46628ed49vboxsyncinstall: $(INSTALL_DEPS)
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync
b9a21c3c91c47e090316e28d759194e46628ed49vboxsynccheck:
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync
b9a21c3c91c47e090316e28d759194e46628ed49vboxsyncLINT_LIB_DIR = $(DOUGLAS_LINT_LIB_DIR)
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync$(PLATLIB): $(BINARY)
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync $(BUILD.SO) $(BINARY)
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync$(SYM_MOD): $(UNIX_O) $(PLATLIB)
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync @echo "resolving symbols against unix.o"
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync @(cd $(UNIX_DIR); pwd; \
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync PLAT_DIR=$(HERE) SYM_MOD=$(HERE)/$(SYM_MOD) $(MAKE) symcheck)
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync#
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync# Include common targets.
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync#
b9a21c3c91c47e090316e28d759194e46628ed49vboxsyncinclude $(UTSBASE)/sun4u/douglas/Makefile.targ
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync