xref: /onnv-gate/usr/src/uts/sun4u/px/Makefile (revision 10923:df470fd79c3c)
10Sstevel@tonic-gate#
20Sstevel@tonic-gate# CDDL HEADER START
30Sstevel@tonic-gate#
40Sstevel@tonic-gate# The contents of this file are subject to the terms of the
51540Skini# Common Development and Distribution License (the "License").
61540Skini# You may not use this file except in compliance with the License.
70Sstevel@tonic-gate#
80Sstevel@tonic-gate# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
90Sstevel@tonic-gate# or http://www.opensolaris.org/os/licensing.
100Sstevel@tonic-gate# See the License for the specific language governing permissions
110Sstevel@tonic-gate# and limitations under the License.
120Sstevel@tonic-gate#
130Sstevel@tonic-gate# When distributing Covered Code, include this CDDL HEADER in each
140Sstevel@tonic-gate# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
150Sstevel@tonic-gate# If applicable, add the following below this CDDL HEADER, with the
160Sstevel@tonic-gate# fields enclosed by brackets "[]" replaced with your own identifying
170Sstevel@tonic-gate# information: Portions Copyright [yyyy] [name of copyright owner]
180Sstevel@tonic-gate#
190Sstevel@tonic-gate# CDDL HEADER END
200Sstevel@tonic-gate#
210Sstevel@tonic-gate#
220Sstevel@tonic-gate# uts/sun4u/px/Makefile
230Sstevel@tonic-gate#
24*10923SEvan.Yan@Sun.COM# Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
250Sstevel@tonic-gate# Use is subject to license terms.
260Sstevel@tonic-gate#
270Sstevel@tonic-gate#	This makefile drives the production of the pci driver kernel module
280Sstevel@tonic-gate#
290Sstevel@tonic-gate#	sun4u implementation architecture dependent
300Sstevel@tonic-gate#
310Sstevel@tonic-gate
320Sstevel@tonic-gate#
330Sstevel@tonic-gate#	Path to the base of the uts directory tree (usually /usr/src/uts).
340Sstevel@tonic-gate#
350Sstevel@tonic-gateUTSBASE	= ../..
360Sstevel@tonic-gate
370Sstevel@tonic-gate#
380Sstevel@tonic-gate#	Define the module and object file sets.
390Sstevel@tonic-gate#
400Sstevel@tonic-gateMODULE		= px
410Sstevel@tonic-gateOBJECTS		= $(PX_OBJS:%=$(OBJS_DIR)/%)
420Sstevel@tonic-gateLINTS		= $(PX_OBJS:%.o=$(LINTS_DIR)/%.ln)
430Sstevel@tonic-gateROOTMODULE	= $(ROOT_PSM_DRV_DIR)/$(MODULE)
440Sstevel@tonic-gate
450Sstevel@tonic-gate#
460Sstevel@tonic-gate#	Include common rules.
470Sstevel@tonic-gate#
480Sstevel@tonic-gateinclude $(UTSBASE)/sun4u/Makefile.sun4u
490Sstevel@tonic-gate
500Sstevel@tonic-gate#
510Sstevel@tonic-gate#	Define targets
520Sstevel@tonic-gate#
530Sstevel@tonic-gateALL_TARGET	= $(BINARY)
540Sstevel@tonic-gateLINT_TARGET	= $(MODULE).lint
550Sstevel@tonic-gateINSTALL_TARGET	= $(BINARY) $(ROOTMODULE)
560Sstevel@tonic-gate
570Sstevel@tonic-gate#
580Sstevel@tonic-gate#	Include SUN4 and SUN4U specific headers files
590Sstevel@tonic-gate#
600Sstevel@tonic-gateINC_PATH	+= -I$(UTSBASE)/sun4/io/px
610Sstevel@tonic-gateINC_PATH	+= -I$(UTSBASE)/sun4u/io/px
620Sstevel@tonic-gate
630Sstevel@tonic-gate#
640Sstevel@tonic-gate# lint pass one enforcement
650Sstevel@tonic-gate#
660Sstevel@tonic-gateCFLAGS += $(CCVERBOSE)
670Sstevel@tonic-gate
680Sstevel@tonic-gate#
690Sstevel@tonic-gate# Turn on doubleword alignment for 64 bit registers
700Sstevel@tonic-gate#
710Sstevel@tonic-gateCFLAGS += -dalign
720Sstevel@tonic-gate
730Sstevel@tonic-gate#
743066Sjg# For now, disable these lint checks; maintainers should endeavor
753066Sjg# to investigate and remove these for maximum lint coverage.
763066Sjg# Please do not carry these forward to new Makefiles.
773066Sjg#
783066SjgLINTTAGS	+= -erroff=E_SUSPICIOUS_COMPARISON
793066SjgLINTTAGS	+= -erroff=E_BAD_PTR_CAST_ALIGN
803066SjgLINTTAGS	+= -erroff=E_SUPPRESSION_DIRECTIVE_UNUSED
813066SjgLINTTAGS	+= -erroff=E_STATIC_UNUSED
823066SjgLINTTAGS	+= -erroff=E_PTRDIFF_OVERFLOW
833066SjgLINTTAGS	+= -erroff=E_ASSIGN_NARROW_CONV
843066Sjg
853066Sjg#
860Sstevel@tonic-gate#	Dependency
870Sstevel@tonic-gate#
88*10923SEvan.Yan@Sun.COMLDFLAGS += -dy -Nmisc/pcie
890Sstevel@tonic-gate
900Sstevel@tonic-gate#
910Sstevel@tonic-gate#	Default build targets.
920Sstevel@tonic-gate#
930Sstevel@tonic-gate.KEEP_STATE:
940Sstevel@tonic-gate
950Sstevel@tonic-gatedef:		$(DEF_DEPS)
960Sstevel@tonic-gate
970Sstevel@tonic-gateall:		$(ALL_DEPS)
980Sstevel@tonic-gate
990Sstevel@tonic-gateclean:		$(CLEAN_DEPS)
1000Sstevel@tonic-gate
1010Sstevel@tonic-gateclobber:	$(CLOBBER_DEPS)
1020Sstevel@tonic-gate
1030Sstevel@tonic-gatelint:		$(LINT_DEPS)
1040Sstevel@tonic-gate
1050Sstevel@tonic-gatemodlintlib:	$(MODLINTLIB_DEPS)
1060Sstevel@tonic-gate
1070Sstevel@tonic-gateclean.lint:	$(CLEAN_LINT_DEPS)
1080Sstevel@tonic-gate
1090Sstevel@tonic-gateinstall:	$(INSTALL_DEPS)
1100Sstevel@tonic-gate
1110Sstevel@tonic-gate#
1120Sstevel@tonic-gate#	Include common targets.
1130Sstevel@tonic-gate#
1140Sstevel@tonic-gateinclude $(UTSBASE)/sun4u/Makefile.targ
115