xref: /titanic_51/usr/src/uts/i86xpv/xdf/Makefile (revision 7014882c6a3672fd0e5d60200af8643ae53c5928)
1843e1988Sjohnlev#
2843e1988Sjohnlev# CDDL HEADER START
3843e1988Sjohnlev#
4843e1988Sjohnlev# The contents of this file are subject to the terms of the
5843e1988Sjohnlev# Common Development and Distribution License (the "License").
6843e1988Sjohnlev# You may not use this file except in compliance with the License.
7843e1988Sjohnlev#
8843e1988Sjohnlev# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9843e1988Sjohnlev# or http://www.opensolaris.org/os/licensing.
10843e1988Sjohnlev# See the License for the specific language governing permissions
11843e1988Sjohnlev# and limitations under the License.
12843e1988Sjohnlev#
13843e1988Sjohnlev# When distributing Covered Code, include this CDDL HEADER in each
14843e1988Sjohnlev# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15843e1988Sjohnlev# If applicable, add the following below this CDDL HEADER, with the
16843e1988Sjohnlev# fields enclosed by brackets "[]" replaced with your own identifying
17843e1988Sjohnlev# information: Portions Copyright [yyyy] [name of copyright owner]
18843e1988Sjohnlev#
19843e1988Sjohnlev# CDDL HEADER END
20843e1988Sjohnlev#
21843e1988Sjohnlev
22843e1988Sjohnlev#
23843e1988Sjohnlev# uts/i86xpv/xdf/Makefile
24843e1988Sjohnlev#
25843e1988Sjohnlev# Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
26843e1988Sjohnlev# Use is subject to license terms.
27843e1988Sjohnlev#
28*7014882cSRichard Lowe
29843e1988Sjohnlev#
30843e1988Sjohnlev#	i86xpv architecture dependent
31843e1988Sjohnlev#
32843e1988Sjohnlev#
33843e1988Sjohnlev#	Path to the base of the uts directory tree (usually /usr/src/uts).
34843e1988Sjohnlev#
35843e1988SjohnlevUTSBASE	= ../..
36843e1988Sjohnlev
37843e1988Sjohnlev#
38843e1988Sjohnlev#	Define the module and object file sets.
39843e1988Sjohnlev#
40843e1988SjohnlevMODULE		= xdf
41843e1988SjohnlevOBJECTS		= $(XDF_OBJS:%=$(OBJS_DIR)/%)
42843e1988SjohnlevLINTS		= $(XDF_OBJS:%.o=$(LINTS_DIR)/%.ln)
43843e1988SjohnlevROOTMODULE	= $(ROOT_PSM_DRV_DIR)/$(MODULE)
44843e1988Sjohnlev
45843e1988Sjohnlev#
46843e1988Sjohnlev#	Include common rules.
47843e1988Sjohnlev#
48843e1988Sjohnlevinclude $(UTSBASE)/i86xpv/Makefile.i86xpv
49843e1988Sjohnlev
50843e1988Sjohnlev#
51843e1988Sjohnlev#	Define targets
52843e1988Sjohnlev#
53843e1988SjohnlevALL_TARGET	= $(BINARY)
54843e1988SjohnlevLINT_TARGET	= $(MODULE).lint
55843e1988SjohnlevINSTALL_TARGET	= $(BINARY) $(ROOTMODULE)
56843e1988Sjohnlev
57843e1988Sjohnlev# Overrides
58843e1988SjohnlevLDFLAGS		+= -dy -Nmisc/cmlb
59843e1988Sjohnlev
60843e1988SjohnlevLINTTAGS	+= -erroff=E_SUSPICIOUS_COMPARISON
61843e1988SjohnlevLINTTAGS	+= -erroff=E_ASSIGN_NARROW_CONV
62843e1988SjohnlevLINTTAGS	+= -erroff=E_BAD_PTR_CAST_ALIGN
63843e1988Sjohnlev
64*7014882cSRichard LoweCERRWARN	+= -_gcc=-Wno-parentheses
65*7014882cSRichard LoweCERRWARN	+= -_gcc=-Wno-switch
66*7014882cSRichard Lowe
67843e1988Sjohnlev#
68843e1988Sjohnlev#	Default build targets.
69843e1988Sjohnlev#
70843e1988Sjohnlev.KEEP_STATE:
71843e1988Sjohnlev
72843e1988Sjohnlevdef:		$(DEF_DEPS)
73843e1988Sjohnlev
74843e1988Sjohnlevall:		$(ALL_DEPS)
75843e1988Sjohnlev
76843e1988Sjohnlevclean:		$(CLEAN_DEPS)
77843e1988Sjohnlev
78843e1988Sjohnlevclobber:	$(CLOBBER_DEPS)
79843e1988Sjohnlev
80843e1988Sjohnlevlint:		$(LINT_DEPS)
81843e1988Sjohnlev
82843e1988Sjohnlevmodlintlib:	$(MODLINTLIB_DEPS)
83843e1988Sjohnlev
84843e1988Sjohnlevclean.lint:	$(CLEAN_LINT_DEPS)
85843e1988Sjohnlev
86843e1988Sjohnlevinstall:	$(INSTALL_DEPS)
87843e1988Sjohnlev
88843e1988Sjohnlev#
89843e1988Sjohnlev#	Include common targets.
90843e1988Sjohnlev#
91843e1988Sjohnlevinclude $(UTSBASE)/i86xpv/Makefile.targ
92