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 53066Sjg# Common Development and Distribution License (the "License"). 63066Sjg# 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# 22*6094Sakolb# Copyright 2008 Sun Microsystems, Inc. All rights reserved. 230Sstevel@tonic-gate# Use is subject to license terms. 240Sstevel@tonic-gate# 250Sstevel@tonic-gate#ident "%Z%%M% %I% %E% SMI" 260Sstevel@tonic-gate 270Sstevel@tonic-gateUTSBASE = ../.. 280Sstevel@tonic-gate 293677SsudheerPLATFORM = sun4u 300Sstevel@tonic-gateMODULE = dtrace 310Sstevel@tonic-gateOBJECTS = $(DTRACE_OBJS:%=$(OBJS_DIR)/%) 320Sstevel@tonic-gateLINTS = $(DTRACE_OBJS:%.o=$(LINTS_DIR)/%.ln) 330Sstevel@tonic-gateROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE) 340Sstevel@tonic-gateCONF_SRCDIR = $(UTSBASE)/common/dtrace 350Sstevel@tonic-gate 360Sstevel@tonic-gateinclude $(UTSBASE)/sparc/Makefile.sparc 370Sstevel@tonic-gate 383677Ssudheer# 393677Ssudheer# Redefine DSF_DIR 403677Ssudheer# 413677SsudheerDSF_DIR = $(UTSBASE)/$(PLATFORM)/genassym 423677Ssudheer 430Sstevel@tonic-gateALL_TARGET = $(BINARY) $(SRC_CONFILE) 440Sstevel@tonic-gateLINT_TARGET = $(MODULE).lint 450Sstevel@tonic-gateINSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE) 460Sstevel@tonic-gate 470Sstevel@tonic-gateDTRACE_INC_32 = -I$(UTSBASE)/sparc/v7 480Sstevel@tonic-gateDTRACE_INC_64 = -I$(UTSBASE)/sparc/v9 490Sstevel@tonic-gate 500Sstevel@tonic-gateCFLAGS += $(CCVERBOSE) 510Sstevel@tonic-gateCPPFLAGS += $(DTRACE_INC_$(CLASS)) 520Sstevel@tonic-gate 530Sstevel@tonic-gateDTRACE_XAS_32 = -xarch=v8plus 540Sstevel@tonic-gateDTRACE_XAS_64 = -xarch=v9 550Sstevel@tonic-gate 560Sstevel@tonic-gateAS_CPPFLAGS += $(DTRACE_INC_64) 570Sstevel@tonic-gateASFLAGS += $(DTRACE_XAS_$(CLASS)) 583677SsudheerAS_INC_PATH += -I$(DSF_DIR)/$(OBJS_DIR) 593677Ssudheer 603677SsudheerASSYM_H = $(DSF_DIR)/$(OBJS_DIR)/assym.h 610Sstevel@tonic-gate 623066Sjg# 633066Sjg# For now, disable these lint checks; maintainers should endeavor 643066Sjg# to investigate and remove these for maximum lint coverage. 653066Sjg# Please do not carry these forward to new Makefiles. 663066Sjg# 673066SjgLINTTAGS += -erroff=E_SUSPICIOUS_COMPARISON 683066SjgLINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN 693066SjgLINTTAGS += -erroff=E_SUPPRESSION_DIRECTIVE_UNUSED 703066SjgLINTTAGS += -erroff=E_STATIC_UNUSED 713066SjgLINTTAGS += -erroff=E_PTRDIFF_OVERFLOW 723066SjgLINTTAGS += -erroff=E_ASSIGN_NARROW_CONV 733066Sjg 740Sstevel@tonic-gate.KEEP_STATE: 750Sstevel@tonic-gate 760Sstevel@tonic-gatedef: $(DEF_DEPS) 770Sstevel@tonic-gate 780Sstevel@tonic-gateall: $(ALL_DEPS) 790Sstevel@tonic-gate 800Sstevel@tonic-gateclean: $(CLEAN_DEPS) 810Sstevel@tonic-gate 820Sstevel@tonic-gateclobber: $(CLOBBER_DEPS) 830Sstevel@tonic-gate 840Sstevel@tonic-gatelint: $(LINT_DEPS) 850Sstevel@tonic-gate 860Sstevel@tonic-gatemodlintlib: $(MODLINTLIB_DEPS) 870Sstevel@tonic-gate 880Sstevel@tonic-gateclean.lint: $(CLEAN_LINT_DEPS) 890Sstevel@tonic-gate 900Sstevel@tonic-gateinstall: $(INSTALL_DEPS) 910Sstevel@tonic-gate 923677Ssudheer$(BINARY): $(ASSYM_H) 933677Ssudheer 940Sstevel@tonic-gateinclude $(UTSBASE)/sparc/Makefile.targ 95