1d3cf9c7dSdf157793# 2d3cf9c7dSdf157793# CDDL HEADER START 3d3cf9c7dSdf157793# 4d3cf9c7dSdf157793# The contents of this file are subject to the terms of the 5bb25c06cSjg# Common Development and Distribution License (the "License"). 6bb25c06cSjg# You may not use this file except in compliance with the License. 7d3cf9c7dSdf157793# 8d3cf9c7dSdf157793# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9d3cf9c7dSdf157793# or http://www.opensolaris.org/os/licensing. 10d3cf9c7dSdf157793# See the License for the specific language governing permissions 11d3cf9c7dSdf157793# and limitations under the License. 12d3cf9c7dSdf157793# 13d3cf9c7dSdf157793# When distributing Covered Code, include this CDDL HEADER in each 14d3cf9c7dSdf157793# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15d3cf9c7dSdf157793# If applicable, add the following below this CDDL HEADER, with the 16d3cf9c7dSdf157793# fields enclosed by brackets "[]" replaced with your own identifying 17d3cf9c7dSdf157793# information: Portions Copyright [yyyy] [name of copyright owner] 18d3cf9c7dSdf157793# 19d3cf9c7dSdf157793# CDDL HEADER END 20d3cf9c7dSdf157793# 21d3cf9c7dSdf157793# 22d3cf9c7dSdf157793# uts/sun4v/su/Makefile 23bb25c06cSjg# Copyright 2006 Sun Microsystems, Inc. All rights reserved. 24d3cf9c7dSdf157793# Use is subject to license terms. 25d3cf9c7dSdf157793# 26*7014882cSRichard Lowe 27d3cf9c7dSdf157793# 28d3cf9c7dSdf157793# This makefile drives the production of the sun4v "su" driver module. 29d3cf9c7dSdf157793# 30d3cf9c7dSdf157793# sun4v implementation architecture dependent 31d3cf9c7dSdf157793# 32d3cf9c7dSdf157793 33d3cf9c7dSdf157793# 34d3cf9c7dSdf157793# Path to the base of the uts directory tree (usually /usr/src/uts). 35d3cf9c7dSdf157793# 36d3cf9c7dSdf157793UTSBASE = ../.. 37d3cf9c7dSdf157793 38d3cf9c7dSdf157793# 39d3cf9c7dSdf157793# Define the module and object file sets. 40d3cf9c7dSdf157793# 41d3cf9c7dSdf157793MODULE = su 42d3cf9c7dSdf157793OBJECTS = $(SU_OBJS:%=$(OBJS_DIR)/%) 43d3cf9c7dSdf157793LINTS = $(SU_OBJS:%.o=$(LINTS_DIR)/%.ln) 44d3cf9c7dSdf157793ROOTMODULE = $(ROOT_PSM_DRV_DIR)/$(MODULE) 45d3cf9c7dSdf157793 46d3cf9c7dSdf157793# 47d3cf9c7dSdf157793# Include common rules. 48d3cf9c7dSdf157793# 49d3cf9c7dSdf157793include $(UTSBASE)/sun4v/Makefile.sun4v 50d3cf9c7dSdf157793 51d3cf9c7dSdf157793# 52d3cf9c7dSdf157793# Define targets 53d3cf9c7dSdf157793# 54d3cf9c7dSdf157793ALL_TARGET = $(BINARY) 55d3cf9c7dSdf157793LINT_TARGET = $(MODULE).lint 56d3cf9c7dSdf157793INSTALL_TARGET = $(BINARY) $(ROOTMODULE) 57d3cf9c7dSdf157793 58d3cf9c7dSdf157793# 59d3cf9c7dSdf157793# lint pass one enforcement 60d3cf9c7dSdf157793# 61d3cf9c7dSdf157793CFLAGS += $(CCVERBOSE) 62d3cf9c7dSdf157793 63d3cf9c7dSdf157793# 64bb25c06cSjg# For now, disable these lint checks; maintainers should endeavor 65bb25c06cSjg# to investigate and remove these for maximum lint coverage. 66bb25c06cSjg# Please do not carry these forward to new Makefiles. 67bb25c06cSjg# 68bb25c06cSjgLINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN 69bb25c06cSjgLINTTAGS += -erroff=E_PTRDIFF_OVERFLOW 70bb25c06cSjgLINTTAGS += -erroff=E_ASSIGN_NARROW_CONV 71bb25c06cSjg 72*7014882cSRichard LoweCERRWARN += -_gcc=-Wno-parentheses 73*7014882cSRichard LoweCERRWARN += -_gcc=-Wno-uninitialized 74*7014882cSRichard Lowe 75bb25c06cSjg# 76d3cf9c7dSdf157793# Default build targets. 77d3cf9c7dSdf157793# 78d3cf9c7dSdf157793.KEEP_STATE: 79d3cf9c7dSdf157793 80d3cf9c7dSdf157793def: $(DEF_DEPS) 81d3cf9c7dSdf157793 82d3cf9c7dSdf157793all: $(ALL_DEPS) 83d3cf9c7dSdf157793 84d3cf9c7dSdf157793clean: $(CLEAN_DEPS) 85d3cf9c7dSdf157793 86d3cf9c7dSdf157793clobber: $(CLOBBER_DEPS) 87d3cf9c7dSdf157793 88d3cf9c7dSdf157793lint: $(LINT_DEPS) 89d3cf9c7dSdf157793 90d3cf9c7dSdf157793modlintlib: $(MODLINTLIB_DEPS) 91d3cf9c7dSdf157793 92d3cf9c7dSdf157793clean.lint: $(CLEAN_LINT_DEPS) 93d3cf9c7dSdf157793 94d3cf9c7dSdf157793install: $(INSTALL_DEPS) 95d3cf9c7dSdf157793 96d3cf9c7dSdf157793# 97d3cf9c7dSdf157793# Include common targets. 98d3cf9c7dSdf157793# 99d3cf9c7dSdf157793include $(UTSBASE)/sun4v/Makefile.targ 100