xref: /titanic_50/usr/src/uts/sparc/mouse8042/Makefile (revision 7014882c6a3672fd0e5d60200af8643ae53c5928)
1fd9cb95cSsethg#
2fd9cb95cSsethg# CDDL HEADER START
3fd9cb95cSsethg#
4fd9cb95cSsethg# 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.
7fd9cb95cSsethg#
8fd9cb95cSsethg# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9fd9cb95cSsethg# or http://www.opensolaris.org/os/licensing.
10fd9cb95cSsethg# See the License for the specific language governing permissions
11fd9cb95cSsethg# and limitations under the License.
12fd9cb95cSsethg#
13fd9cb95cSsethg# When distributing Covered Code, include this CDDL HEADER in each
14fd9cb95cSsethg# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15fd9cb95cSsethg# If applicable, add the following below this CDDL HEADER, with the
16fd9cb95cSsethg# fields enclosed by brackets "[]" replaced with your own identifying
17fd9cb95cSsethg# information: Portions Copyright [yyyy] [name of copyright owner]
18fd9cb95cSsethg#
19fd9cb95cSsethg# CDDL HEADER END
20fd9cb95cSsethg#
21fd9cb95cSsethg#
22bb25c06cSjg# Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
23fd9cb95cSsethg# Use is subject to license terms.
24fd9cb95cSsethg#
25*7014882cSRichard Lowe
26fd9cb95cSsethg#
27fd9cb95cSsethg#	This makefile drives the production of the mouse8042 driver
28fd9cb95cSsethg#
29fd9cb95cSsethg#
30fd9cb95cSsethg
31fd9cb95cSsethg#
32fd9cb95cSsethg#	Path to the base of the uts directory tree (usually /usr/src/uts).
33fd9cb95cSsethg#
34fd9cb95cSsethgUTSBASE	= ../..
35fd9cb95cSsethg
36fd9cb95cSsethg#
37fd9cb95cSsethg#	Define the module and object file sets.
38fd9cb95cSsethg#
39fd9cb95cSsethgMODULE		= mouse8042
40fd9cb95cSsethgOBJECTS		= $(MOUSE8042_OBJS:%=$(OBJS_DIR)/%)
41fd9cb95cSsethgLINTS		= $(MOUSE8042_OBJS:%.o=$(LINTS_DIR)/%.ln)
42fd9cb95cSsethgROOTMODULE	= $(ROOT_DRV_DIR)/$(MODULE)
43fd9cb95cSsethg
44fd9cb95cSsethg#
45fd9cb95cSsethg#	Include common rules.
46fd9cb95cSsethg#
47fd9cb95cSsethginclude $(UTSBASE)/sparc/Makefile.sparc
48fd9cb95cSsethg
49fd9cb95cSsethg#
50fd9cb95cSsethg#	Define targets
51fd9cb95cSsethg#
52fd9cb95cSsethgALL_TARGET	= $(BINARY) # $(SRC_CONFILE)
53fd9cb95cSsethgLINT_TARGET	= $(MODULE).lint
54fd9cb95cSsethgINSTALL_TARGET	= $(BINARY) $(ROOTMODULE)
55fd9cb95cSsethg
56fd9cb95cSsethgLDFLAGS += -dy -Ndacf/consconfig_dacf
57fd9cb95cSsethg
58fd9cb95cSsethg#
59bb25c06cSjg# For now, disable these lint checks; maintainers should endeavor
60bb25c06cSjg# to investigate and remove these for maximum lint coverage.
61bb25c06cSjg# Please do not carry these forward to new Makefiles.
62bb25c06cSjg#
63bb25c06cSjgLINTTAGS	+= -erroff=E_BAD_PTR_CAST_ALIGN
64bb25c06cSjg
65*7014882cSRichard LoweCERRWARN	+= -_gcc=-Wno-parentheses
66*7014882cSRichard LoweCERRWARN	+= -_gcc=-Wno-switch
67*7014882cSRichard Lowe
68bb25c06cSjg#
69fd9cb95cSsethg#	Default build targets.
70fd9cb95cSsethg#
71fd9cb95cSsethg.KEEP_STATE:
72fd9cb95cSsethg
73fd9cb95cSsethgdef:		$(DEF_DEPS)
74fd9cb95cSsethg
75fd9cb95cSsethgall:		$(ALL_DEPS)
76fd9cb95cSsethg
77fd9cb95cSsethgclean:		$(CLEAN_DEPS)
78fd9cb95cSsethg
79fd9cb95cSsethgclobber:	$(CLOBBER_DEPS)
80fd9cb95cSsethg
81fd9cb95cSsethglint:		$(LINT_DEPS)
82fd9cb95cSsethg
83fd9cb95cSsethgmodlintlib:	$(MODLINTLIB_DEPS)
84fd9cb95cSsethg
85fd9cb95cSsethgclean.lint:	$(CLEAN_LINT_DEPS)
86fd9cb95cSsethg
87fd9cb95cSsethginstall:	$(INSTALL_DEPS)
88fd9cb95cSsethg
89fd9cb95cSsethg#
90fd9cb95cSsethg#	Include common targets.
91fd9cb95cSsethg#
92fd9cb95cSsethginclude $(UTSBASE)/sparc/Makefile.targ
93