xref: /onnv-gate/usr/src/uts/sun4u/sunfire/Makefile.sunfire.shared (revision 3066:2a2af34f0642)
11341Sstevel#
21341Sstevel# CDDL HEADER START
31341Sstevel#
41341Sstevel# The contents of this file are subject to the terms of the
51341Sstevel# Common Development and Distribution License (the "License").
61341Sstevel# You may not use this file except in compliance with the License.
71341Sstevel#
81341Sstevel# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
91341Sstevel# or http://www.opensolaris.org/os/licensing.
101341Sstevel# See the License for the specific language governing permissions
111341Sstevel# and limitations under the License.
121341Sstevel#
131341Sstevel# When distributing Covered Code, include this CDDL HEADER in each
141341Sstevel# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
151341Sstevel# If applicable, add the following below this CDDL HEADER, with the
161341Sstevel# fields enclosed by brackets "[]" replaced with your own identifying
171341Sstevel# information: Portions Copyright [yyyy] [name of copyright owner]
181341Sstevel#
191341Sstevel# CDDL HEADER END
201341Sstevel#
211341Sstevel
221341Sstevel#
231341Sstevel# Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
241341Sstevel# Use is subject to license terms.
251341Sstevel#
261341Sstevel#ident	"%Z%%M%	%I%	%E% SMI"
271341Sstevel#
281341Sstevel#	Global definitions for sun4u implementation specific modules.
291341Sstevel#
301341Sstevel
311341Sstevel#
321341Sstevel#	Define the name of this implementation.
331341Sstevel#
341341Sstevel
351341Sstevel#
361341Sstevel#	Define directories.
371341Sstevel#
381341SstevelROOT_SUNFIRE_DIR	= $(ROOT_PLAT_DIR)/SUNW,Ultra-Enterprise
391341SstevelROOT_SUNFIRE_MOD_DIR	= $(ROOT_SUNFIRE_DIR)/kernel
401341Sstevel
411341SstevelROOT_SUNFIRE_DRV_DIR_32	= $(ROOT_SUNFIRE_MOD_DIR)/drv
421341SstevelROOT_SUNFIRE_DRV_DIR_64	= $(ROOT_SUNFIRE_MOD_DIR)/drv/$(SUBDIR64)
431341SstevelROOT_SUNFIRE_DRV_DIR	= $(ROOT_SUNFIRE_DRV_DIR_$(CLASS))
441341SstevelROOT_PLAT_DRV_DIRS	= $(ROOT_SUNFIRE_DRV_DIR)
451341Sstevel
461341SstevelROOT_SUNFIRE_MISC_DIR_32	= $(ROOT_SUNFIRE_MOD_DIR)/misc
471341SstevelROOT_SUNFIRE_MISC_DIR_64	= $(ROOT_SUNFIRE_MOD_DIR)/misc/$(SUBDIR64)
481341SstevelROOT_SUNFIRE_MISC_DIR	= $(ROOT_SUNFIRE_MISC_DIR_$(CLASS))
491341Sstevel
501341SstevelUSR_SUNFIRE_DIR		= $(USR_PLAT_DIR)/SUNW,Ultra-Enterprise
511341SstevelUSR_SUNFIRE_INC_DIR	= $(USR_SUNFIRE_DIR)/include
521341SstevelUSR_SUNFIRE_ISYS_DIR	= $(USR_SUNFIRE_INC_DIR)/sys
531341SstevelUSR_SUNFIRE_SBIN_DIR	= $(USR_SUNFIRE_DIR)/sbin
541341SstevelUSR_SUNFIRE_LIB_DIR	= $(USR_SUNFIRE_DIR)/lib
551341Sstevel
561341SstevelSUNFIRE_LINT_LIB_DIR= $(UTSBASE)/$(PLATFORM)/sunfire/lint-libs/$(OBJS_DIR)
571341Sstevel
581341Sstevel#
591341Sstevel# Define objects.
601341Sstevel#
611341SstevelSUNFIRE_OBJS	= sunfire.o
621341Sstevel
631341Sstevelinclude $(UTSTREE)/sun4u/sunfire/Makefile.files
641341Sstevel
651341Sstevel#
661341Sstevel#	Include common rules.
671341Sstevel#
681341Sstevelinclude $(UTSTREE)/sun4u/Makefile.sun4u
691341Sstevel
701341Sstevel#
711341Sstevel#	Define modules (must come after Makefile.sun4u for CLOSED_BUILD).
721341Sstevel#
732305SstevelSUNFIRE_KMODS			= ac central environ fhc simmstat sysctrl sram
741341Sstevel$(CLOSED_BUILD)CLOSED_SUNFIRE_KMODS	= platmod
751341Sstevel
76*3066Sjg#
77*3066Sjg# For now, disable these lint checks; maintainers should endeavor
78*3066Sjg# to investigate and remove these for maximum lint coverage.
79*3066Sjg# Please do not carry these forward to new Makefiles.
80*3066Sjg#
81*3066SjgLINTTAGS	+= -erroff=E_SUSPICIOUS_COMPARISON
82*3066SjgLINTTAGS	+= -erroff=E_BAD_PTR_CAST_ALIGN
83*3066SjgLINTTAGS	+= -erroff=E_SUPPRESSION_DIRECTIVE_UNUSED
84*3066SjgLINTTAGS	+= -erroff=E_STATIC_UNUSED
85*3066SjgLINTTAGS	+= -erroff=E_PTRDIFF_OVERFLOW
86*3066SjgLINTTAGS	+= -erroff=E_ASSIGN_NARROW_CONV
87