Makefile revision 3066:2a2af34f0642
1130803Smarcel#
2130803Smarcel# CDDL HEADER START
3130803Smarcel#
4130803Smarcel# The contents of this file are subject to the terms of the
5130803Smarcel# Common Development and Distribution License (the "License").
6130803Smarcel# You may not use this file except in compliance with the License.
7130803Smarcel#
8130803Smarcel# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9130803Smarcel# or http://www.opensolaris.org/os/licensing.
10130803Smarcel# See the License for the specific language governing permissions
11130803Smarcel# and limitations under the License.
12130803Smarcel#
13130803Smarcel# When distributing Covered Code, include this CDDL HEADER in each
14130803Smarcel# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15130803Smarcel# If applicable, add the following below this CDDL HEADER, with the
16130803Smarcel# fields enclosed by brackets "[]" replaced with your own identifying
17130803Smarcel# information: Portions Copyright [yyyy] [name of copyright owner]
18130803Smarcel#
19130803Smarcel# CDDL HEADER END
20130803Smarcel#
21130803Smarcel#
22130803Smarcel# uts/intel/kbtrans/Makefile
23130803Smarcel# Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
24130803Smarcel# Use is subject to license terms.
25130803Smarcel#
26130803Smarcel#ident	"%Z%%M%	%I%	%E% SMI"
27130803Smarcel#
28130803Smarcel#	This makefile drives the production of the kbtrans kernel module.
29130803Smarcel#
30130803Smarcel#	intel implementation architecture dependent
31130803Smarcel#
32130803Smarcel
33130803Smarcel#
34130803Smarcel#	Path to the base of the uts directory tree (usually /usr/src/uts).
35130803Smarcel#
36130803SmarcelUTSBASE	= ../..
37130803Smarcel
38130803Smarcel#
39130803Smarcel#	Define the module and object file sets.
40130803Smarcel#
41130803SmarcelMODULE		= kbtrans
42130803SmarcelOBJECTS		= $(KBTRANS_OBJS:%=$(OBJS_DIR)/%)
43130803SmarcelLINTS		= $(KBTRANS_OBJS:%.o=$(LINTS_DIR)/%.ln)
44130803SmarcelROOTMODULE	= $(ROOT_MISC_DIR)/$(MODULE)
45130803Smarcel
46130803Smarcel#
47130803Smarcel#	Include common rules.
48130803Smarcel#
49130803Smarcelinclude $(UTSBASE)/intel/Makefile.intel
50130803Smarcel
51130803Smarcel#
52130803Smarcel#	Define targets
53130803Smarcel#
54130803SmarcelALL_TARGET	= $(BINARY)
55130803SmarcelLINT_TARGET	= $(MODULE).lint
56130803SmarcelINSTALL_TARGET	= $(BINARY) $(ROOTMODULE)
57130803Smarcel
58130803Smarcel#
59130803Smarcel# For now, disable these lint checks; maintainers should endeavor
60130803Smarcel# to investigate and remove these for maximum lint coverage.
61130803Smarcel# Please do not carry these forward to new Makefiles.
62130803Smarcel#
63130803SmarcelLINTTAGS	+= -erroff=E_BAD_PTR_CAST_ALIGN
64130803SmarcelLINTTAGS	+= -erroff=E_ASSIGN_NARROW_CONV
65130803Smarcel
66130803Smarcel.KEEP_STATE:
67130803Smarcel
68130803Smarceldef:		$(DEF_DEPS)
69130803Smarcel
70130803Smarcelall:		$(ALL_DEPS)
71130803Smarcel
72130803Smarcelclean:		$(CLEAN_DEPS)
73130803Smarcel
74130803Smarcelclobber:	$(CLOBBER_DEPS)
75130803Smarcel
76130803Smarcellint:		$(LINT_DEPS)
77130803Smarcel
78130803Smarcelmodlintlib:	$(MODLINTLIB_DEPS)
79130803Smarcel
80130803Smarcelclean.lint:	$(CLEAN_LINT_DEPS)
81130803Smarcel
82130803Smarcelinstall:	$(INSTALL_DEPS)
83130803Smarcel
84130803Smarcel
85130803Smarcel#
86130803Smarcel#	Include common targets.
87130803Smarcel#
88130803Smarcelinclude $(UTSBASE)/intel/Makefile.targ
89130803Smarcel