Makefile revision 7492:2387323b838f
1233294Sstas#
255682Smarkm# CDDL HEADER START
390926Snectar#
455682Smarkm# The contents of this file are subject to the terms of the
572445Sassar# Common Development and Distribution License (the "License").
672445Sassar# You may not use this file except in compliance with the License.
772445Sassar#
872445Sassar# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
955682Smarkm# or http://www.opensolaris.org/os/licensing.
10233294Sstas# See the License for the specific language governing permissions
11178825Sdfr# and limitations under the License.
12178825Sdfr#
1355682Smarkm# When distributing Covered Code, include this CDDL HEADER in each
14233294Sstas# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15233294Sstas# If applicable, add the following below this CDDL HEADER, with the
16233294Sstas# fields enclosed by brackets "[]" replaced with your own identifying
1755682Smarkm# information: Portions Copyright [yyyy] [name of copyright owner]
18233294Sstas#
19233294Sstas# CDDL HEADER END
20233294Sstas#
21233294Sstas#
22178825Sdfr# uts/intel/hidparser/Makefile
23233294Sstas# Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
2472445Sassar# Use is subject to license terms.
2590926Snectar#
2690926Snectar#
2790926Snectar#	This makefile drives the production of the hidparser driver 
28233294Sstas#	kernel module.
29178825Sdfr#
30178825Sdfr
3190926Snectar#
32103423Snectar#	Path to the base of the uts directory tree (usually /usr/src/uts).
33178825Sdfr#
3490926SnectarUTSBASE	= ../..
35233294Sstas
36233294Sstas#
3772445Sassar#	Define the module and object file sets.
3855682Smarkm#
3955682SmarkmMODULE		= hidparser
40233294SstasOBJECTS		= $(HIDPARSER_OBJS:%=$(OBJS_DIR)/%)
4190926SnectarLINTS		= $(HIDPARSER_OBJS:%.o=$(LINTS_DIR)/%.ln)
4272445SassarROOTMODULE	= $(ROOT_MISC_DIR)/$(MODULE)
43102644Snectar
44233294Sstas#
45178825Sdfr#	Include common rules.
46102644Snectar#
47103423Snectarinclude $(UTSBASE)/intel/Makefile.intel
48103423Snectar
49103423Snectar#
50178825Sdfr#	Define targets
51178825Sdfr#
52233294SstasALL_TARGET	= $(BINARY)
53233294SstasLINT_TARGET	= $(MODULE).lint
54178825SdfrINSTALL_TARGET	= $(BINARY) $(ROOTMODULE)
55178825Sdfr
56178825Sdfr#
57102644Snectar#	Override defaults to build a unique, local modstubs.o.
58178825Sdfr#
59233294SstasMODSTUBS_DIR	 = $(OBJS_DIR)
60102644SnectarCLEANFILES	+= $(MODSTUBS_O)
6190926Snectar
62233294Sstas#
63233294Sstas# depends on misc/usba
64233294Sstas#
6555682SmarkmLDFLAGS         += -dy -Nmisc/usba
66178825Sdfr
67178825Sdfr#
6855682Smarkm#	Default build targets.
6955682Smarkm#
7078527Sassar.KEEP_STATE:
7155682Smarkm
72233294Sstasdef:		$(DEF_DEPS)
73233294Sstas
74233294Sstasall:		$(ALL_DEPS)
75178825Sdfr
7672445Sassarclean:		$(CLEAN_DEPS)
7755682Smarkm
7872445Sassarclobber:	$(CLOBBER_DEPS)
7955682Smarkm
8057419Smarkmlint:		$(LINT_DEPS)
8155682Smarkm
8255682Smarkmmodlintlib:	$(MODLINTLIB_DEPS)
8355682Smarkm
8455682Smarkmclean.lint:	$(CLEAN_LINT_DEPS)
8590926Snectar
8690926Snectarinstall:	$(INSTALL_DEPS)
87178825Sdfr
8890926Snectar#
8955682Smarkm#	Include common targets.
9055682Smarkm#
9155682Smarkminclude $(UTSBASE)/intel/Makefile.targ
9255682Smarkm
9355682Smarkm