Makefile revision bb25c06cca41ca78e5fb87fbb8e81d55beb18c95
d6fa26d0adaec6c910115be34fe7a5a5f402c14fMark Andrews#
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater# CDDL HEADER START
5347c0fcb04eaea19d9f39795646239f487c6207Tinderbox User#
bef75d63d74f58abc0f834ed271526672777ba29Automatic Updater# The contents of this file are subject to the terms of the
5347c0fcb04eaea19d9f39795646239f487c6207Tinderbox User# Common Development and Distribution License (the "License").
5347c0fcb04eaea19d9f39795646239f487c6207Tinderbox User# You may not use this file except in compliance with the License.
5347c0fcb04eaea19d9f39795646239f487c6207Tinderbox User#
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
d6fa26d0adaec6c910115be34fe7a5a5f402c14fMark Andrews# or http://www.opensolaris.org/os/licensing.
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater# See the License for the specific language governing permissions
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater# and limitations under the License.
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater#
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User# When distributing Covered Code, include this CDDL HEADER in each
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
cd32f419a8a5432fbb139f56ee73cbf68b9350ccTinderbox User# If applicable, add the following below this CDDL HEADER, with the
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater# fields enclosed by brackets "[]" replaced with your own identifying
10b865e9187fc77cae02f106ddcc9e03eecdfe06Tinderbox User# information: Portions Copyright [yyyy] [name of copyright owner]
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater#
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater# CDDL HEADER END
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater#
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater#
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater# Use is subject to license terms.
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater#
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater#ident "%Z%%M% %I% %E% SMI"
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater
10b865e9187fc77cae02f106ddcc9e03eecdfe06Tinderbox UserUTSBASE = ../..
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic UpdaterMODULE = dtrace
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic UpdaterOBJECTS = $(DTRACE_OBJS:%=$(OBJS_DIR)/%)
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic UpdaterLINTS = $(DTRACE_OBJS:%.o=$(LINTS_DIR)/%.ln)
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic UpdaterROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE)
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox UserCONF_SRCDIR = $(UTSBASE)/common/dtrace
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox Userinclude $(UTSBASE)/sparc/Makefile.sparc
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox UserALL_TARGET = $(BINARY) $(SRC_CONFILE)
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic UpdaterLINT_TARGET = $(MODULE).lint
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox UserINSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox UserDTRACE_INC_32 = -I$(UTSBASE)/sparc/v7
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox UserDTRACE_INC_64 = -I$(UTSBASE)/sparc/v9
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User
7e71f05d8643aca84914437c900cb716444507e4Tinderbox UserCFLAGS += $(CCVERBOSE)
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox UserCPPFLAGS += $(DTRACE_INC_$(CLASS))
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic UpdaterDTRACE_XAS_32 = -xarch=v8plus
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic UpdaterDTRACE_XAS_64 = -xarch=v9
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox UserAS_CPPFLAGS += $(DTRACE_INC_64)
7e71f05d8643aca84914437c900cb716444507e4Tinderbox UserASFLAGS += $(DTRACE_XAS_$(CLASS))
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater#
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater# For now, disable these lint checks; maintainers should endeavor
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User# to investigate and remove these for maximum lint coverage.
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater# Please do not carry these forward to new Makefiles.
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater#
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic UpdaterLINTTAGS += -erroff=E_SUSPICIOUS_COMPARISON
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic UpdaterLINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic UpdaterLINTTAGS += -erroff=E_SUPPRESSION_DIRECTIVE_UNUSED
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic UpdaterLINTTAGS += -erroff=E_STATIC_UNUSED
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic UpdaterLINTTAGS += -erroff=E_PTRDIFF_OVERFLOW
cd32f419a8a5432fbb139f56ee73cbf68b9350ccTinderbox UserLINTTAGS += -erroff=E_ASSIGN_NARROW_CONV
10b865e9187fc77cae02f106ddcc9e03eecdfe06Tinderbox User
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater.KEEP_STATE:
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updaterdef: $(DEF_DEPS)
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updaterall: $(ALL_DEPS)
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater
10b865e9187fc77cae02f106ddcc9e03eecdfe06Tinderbox Userclean: $(CLEAN_DEPS)
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updaterclobber: $(CLOBBER_DEPS)
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updaterlint: $(LINT_DEPS)
c2258eedf2d9d0207b45b90014f8fde5413b41a3Tinderbox User
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updatermodlintlib: $(MODLINTLIB_DEPS)
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater
clean.lint: $(CLEAN_LINT_DEPS)
install: $(INSTALL_DEPS)
include $(UTSBASE)/sparc/Makefile.targ