xref: /titanic_50/usr/src/uts/sun4v/su/Makefile (revision bb25c06cca41ca78e5fb87fbb8e81d55beb18c95)
1d3cf9c7dSdf157793#
2d3cf9c7dSdf157793# CDDL HEADER START
3d3cf9c7dSdf157793#
4d3cf9c7dSdf157793# The contents of this file are subject to the terms of the
5*bb25c06cSjg# Common Development and Distribution License (the "License").
6*bb25c06cSjg# 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
23*bb25c06cSjg# Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
24d3cf9c7dSdf157793# Use is subject to license terms.
25d3cf9c7dSdf157793#
26d3cf9c7dSdf157793#ident	"%Z%%M%	%I%	%E% SMI"
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#
64*bb25c06cSjg# For now, disable these lint checks; maintainers should endeavor
65*bb25c06cSjg# to investigate and remove these for maximum lint coverage.
66*bb25c06cSjg# Please do not carry these forward to new Makefiles.
67*bb25c06cSjg#
68*bb25c06cSjgLINTTAGS	+= -erroff=E_BAD_PTR_CAST_ALIGN
69*bb25c06cSjgLINTTAGS	+= -erroff=E_PTRDIFF_OVERFLOW
70*bb25c06cSjgLINTTAGS	+= -erroff=E_ASSIGN_NARROW_CONV
71*bb25c06cSjg
72*bb25c06cSjg#
73d3cf9c7dSdf157793#	Default build targets.
74d3cf9c7dSdf157793#
75d3cf9c7dSdf157793.KEEP_STATE:
76d3cf9c7dSdf157793
77d3cf9c7dSdf157793def:		$(DEF_DEPS)
78d3cf9c7dSdf157793
79d3cf9c7dSdf157793all:		$(ALL_DEPS)
80d3cf9c7dSdf157793
81d3cf9c7dSdf157793clean:		$(CLEAN_DEPS)
82d3cf9c7dSdf157793
83d3cf9c7dSdf157793clobber:	$(CLOBBER_DEPS)
84d3cf9c7dSdf157793
85d3cf9c7dSdf157793lint:		$(LINT_DEPS)
86d3cf9c7dSdf157793
87d3cf9c7dSdf157793modlintlib:	$(MODLINTLIB_DEPS)
88d3cf9c7dSdf157793
89d3cf9c7dSdf157793clean.lint:	$(CLEAN_LINT_DEPS)
90d3cf9c7dSdf157793
91d3cf9c7dSdf157793install:	$(INSTALL_DEPS)
92d3cf9c7dSdf157793
93d3cf9c7dSdf157793#
94d3cf9c7dSdf157793#	Include common targets.
95d3cf9c7dSdf157793#
96d3cf9c7dSdf157793include $(UTSBASE)/sun4v/Makefile.targ
97