abbedb998850d9950bc5f5907ca2f6437b0a936ewrowe#
abbedb998850d9950bc5f5907ca2f6437b0a936ewrowe# CDDL HEADER START
abbedb998850d9950bc5f5907ca2f6437b0a936ewrowe#
abbedb998850d9950bc5f5907ca2f6437b0a936ewrowe# The contents of this file are subject to the terms of the
abbedb998850d9950bc5f5907ca2f6437b0a936ewrowe# Common Development and Distribution License (the "License").
abbedb998850d9950bc5f5907ca2f6437b0a936ewrowe# You may not use this file except in compliance with the License.
8606595dda2827ddf9a9572e779c3c001ae98bc8fuankg#
8606595dda2827ddf9a9572e779c3c001ae98bc8fuankg# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
8606595dda2827ddf9a9572e779c3c001ae98bc8fuankg# or http://www.opensolaris.org/os/licensing.
8606595dda2827ddf9a9572e779c3c001ae98bc8fuankg# See the License for the specific language governing permissions
8606595dda2827ddf9a9572e779c3c001ae98bc8fuankg# and limitations under the License.
8606595dda2827ddf9a9572e779c3c001ae98bc8fuankg#
f3220f54126b25e1cf93cc26c17177b7aef850fdfielding# When distributing Covered Code, include this CDDL HEADER in each
f3220f54126b25e1cf93cc26c17177b7aef850fdfielding# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
f3220f54126b25e1cf93cc26c17177b7aef850fdfielding# If applicable, add the following below this CDDL HEADER, with the
f3220f54126b25e1cf93cc26c17177b7aef850fdfielding# fields enclosed by brackets "[]" replaced with your own identifying
d465130a2383063c73545375b4444bcef3cf30f6fielding# information: Portions Copyright [yyyy] [name of copyright owner]
f3220f54126b25e1cf93cc26c17177b7aef850fdfielding#
f3220f54126b25e1cf93cc26c17177b7aef850fdfielding# CDDL HEADER END
f3220f54126b25e1cf93cc26c17177b7aef850fdfielding#
f3220f54126b25e1cf93cc26c17177b7aef850fdfielding
f3220f54126b25e1cf93cc26c17177b7aef850fdfielding#
f3220f54126b25e1cf93cc26c17177b7aef850fdfielding# Copyright 2005 Sun Microsystems, Inc. All rights reserved.
f3220f54126b25e1cf93cc26c17177b7aef850fdfielding# Use is subject to license terms.
f3220f54126b25e1cf93cc26c17177b7aef850fdfielding#
f3220f54126b25e1cf93cc26c17177b7aef850fdfielding# ident "%Z%%M% %I% %E% SMI"
f3220f54126b25e1cf93cc26c17177b7aef850fdfielding#
f3220f54126b25e1cf93cc26c17177b7aef850fdfielding
f3220f54126b25e1cf93cc26c17177b7aef850fdfielding#
f3220f54126b25e1cf93cc26c17177b7aef850fdfielding# This makefile drives the production of the sun4u blade platform module.
f3220f54126b25e1cf93cc26c17177b7aef850fdfielding#
f3220f54126b25e1cf93cc26c17177b7aef850fdfielding# sun4u implementation architecture dependent
f3220f54126b25e1cf93cc26c17177b7aef850fdfielding#
f3220f54126b25e1cf93cc26c17177b7aef850fdfielding
f3220f54126b25e1cf93cc26c17177b7aef850fdfielding#
f3220f54126b25e1cf93cc26c17177b7aef850fdfielding# Path to the base of the uts directory tree (usually /usr/src/uts).
f3220f54126b25e1cf93cc26c17177b7aef850fdfielding#
f3220f54126b25e1cf93cc26c17177b7aef850fdfieldingUTSBASE = ../../..
f3220f54126b25e1cf93cc26c17177b7aef850fdfielding
f3220f54126b25e1cf93cc26c17177b7aef850fdfielding#
f3220f54126b25e1cf93cc26c17177b7aef850fdfielding# Define the module and object file sets.
f3220f54126b25e1cf93cc26c17177b7aef850fdfielding#
MODULE = platmod
OBJECTS = $(BLADE_OBJS:%=$(OBJS_DIR)/%)
LINTS = $(BLADE_OBJS:%.o=$(LINTS_DIR)/%.ln)
ROOTMODULE = $(ROOT_BLADE_MISC_DIR)/$(MODULE)
PLAT_DIR = .
HERE = ../blade/platmod
#
# Include common rules.
#
include $(UTSBASE)/sun4u/blade/Makefile.blade
#
# Override defaults
#
CLEANFILES += $(PLATLIB) $(SYM_MOD)
#
# Define targets
#
ALL_TARGET = $(SYM_MOD)
LINT_TARGET = $(MODULE).lint
INSTALL_TARGET = $(BINARY) $(ROOTMODULE)
#
# lint pass one enforcement
#
CFLAGS += $(CCVERBOSE)
#
# Default build targets.
#
.KEEP_STATE:
def: $(DEF_DEPS)
all: $(ALL_DEPS)
clean: $(CLEAN_DEPS)
clobber: $(CLOBBER_DEPS)
lint: $(LINT_DEPS)
modlintlib: $(MODLINTLIB_DEPS)
clean.lint: $(CLEAN_LINT_DEPS)
install: $(INSTALL_DEPS)
check:
LINT_LIB_DIR = $(BLADE_LINT_LIB_DIR)
$(PLATLIB): $(BINARY)
$(BUILD.SO) $(BINARY)
$(SYM_MOD): $(UNIX_O) $(PLATLIB)
@echo "resolving symbols against unix.o"
@(cd $(UNIX_DIR); pwd; \
PLAT_DIR=$(HERE) SYM_MOD=$(HERE)/$(SYM_MOD) $(MAKE) symcheck)
#
# Include common targets.
#
include $(UTSBASE)/sun4u/blade/Makefile.targ