xref: /titanic_52/usr/src/uts/sun4v/niumx/Makefile (revision 4496171313bed39e96f21bc2f9faf2868e267ae3)
1*44961713Sgirish#
2*44961713Sgirish# CDDL HEADER START
3*44961713Sgirish#
4*44961713Sgirish# The contents of this file are subject to the terms of the
5*44961713Sgirish# Common Development and Distribution License (the "License").
6*44961713Sgirish# You may not use this file except in compliance with the License.
7*44961713Sgirish#
8*44961713Sgirish# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9*44961713Sgirish# or http://www.opensolaris.org/os/licensing.
10*44961713Sgirish# See the License for the specific language governing permissions
11*44961713Sgirish# and limitations under the License.
12*44961713Sgirish#
13*44961713Sgirish# When distributing Covered Code, include this CDDL HEADER in each
14*44961713Sgirish# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15*44961713Sgirish# If applicable, add the following below this CDDL HEADER, with the
16*44961713Sgirish# fields enclosed by brackets "[]" replaced with your own identifying
17*44961713Sgirish# information: Portions Copyright [yyyy] [name of copyright owner]
18*44961713Sgirish#
19*44961713Sgirish# CDDL HEADER END
20*44961713Sgirish#
21*44961713Sgirish#
22*44961713Sgirish# uts/sun4v/niumx/Makefile
23*44961713Sgirish# Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
24*44961713Sgirish# Use is subject to license terms.
25*44961713Sgirish#
26*44961713Sgirish#ident	"%Z%%M%	%I%	%E% SMI"
27*44961713Sgirish#
28*44961713Sgirish
29*44961713Sgirish#	This makefile drives the production of the niumx driver kernel module
30*44961713Sgirish#
31*44961713Sgirish#	sun4v implementation architecture dependent
32*44961713Sgirish#
33*44961713Sgirish
34*44961713Sgirish#
35*44961713Sgirish#	Path to the base of the uts directory tree (usually /usr/src/uts).
36*44961713Sgirish#
37*44961713SgirishUTSBASE	= ../..
38*44961713Sgirish
39*44961713Sgirish#
40*44961713Sgirish#	Define the module and object file sets.
41*44961713Sgirish#
42*44961713SgirishMODULE		= niumx
43*44961713SgirishOBJECTS		= $(NIUMX_OBJS:%=$(OBJS_DIR)/%)
44*44961713SgirishLINTS		= $(NIUMX_OBJS:%.o=$(LINTS_DIR)/%.ln)
45*44961713SgirishROOTMODULE	= $(ROOT_PSM_DRV_DIR)/$(MODULE)
46*44961713Sgirish
47*44961713Sgirish#
48*44961713Sgirish#	Include common rules.
49*44961713Sgirish#
50*44961713Sgirishinclude $(UTSBASE)/sun4v/Makefile.sun4v
51*44961713Sgirish
52*44961713Sgirish#
53*44961713Sgirish#	Define targets
54*44961713Sgirish#
55*44961713SgirishALL_TARGET	= $(BINARY)
56*44961713SgirishLINT_TARGET	= $(MODULE).lint
57*44961713SgirishINSTALL_TARGET	= $(BINARY) $(ROOTMODULE)
58*44961713Sgirish
59*44961713Sgirish#
60*44961713Sgirish#	Include SUN4 and SUN4U specific headers files
61*44961713Sgirish#
62*44961713SgirishINC_PATH	+= -I$(UTSBASE)/sun4/io/niumx
63*44961713SgirishINC_PATH	+= -I$(UTSBASE)/sun4v/io/niumx
64*44961713Sgirish
65*44961713Sgirish#
66*44961713Sgirish# lint pass one enforcement
67*44961713Sgirish#
68*44961713SgirishCFLAGS += $(CCVERBOSE)
69*44961713Sgirish
70*44961713Sgirish#
71*44961713Sgirish# Turn on doubleword alignment for 64 bit registers
72*44961713Sgirish#
73*44961713SgirishCFLAGS += -dalign
74*44961713Sgirish
75*44961713Sgirish#
76*44961713Sgirish#	Dependency
77*44961713Sgirish#
78*44961713SgirishLDFLAGS += -dy -Nmisc/busra -Nmisc/pcie
79*44961713Sgirish
80*44961713Sgirish#
81*44961713Sgirish#	Default build targets.
82*44961713Sgirish#
83*44961713Sgirish.KEEP_STATE:
84*44961713Sgirish
85*44961713Sgirishdef:		$(DEF_DEPS)
86*44961713Sgirish
87*44961713Sgirishall:		$(ALL_DEPS)
88*44961713Sgirish
89*44961713Sgirishclean:		$(CLEAN_DEPS)
90*44961713Sgirish
91*44961713Sgirishclobber:	$(CLOBBER_DEPS)
92*44961713Sgirish
93*44961713Sgirishlint:		$(LINT_DEPS)
94*44961713Sgirish
95*44961713Sgirishmodlintlib:	$(MODLINTLIB_DEPS)
96*44961713Sgirish
97*44961713Sgirishclean.lint:	$(CLEAN_LINT_DEPS)
98*44961713Sgirish
99*44961713Sgirishinstall:	$(INSTALL_DEPS)
100*44961713Sgirish
101*44961713Sgirish#
102*44961713Sgirish#	Include common targets.
103*44961713Sgirish#
104*44961713Sgirishinclude $(UTSBASE)/sun4v/Makefile.targ
105