xref: /titanic_41/usr/src/uts/sun4v/ntwdt/Makefile (revision 927a453e165c072d45bd6aa2945b3db0fce17c56)
1*927a453eSwentaoy#
2*927a453eSwentaoy# CDDL HEADER START
3*927a453eSwentaoy#
4*927a453eSwentaoy# The contents of this file are subject to the terms of the
5*927a453eSwentaoy# Common Development and Distribution License (the "License").
6*927a453eSwentaoy# You may not use this file except in compliance with the License.
7*927a453eSwentaoy#
8*927a453eSwentaoy# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9*927a453eSwentaoy# or http://www.opensolaris.org/os/licensing.
10*927a453eSwentaoy# See the License for the specific language governing permissions
11*927a453eSwentaoy# and limitations under the License.
12*927a453eSwentaoy#
13*927a453eSwentaoy# When distributing Covered Code, include this CDDL HEADER in each
14*927a453eSwentaoy# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15*927a453eSwentaoy# If applicable, add the following below this CDDL HEADER, with the
16*927a453eSwentaoy# fields enclosed by brackets "[]" replaced with your own identifying
17*927a453eSwentaoy# information: Portions Copyright [yyyy] [name of copyright owner]
18*927a453eSwentaoy#
19*927a453eSwentaoy# CDDL HEADER END
20*927a453eSwentaoy#
21*927a453eSwentaoy#
22*927a453eSwentaoy# Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
23*927a453eSwentaoy# Use is subject to license terms.
24*927a453eSwentaoy#
25*927a453eSwentaoy# ident	"%Z%%M%	%I%	%E% SMI"
26*927a453eSwentaoy#
27*927a453eSwentaoy#	This makefile drives the production of the ntwdt driver module.
28*927a453eSwentaoy#
29*927a453eSwentaoy#	sun4v implementation architecture dependent
30*927a453eSwentaoy#
31*927a453eSwentaoy
32*927a453eSwentaoy#
33*927a453eSwentaoy#	Path to the base of the uts directory tree (usually /usr/src/uts).
34*927a453eSwentaoy#
35*927a453eSwentaoyUTSBASE	= ../..
36*927a453eSwentaoy
37*927a453eSwentaoy#
38*927a453eSwentaoy#	Define the module and object file sets.
39*927a453eSwentaoy#
40*927a453eSwentaoyMODULE		= ntwdt
41*927a453eSwentaoyOBJECTS		= $(NTWDT_OBJS:%=$(OBJS_DIR)/%)
42*927a453eSwentaoyLINTS		= $(NTWDT_OBJS:%.o=$(LINTS_DIR)/%.ln)
43*927a453eSwentaoyROOTMODULE	= $(ROOT_PSM_DRV_DIR)/$(MODULE)
44*927a453eSwentaoyCONF_SRCDIR     = $(UTSBASE)/sun4v/io
45*927a453eSwentaoy
46*927a453eSwentaoy#
47*927a453eSwentaoy#	Include common rules.
48*927a453eSwentaoy#
49*927a453eSwentaoyinclude $(UTSBASE)/sun4v/Makefile.sun4v
50*927a453eSwentaoy
51*927a453eSwentaoy#
52*927a453eSwentaoy#	Override defaults to build a unique, local modstubs.o.
53*927a453eSwentaoy#
54*927a453eSwentaoyMODSTUBS_DIR	= $(OBJS_DIR)
55*927a453eSwentaoy
56*927a453eSwentaoyCLEANFILES	+= $(MODSTUBS_O)
57*927a453eSwentaoy
58*927a453eSwentaoy#
59*927a453eSwentaoy#	Define targets
60*927a453eSwentaoy#
61*927a453eSwentaoyALL_TARGET	= $(BINARY) $(SRC_CONFILE)
62*927a453eSwentaoyLINT_TARGET	= $(MODULE).lint
63*927a453eSwentaoyINSTALL_TARGET	= $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
64*927a453eSwentaoy
65*927a453eSwentaoy#
66*927a453eSwentaoy# lint pass one enforcement
67*927a453eSwentaoy#
68*927a453eSwentaoyCFLAGS += -v
69*927a453eSwentaoy
70*927a453eSwentaoy#
71*927a453eSwentaoy#	Default build targets.
72*927a453eSwentaoy#
73*927a453eSwentaoy.KEEP_STATE:
74*927a453eSwentaoy
75*927a453eSwentaoydef:		$(DEF_DEPS)
76*927a453eSwentaoy
77*927a453eSwentaoyall:		$(ALL_DEPS)
78*927a453eSwentaoy
79*927a453eSwentaoyclean:		$(CLEAN_DEPS)
80*927a453eSwentaoy
81*927a453eSwentaoyclobber:	$(CLOBBER_DEPS)
82*927a453eSwentaoy
83*927a453eSwentaoylint:		$(LINT_DEPS)
84*927a453eSwentaoy
85*927a453eSwentaoymodlintlib:	$(MODLINTLIB_DEPS)
86*927a453eSwentaoy
87*927a453eSwentaoyclean.lint:	$(CLEAN_LINT_DEPS)
88*927a453eSwentaoy
89*927a453eSwentaoyinstall:	$(INSTALL_DEPS)
90*927a453eSwentaoy
91*927a453eSwentaoy#
92*927a453eSwentaoy#	Include common targets.
93*927a453eSwentaoy#
94*927a453eSwentaoyinclude $(UTSBASE)/$(PLATFORM)/Makefile.targ
95