Makefile revision 6ee3e50ca5b616936ee051bd9e7d0af9a74416ec
99ebb4ca412cb0a19d77a3899a87c055b9c30fa8wyllys#
99ebb4ca412cb0a19d77a3899a87c055b9c30fa8wyllys# CDDL HEADER START
99ebb4ca412cb0a19d77a3899a87c055b9c30fa8wyllys#
99ebb4ca412cb0a19d77a3899a87c055b9c30fa8wyllys# The contents of this file are subject to the terms of the
99ebb4ca412cb0a19d77a3899a87c055b9c30fa8wyllys# Common Development and Distribution License (the "License").
99ebb4ca412cb0a19d77a3899a87c055b9c30fa8wyllys# You may not use this file except in compliance with the License.
99ebb4ca412cb0a19d77a3899a87c055b9c30fa8wyllys#
99ebb4ca412cb0a19d77a3899a87c055b9c30fa8wyllys# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
99ebb4ca412cb0a19d77a3899a87c055b9c30fa8wyllys# or http://www.opensolaris.org/os/licensing.
99ebb4ca412cb0a19d77a3899a87c055b9c30fa8wyllys# See the License for the specific language governing permissions
99ebb4ca412cb0a19d77a3899a87c055b9c30fa8wyllys# and limitations under the License.
99ebb4ca412cb0a19d77a3899a87c055b9c30fa8wyllys#
99ebb4ca412cb0a19d77a3899a87c055b9c30fa8wyllys# When distributing Covered Code, include this CDDL HEADER in each
99ebb4ca412cb0a19d77a3899a87c055b9c30fa8wyllys# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
99ebb4ca412cb0a19d77a3899a87c055b9c30fa8wyllys# If applicable, add the following below this CDDL HEADER, with the
99ebb4ca412cb0a19d77a3899a87c055b9c30fa8wyllys# fields enclosed by brackets "[]" replaced with your own identifying
99ebb4ca412cb0a19d77a3899a87c055b9c30fa8wyllys# information: Portions Copyright [yyyy] [name of copyright owner]
99ebb4ca412cb0a19d77a3899a87c055b9c30fa8wyllys#
99ebb4ca412cb0a19d77a3899a87c055b9c30fa8wyllys# CDDL HEADER END
99ebb4ca412cb0a19d77a3899a87c055b9c30fa8wyllys#
99ebb4ca412cb0a19d77a3899a87c055b9c30fa8wyllys
9f0bc604621fbb9b9b038e6de7da8f9c46e28608Wyllys Ingersoll#
99ebb4ca412cb0a19d77a3899a87c055b9c30fa8wyllys# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
99ebb4ca412cb0a19d77a3899a87c055b9c30fa8wyllys# Use is subject to license terms.
99ebb4ca412cb0a19d77a3899a87c055b9c30fa8wyllys#
99ebb4ca412cb0a19d77a3899a87c055b9c30fa8wyllys# ident "%Z%%M% %I% %E% SMI"
99ebb4ca412cb0a19d77a3899a87c055b9c30fa8wyllys#
99ebb4ca412cb0a19d77a3899a87c055b9c30fa8wyllys
99ebb4ca412cb0a19d77a3899a87c055b9c30fa8wyllys#
99ebb4ca412cb0a19d77a3899a87c055b9c30fa8wyllys# This makefile drives the production of the sun4u douglas platform module.
99ebb4ca412cb0a19d77a3899a87c055b9c30fa8wyllys#
99ebb4ca412cb0a19d77a3899a87c055b9c30fa8wyllys# sun4u implementation architecture dependent
99ebb4ca412cb0a19d77a3899a87c055b9c30fa8wyllys#
99ebb4ca412cb0a19d77a3899a87c055b9c30fa8wyllys
99ebb4ca412cb0a19d77a3899a87c055b9c30fa8wyllys#
99ebb4ca412cb0a19d77a3899a87c055b9c30fa8wyllys# Path to the base of the uts directory tree (usually /usr/src/uts).
99ebb4ca412cb0a19d77a3899a87c055b9c30fa8wyllys#
99ebb4ca412cb0a19d77a3899a87c055b9c30fa8wyllysUTSBASE = ../../..
30a5e8fa1253cb33980ee4514743cf683f584b4ewyllys
30a5e8fa1253cb33980ee4514743cf683f584b4ewyllys#
30a5e8fa1253cb33980ee4514743cf683f584b4ewyllys# Define the module and object file sets.
99ebb4ca412cb0a19d77a3899a87c055b9c30fa8wyllys#
30a5e8fa1253cb33980ee4514743cf683f584b4ewyllysMODULE = platmod
99ebb4ca412cb0a19d77a3899a87c055b9c30fa8wyllysOBJECTS = $(DOUGLAS_OBJS:%=$(OBJS_DIR)/%)
30a5e8fa1253cb33980ee4514743cf683f584b4ewyllysLINTS = $(DOUGLAS_OBJS:%.o=$(LINTS_DIR)/%.ln)
30a5e8fa1253cb33980ee4514743cf683f584b4ewyllysROOTMODULE = $(ROOT_DOUGLAS_MISC_DIR)/$(MODULE)
99ebb4ca412cb0a19d77a3899a87c055b9c30fa8wyllys
30a5e8fa1253cb33980ee4514743cf683f584b4ewyllysPLAT_DIR = .
30a5e8fa1253cb33980ee4514743cf683f584b4ewyllysHERE = ../douglas/platmod
30a5e8fa1253cb33980ee4514743cf683f584b4ewyllys
30a5e8fa1253cb33980ee4514743cf683f584b4ewyllys#
30a5e8fa1253cb33980ee4514743cf683f584b4ewyllys# Include common rules.
30a5e8fa1253cb33980ee4514743cf683f584b4ewyllys#
30a5e8fa1253cb33980ee4514743cf683f584b4ewyllysinclude $(UTSBASE)/sun4u/douglas/Makefile.douglas
99ebb4ca412cb0a19d77a3899a87c055b9c30fa8wyllys
30a5e8fa1253cb33980ee4514743cf683f584b4ewyllys#
30a5e8fa1253cb33980ee4514743cf683f584b4ewyllys# Override defaults
99ebb4ca412cb0a19d77a3899a87c055b9c30fa8wyllys#
30a5e8fa1253cb33980ee4514743cf683f584b4ewyllysCLEANFILES += $(PLATLIB) $(SYM_MOD)
99ebb4ca412cb0a19d77a3899a87c055b9c30fa8wyllys
99ebb4ca412cb0a19d77a3899a87c055b9c30fa8wyllys#
30a5e8fa1253cb33980ee4514743cf683f584b4ewyllys# Define targets
99ebb4ca412cb0a19d77a3899a87c055b9c30fa8wyllys#
30a5e8fa1253cb33980ee4514743cf683f584b4ewyllysALL_TARGET = $(SYM_MOD)
30a5e8fa1253cb33980ee4514743cf683f584b4ewyllysLINT_TARGET = $(MODULE).lint
99ebb4ca412cb0a19d77a3899a87c055b9c30fa8wyllysINSTALL_TARGET = $(BINARY) $(ROOTMODULE)
99ebb4ca412cb0a19d77a3899a87c055b9c30fa8wyllys
99ebb4ca412cb0a19d77a3899a87c055b9c30fa8wyllys#
99ebb4ca412cb0a19d77a3899a87c055b9c30fa8wyllys# lint pass one enforcement
30a5e8fa1253cb33980ee4514743cf683f584b4ewyllys#
30a5e8fa1253cb33980ee4514743cf683f584b4ewyllysCFLAGS += $(CCVERBOSE)
30a5e8fa1253cb33980ee4514743cf683f584b4ewyllys
30a5e8fa1253cb33980ee4514743cf683f584b4ewyllys#
30a5e8fa1253cb33980ee4514743cf683f584b4ewyllys# Default build targets.
99ebb4ca412cb0a19d77a3899a87c055b9c30fa8wyllys#
30a5e8fa1253cb33980ee4514743cf683f584b4ewyllys.KEEP_STATE:
99ebb4ca412cb0a19d77a3899a87c055b9c30fa8wyllys
30a5e8fa1253cb33980ee4514743cf683f584b4ewyllysdef: $(DEF_DEPS)
30a5e8fa1253cb33980ee4514743cf683f584b4ewyllys
99ebb4ca412cb0a19d77a3899a87c055b9c30fa8wyllysall: $(ALL_DEPS)
99ebb4ca412cb0a19d77a3899a87c055b9c30fa8wyllys
99ebb4ca412cb0a19d77a3899a87c055b9c30fa8wyllysclean: $(CLEAN_DEPS)
99ebb4ca412cb0a19d77a3899a87c055b9c30fa8wyllys
99ebb4ca412cb0a19d77a3899a87c055b9c30fa8wyllysclobber: $(CLOBBER_DEPS)
99ebb4ca412cb0a19d77a3899a87c055b9c30fa8wyllys
30a5e8fa1253cb33980ee4514743cf683f584b4ewyllyslint: $(LINT_DEPS)
30a5e8fa1253cb33980ee4514743cf683f584b4ewyllys
30a5e8fa1253cb33980ee4514743cf683f584b4ewyllysmodlintlib: $(MODLINTLIB_DEPS)
99ebb4ca412cb0a19d77a3899a87c055b9c30fa8wyllys
30a5e8fa1253cb33980ee4514743cf683f584b4ewyllysclean.lint: $(CLEAN_LINT_DEPS)
99ebb4ca412cb0a19d77a3899a87c055b9c30fa8wyllys
30a5e8fa1253cb33980ee4514743cf683f584b4ewyllysinstall: $(INSTALL_DEPS)
30a5e8fa1253cb33980ee4514743cf683f584b4ewyllys
30a5e8fa1253cb33980ee4514743cf683f584b4ewyllyscheck:
30a5e8fa1253cb33980ee4514743cf683f584b4ewyllys
99ebb4ca412cb0a19d77a3899a87c055b9c30fa8wyllysLINT_LIB_DIR = $(DOUGLAS_LINT_LIB_DIR)
30a5e8fa1253cb33980ee4514743cf683f584b4ewyllys
30a5e8fa1253cb33980ee4514743cf683f584b4ewyllys$(PLATLIB): $(BINARY)
30a5e8fa1253cb33980ee4514743cf683f584b4ewyllys $(BUILD.SO) $(BINARY)
30a5e8fa1253cb33980ee4514743cf683f584b4ewyllys
30a5e8fa1253cb33980ee4514743cf683f584b4ewyllys$(SYM_MOD): $(UNIX_O) $(PLATLIB)
99ebb4ca412cb0a19d77a3899a87c055b9c30fa8wyllys @echo "resolving symbols against unix.o"
30a5e8fa1253cb33980ee4514743cf683f584b4ewyllys @(cd $(UNIX_DIR); pwd; \
30a5e8fa1253cb33980ee4514743cf683f584b4ewyllys PLAT_DIR=$(HERE) SYM_MOD=$(HERE)/$(SYM_MOD) $(MAKE) symcheck)
30a5e8fa1253cb33980ee4514743cf683f584b4ewyllys
30a5e8fa1253cb33980ee4514743cf683f584b4ewyllys#
99ebb4ca412cb0a19d77a3899a87c055b9c30fa8wyllys# Include common targets.
99ebb4ca412cb0a19d77a3899a87c055b9c30fa8wyllys#
30a5e8fa1253cb33980ee4514743cf683f584b4ewyllysinclude $(UTSBASE)/sun4u/douglas/Makefile.targ
30a5e8fa1253cb33980ee4514743cf683f584b4ewyllys