xref: /titanic_41/usr/src/uts/sparc/kb8042/Makefile (revision fd9cb95cbb2f626355a60efb9d02c5f0a33c10e6)
1*fd9cb95cSsethg#
2*fd9cb95cSsethg# CDDL HEADER START
3*fd9cb95cSsethg#
4*fd9cb95cSsethg# The contents of this file are subject to the terms of the
5*fd9cb95cSsethg# Common Development and Distribution License, Version 1.0 only
6*fd9cb95cSsethg# (the "License").  You may not use this file except in compliance
7*fd9cb95cSsethg# with the License.
8*fd9cb95cSsethg#
9*fd9cb95cSsethg# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10*fd9cb95cSsethg# or http://www.opensolaris.org/os/licensing.
11*fd9cb95cSsethg# See the License for the specific language governing permissions
12*fd9cb95cSsethg# and limitations under the License.
13*fd9cb95cSsethg#
14*fd9cb95cSsethg# When distributing Covered Code, include this CDDL HEADER in each
15*fd9cb95cSsethg# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16*fd9cb95cSsethg# If applicable, add the following below this CDDL HEADER, with the
17*fd9cb95cSsethg# fields enclosed by brackets "[]" replaced with your own identifying
18*fd9cb95cSsethg# information: Portions Copyright [yyyy] [name of copyright owner]
19*fd9cb95cSsethg#
20*fd9cb95cSsethg# CDDL HEADER END
21*fd9cb95cSsethg#
22*fd9cb95cSsethg#
23*fd9cb95cSsethg# uts/sparc/kb8042/Makefile
24*fd9cb95cSsethg#
25*fd9cb95cSsethg# Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
26*fd9cb95cSsethg# Use is subject to license terms.
27*fd9cb95cSsethg#
28*fd9cb95cSsethg# ident	"%Z%%M%	%I%	%E% SMI"
29*fd9cb95cSsethg#
30*fd9cb95cSsethg#	This makefile drives the production of the kb8042
31*fd9cb95cSsethg#	kernel module.
32*fd9cb95cSsethg#
33*fd9cb95cSsethg#
34*fd9cb95cSsethg
35*fd9cb95cSsethg#
36*fd9cb95cSsethg#	Path to the base of the uts directory tree (usually /usr/src/uts).
37*fd9cb95cSsethg#
38*fd9cb95cSsethgUTSBASE	= ../..
39*fd9cb95cSsethg
40*fd9cb95cSsethg#
41*fd9cb95cSsethg#	Define the module and object file sets.
42*fd9cb95cSsethg#
43*fd9cb95cSsethgMODULE		= kb8042
44*fd9cb95cSsethgOBJECTS		= $(KB8042_OBJS:%=$(OBJS_DIR)/%)
45*fd9cb95cSsethgLINTS		= $(KB8042_OBJS:%.o=$(LINTS_DIR)/%.ln)
46*fd9cb95cSsethgROOTMODULE	= $(ROOT_DRV_DIR)/$(MODULE)
47*fd9cb95cSsethg
48*fd9cb95cSsethg#
49*fd9cb95cSsethg#	Include common rules.
50*fd9cb95cSsethg#
51*fd9cb95cSsethginclude $(UTSBASE)/sparc/Makefile.sparc
52*fd9cb95cSsethg
53*fd9cb95cSsethgLDFLAGS		+= -dy -Nmisc/kbtrans
54*fd9cb95cSsethg
55*fd9cb95cSsethg#
56*fd9cb95cSsethg#	Define targets
57*fd9cb95cSsethg#
58*fd9cb95cSsethgALL_TARGET	= $(BINARY) # $(SRC_CONFILE)
59*fd9cb95cSsethgLINT_TARGET	= $(MODULE).lint
60*fd9cb95cSsethgINSTALL_TARGET	= $(BINARY) $(ROOTMODULE)
61*fd9cb95cSsethg
62*fd9cb95cSsethg#
63*fd9cb95cSsethg#	Default build targets.
64*fd9cb95cSsethg#
65*fd9cb95cSsethg.KEEP_STATE:
66*fd9cb95cSsethg
67*fd9cb95cSsethgdef:		$(DEF_DEPS)
68*fd9cb95cSsethg
69*fd9cb95cSsethgall:		$(ALL_DEPS)
70*fd9cb95cSsethg
71*fd9cb95cSsethgclean:		$(CLEAN_DEPS)
72*fd9cb95cSsethg
73*fd9cb95cSsethgclobber:	$(CLOBBER_DEPS)
74*fd9cb95cSsethg
75*fd9cb95cSsethglint:		$(LINT_DEPS)
76*fd9cb95cSsethg
77*fd9cb95cSsethgmodlintlib:	$(MODLINTLIB_DEPS)
78*fd9cb95cSsethg
79*fd9cb95cSsethgclean.lint:	$(CLEAN_LINT_DEPS)
80*fd9cb95cSsethg
81*fd9cb95cSsethginstall:	$(INSTALL_DEPS)
82*fd9cb95cSsethg
83*fd9cb95cSsethg#
84*fd9cb95cSsethg#	Include common targets.
85*fd9cb95cSsethg#
86*fd9cb95cSsethginclude $(UTSBASE)/sparc/Makefile.targ
87