xref: /titanic_52/usr/src/uts/sun4v/ds_snmp/Makefile (revision 0d63ce2b32a9e1cc8ed71d4d92536c44d66a530a)
1*0d63ce2bSvenki#
2*0d63ce2bSvenki# CDDL HEADER START
3*0d63ce2bSvenki#
4*0d63ce2bSvenki# The contents of this file are subject to the terms of the
5*0d63ce2bSvenki# Common Development and Distribution License (the "License").
6*0d63ce2bSvenki# You may not use this file except in compliance with the License.
7*0d63ce2bSvenki#
8*0d63ce2bSvenki# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9*0d63ce2bSvenki# or http://www.opensolaris.org/os/licensing.
10*0d63ce2bSvenki# See the License for the specific language governing permissions
11*0d63ce2bSvenki# and limitations under the License.
12*0d63ce2bSvenki#
13*0d63ce2bSvenki# When distributing Covered Code, include this CDDL HEADER in each
14*0d63ce2bSvenki# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15*0d63ce2bSvenki# If applicable, add the following below this CDDL HEADER, with the
16*0d63ce2bSvenki# fields enclosed by brackets "[]" replaced with your own identifying
17*0d63ce2bSvenki# information: Portions Copyright [yyyy] [name of copyright owner]
18*0d63ce2bSvenki#
19*0d63ce2bSvenki# CDDL HEADER END
20*0d63ce2bSvenki#
21*0d63ce2bSvenki#
22*0d63ce2bSvenki# Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
23*0d63ce2bSvenki# Use is subject to license terms.
24*0d63ce2bSvenki#
25*0d63ce2bSvenki# ident	"%Z%%M%	%I%	%E% SMI"
26*0d63ce2bSvenki#
27*0d63ce2bSvenki#	This makefile drives the production of the pseudo device
28*0d63ce2bSvenki#	to access the sun4v SNMP
29*0d63ce2bSvenki#
30*0d63ce2bSvenki#	sun4v implementation architecture dependent
31*0d63ce2bSvenki#
32*0d63ce2bSvenki
33*0d63ce2bSvenki#
34*0d63ce2bSvenki#	Path to the base of the uts directory tree (usually /usr/src/uts).
35*0d63ce2bSvenki#
36*0d63ce2bSvenkiUTSBASE	= ../..
37*0d63ce2bSvenki
38*0d63ce2bSvenki#
39*0d63ce2bSvenki#	Define the module and object file sets.
40*0d63ce2bSvenki#
41*0d63ce2bSvenkiMODULE		= ds_snmp
42*0d63ce2bSvenkiOBJECTS		= $(DS_SNMP_OBJS:%=$(OBJS_DIR)/%)
43*0d63ce2bSvenkiLINTS		= $(DS_SNMP_OBJS:%.o=$(LINTS_DIR)/%.ln)
44*0d63ce2bSvenkiROOTMODULE	= $(ROOT_PSM_DRV_DIR)/$(MODULE)
45*0d63ce2bSvenkiCONF_SRCDIR     = $(UTSBASE)/sun4v/io
46*0d63ce2bSvenki
47*0d63ce2bSvenki#
48*0d63ce2bSvenki#	Include common rules.
49*0d63ce2bSvenki#
50*0d63ce2bSvenkiinclude $(UTSBASE)/sun4v/Makefile.sun4v
51*0d63ce2bSvenki
52*0d63ce2bSvenki#
53*0d63ce2bSvenki#	Override defaults to build a unique, local modstubs.o.
54*0d63ce2bSvenki#
55*0d63ce2bSvenkiMODSTUBS_DIR	= $(OBJS_DIR)
56*0d63ce2bSvenki
57*0d63ce2bSvenkiCLEANFILES	+= $(MODSTUBS_O)
58*0d63ce2bSvenki
59*0d63ce2bSvenki#
60*0d63ce2bSvenki#	Define targets
61*0d63ce2bSvenki#
62*0d63ce2bSvenkiALL_TARGET	= $(BINARY) $(SRC_CONFILE)
63*0d63ce2bSvenkiLINT_TARGET	= $(MODULE).lint
64*0d63ce2bSvenkiINSTALL_TARGET	= $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
65*0d63ce2bSvenki
66*0d63ce2bSvenki#
67*0d63ce2bSvenki# lint pass one enforcement
68*0d63ce2bSvenki#
69*0d63ce2bSvenkiCFLAGS += -v
70*0d63ce2bSvenki
71*0d63ce2bSvenki#
72*0d63ce2bSvenki# Module Dependencies
73*0d63ce2bSvenkiLDFLAGS		+= -dy -Nmisc/ds
74*0d63ce2bSvenki
75*0d63ce2bSvenki#
76*0d63ce2bSvenki#	Default build targets.
77*0d63ce2bSvenki#
78*0d63ce2bSvenki.KEEP_STATE:
79*0d63ce2bSvenki
80*0d63ce2bSvenkidef:		$(DEF_DEPS)
81*0d63ce2bSvenki
82*0d63ce2bSvenkiall:		$(ALL_DEPS)
83*0d63ce2bSvenki
84*0d63ce2bSvenkiclean:		$(CLEAN_DEPS)
85*0d63ce2bSvenki
86*0d63ce2bSvenkiclobber:	$(CLOBBER_DEPS)
87*0d63ce2bSvenki
88*0d63ce2bSvenkilint:		$(LINT_DEPS)
89*0d63ce2bSvenki
90*0d63ce2bSvenkimodlintlib:	$(MODLINTLIB_DEPS)
91*0d63ce2bSvenki
92*0d63ce2bSvenkiclean.lint:	$(CLEAN_LINT_DEPS)
93*0d63ce2bSvenki
94*0d63ce2bSvenkiinstall:	$(INSTALL_DEPS)
95*0d63ce2bSvenki
96*0d63ce2bSvenki#
97*0d63ce2bSvenki#	Include common targets.
98*0d63ce2bSvenki#
99*0d63ce2bSvenkiinclude $(UTSBASE)/$(PLATFORM)/Makefile.targ
100