xref: /titanic_51/usr/src/uts/sun4v/iospc/Makefile (revision 4df55fde49134f9735f84011f23a767c75e393c7)
1*4df55fdeSJanie Lu#
2*4df55fdeSJanie Lu# CDDL HEADER START
3*4df55fdeSJanie Lu#
4*4df55fdeSJanie Lu# The contents of this file are subject to the terms of the
5*4df55fdeSJanie Lu# Common Development and Distribution License (the "License").
6*4df55fdeSJanie Lu# You may not use this file except in compliance with the License.
7*4df55fdeSJanie Lu#
8*4df55fdeSJanie Lu# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9*4df55fdeSJanie Lu# or http://www.opensolaris.org/os/licensing.
10*4df55fdeSJanie Lu# See the License for the specific language governing permissions
11*4df55fdeSJanie Lu# and limitations under the License.
12*4df55fdeSJanie Lu#
13*4df55fdeSJanie Lu# When distributing Covered Code, include this CDDL HEADER in each
14*4df55fdeSJanie Lu# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15*4df55fdeSJanie Lu# If applicable, add the following below this CDDL HEADER, with the
16*4df55fdeSJanie Lu# fields enclosed by brackets "[]" replaced with your own identifying
17*4df55fdeSJanie Lu# information: Portions Copyright [yyyy] [name of copyright owner]
18*4df55fdeSJanie Lu#
19*4df55fdeSJanie Lu# CDDL HEADER END
20*4df55fdeSJanie Lu#
21*4df55fdeSJanie Lu
22*4df55fdeSJanie Lu#
23*4df55fdeSJanie Lu# Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
24*4df55fdeSJanie Lu# Use is subject to license terms.
25*4df55fdeSJanie Lu#
26*4df55fdeSJanie Lu#
27*4df55fdeSJanie Lu# This makefile drives the production of the sun4v IO Performance Counter Driver
28*4df55fdeSJanie Lu#
29*4df55fdeSJanie Lu# sun4v implementation architecture dependent
30*4df55fdeSJanie Lu#
31*4df55fdeSJanie Lu
32*4df55fdeSJanie Lu#
33*4df55fdeSJanie Lu# Path to the base of the uts directory tree (usually /usr/src/uts).
34*4df55fdeSJanie Lu#
35*4df55fdeSJanie LuUTSBASE	= ../..
36*4df55fdeSJanie Lu
37*4df55fdeSJanie Lu#
38*4df55fdeSJanie Lu# Define the module and object file sets.
39*4df55fdeSJanie Lu#
40*4df55fdeSJanie LuMODULE		= iospc
41*4df55fdeSJanie LuOBJECTS		= $(IOSPC_OBJS:%=$(OBJS_DIR)/%)
42*4df55fdeSJanie LuLINTS		= $(IOSPC_OBJS:%.o=$(LINTS_DIR)/%.ln)
43*4df55fdeSJanie LuROOTMODULE	= $(ROOT_PSM_DRV_DIR)/$(MODULE)
44*4df55fdeSJanie LuCONF_SRCDIR	= $(UTSBASE)/sun4v/io/iospc
45*4df55fdeSJanie Lu
46*4df55fdeSJanie Lu#
47*4df55fdeSJanie Lu# Include common rules.
48*4df55fdeSJanie Lu#
49*4df55fdeSJanie Luinclude $(UTSBASE)/sun4v/Makefile.sun4v
50*4df55fdeSJanie Lu
51*4df55fdeSJanie Lu#
52*4df55fdeSJanie Lu# Define targets
53*4df55fdeSJanie Lu#
54*4df55fdeSJanie LuALL_TARGET	= $(BINARY) $(SRC_CONFFILE)
55*4df55fdeSJanie LuLINT_TARGET	= $(MODULE).lint
56*4df55fdeSJanie LuINSTALL_TARGET	= $(BINARY) $(ROOTMODULE)  $(ROOT_CONFFILE)
57*4df55fdeSJanie Lu
58*4df55fdeSJanie Lu#
59*4df55fdeSJanie Lu# lint pass one enforcement
60*4df55fdeSJanie Lu#
61*4df55fdeSJanie LuCFLAGS		+= $(CCVERBOSE)
62*4df55fdeSJanie Lu
63*4df55fdeSJanie LuCFLAGS += -dalign -DMODULE_NAME=\"$(MODULE)\"
64*4df55fdeSJanie Lu
65*4df55fdeSJanie LuLINTFLAGS += -DMODULE_NAME=\"$(MODULE)\"
66*4df55fdeSJanie Lu
67*4df55fdeSJanie Lu#
68*4df55fdeSJanie Lu# Module Dependencies
69*4df55fdeSJanie Lu#
70*4df55fdeSJanie LuLDFLAGS		+= -dy -Nmisc/ds
71*4df55fdeSJanie Lu
72*4df55fdeSJanie LuINC_PATH        += -I$(UTSBASE)/sun4v/io/iospc
73*4df55fdeSJanie Lu
74*4df55fdeSJanie Lu
75*4df55fdeSJanie Lu#
76*4df55fdeSJanie Lu# Default build targets.
77*4df55fdeSJanie Lu#
78*4df55fdeSJanie Lu.KEEP_STATE:
79*4df55fdeSJanie Lu
80*4df55fdeSJanie Ludef:		$(DEF_DEPS)
81*4df55fdeSJanie Lu
82*4df55fdeSJanie Luall:		$(ALL_DEPS)
83*4df55fdeSJanie Lu
84*4df55fdeSJanie Luclean:		$(CLEAN_DEPS)
85*4df55fdeSJanie Lu
86*4df55fdeSJanie Luclobber:	$(CLOBBER_DEPS)
87*4df55fdeSJanie Lu
88*4df55fdeSJanie Lulint:		$(LINT_DEPS)
89*4df55fdeSJanie Lu
90*4df55fdeSJanie Lumodlintlib:	$(MODLINTLIB_DEPS)
91*4df55fdeSJanie Lu
92*4df55fdeSJanie Luclean.lint:	$(CLEAN_LINT_DEPS)
93*4df55fdeSJanie Lu
94*4df55fdeSJanie Luinstall:	$(INSTALL_DEPS)
95*4df55fdeSJanie Lu
96*4df55fdeSJanie Lu#
97*4df55fdeSJanie Lu# Include common targets.
98*4df55fdeSJanie Lu#
99*4df55fdeSJanie Luinclude $(UTSBASE)/$(PLATFORM)/Makefile.targ
100