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