Makefile revision bb25c06cca41ca78e5fb87fbb8e81d55beb18c95
65fea56f17cd614bc8908264df980a62e1931468vboxsync#
65fea56f17cd614bc8908264df980a62e1931468vboxsync# CDDL HEADER START
65fea56f17cd614bc8908264df980a62e1931468vboxsync#
65fea56f17cd614bc8908264df980a62e1931468vboxsync# The contents of this file are subject to the terms of the
65fea56f17cd614bc8908264df980a62e1931468vboxsync# Common Development and Distribution License (the "License").
65fea56f17cd614bc8908264df980a62e1931468vboxsync# You may not use this file except in compliance with the License.
65fea56f17cd614bc8908264df980a62e1931468vboxsync#
65fea56f17cd614bc8908264df980a62e1931468vboxsync# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
65fea56f17cd614bc8908264df980a62e1931468vboxsync# or http://www.opensolaris.org/os/licensing.
65fea56f17cd614bc8908264df980a62e1931468vboxsync# See the License for the specific language governing permissions
65fea56f17cd614bc8908264df980a62e1931468vboxsync# and limitations under the License.
65fea56f17cd614bc8908264df980a62e1931468vboxsync#
65fea56f17cd614bc8908264df980a62e1931468vboxsync# When distributing Covered Code, include this CDDL HEADER in each
65fea56f17cd614bc8908264df980a62e1931468vboxsync# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
65fea56f17cd614bc8908264df980a62e1931468vboxsync# If applicable, add the following below this CDDL HEADER, with the
65fea56f17cd614bc8908264df980a62e1931468vboxsync# fields enclosed by brackets "[]" replaced with your own identifying
65fea56f17cd614bc8908264df980a62e1931468vboxsync# information: Portions Copyright [yyyy] [name of copyright owner]
65fea56f17cd614bc8908264df980a62e1931468vboxsync#
65fea56f17cd614bc8908264df980a62e1931468vboxsync# CDDL HEADER END
65fea56f17cd614bc8908264df980a62e1931468vboxsync#
65fea56f17cd614bc8908264df980a62e1931468vboxsync#
65fea56f17cd614bc8908264df980a62e1931468vboxsync# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
65fea56f17cd614bc8908264df980a62e1931468vboxsync# Use is subject to license terms.
65fea56f17cd614bc8908264df980a62e1931468vboxsync#
65fea56f17cd614bc8908264df980a62e1931468vboxsync# ident "%Z%%M% %I% %E% SMI"
65fea56f17cd614bc8908264df980a62e1931468vboxsync#
65fea56f17cd614bc8908264df980a62e1931468vboxsync# This makefile drives the production of the sad driver
65fea56f17cd614bc8908264df980a62e1931468vboxsync#
65fea56f17cd614bc8908264df980a62e1931468vboxsync# intel architecture dependent
65fea56f17cd614bc8908264df980a62e1931468vboxsync#
65fea56f17cd614bc8908264df980a62e1931468vboxsync
65fea56f17cd614bc8908264df980a62e1931468vboxsync#
65fea56f17cd614bc8908264df980a62e1931468vboxsync# Path to the base of the uts directory tree (usually /usr/src/uts).
65fea56f17cd614bc8908264df980a62e1931468vboxsync#
65fea56f17cd614bc8908264df980a62e1931468vboxsyncUTSBASE = ../..
65fea56f17cd614bc8908264df980a62e1931468vboxsync
65fea56f17cd614bc8908264df980a62e1931468vboxsync#
65fea56f17cd614bc8908264df980a62e1931468vboxsync# Define the module and object file sets.
65fea56f17cd614bc8908264df980a62e1931468vboxsync#
65fea56f17cd614bc8908264df980a62e1931468vboxsyncMODULE = sad
65fea56f17cd614bc8908264df980a62e1931468vboxsyncOBJECTS = $(SAD_OBJS:%=$(OBJS_DIR)/%)
65fea56f17cd614bc8908264df980a62e1931468vboxsyncLINTS = $(SAD_OBJS:%.o=$(LINTS_DIR)/%.ln)
65fea56f17cd614bc8908264df980a62e1931468vboxsyncROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE)
65fea56f17cd614bc8908264df980a62e1931468vboxsyncCONF_SRCDIR = $(UTSBASE)/common/io
65fea56f17cd614bc8908264df980a62e1931468vboxsync
65fea56f17cd614bc8908264df980a62e1931468vboxsync#
65fea56f17cd614bc8908264df980a62e1931468vboxsync# Include common rules.
65fea56f17cd614bc8908264df980a62e1931468vboxsync#
65fea56f17cd614bc8908264df980a62e1931468vboxsyncinclude $(UTSBASE)/intel/Makefile.intel
65fea56f17cd614bc8908264df980a62e1931468vboxsync
65fea56f17cd614bc8908264df980a62e1931468vboxsync#
65fea56f17cd614bc8908264df980a62e1931468vboxsync# Define targets
65fea56f17cd614bc8908264df980a62e1931468vboxsync#
65fea56f17cd614bc8908264df980a62e1931468vboxsyncALL_TARGET = $(BINARY) $(SRC_CONFILE)
65fea56f17cd614bc8908264df980a62e1931468vboxsyncLINT_TARGET = $(MODULE).lint
65fea56f17cd614bc8908264df980a62e1931468vboxsyncINSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
65fea56f17cd614bc8908264df980a62e1931468vboxsync
65fea56f17cd614bc8908264df980a62e1931468vboxsync#
65fea56f17cd614bc8908264df980a62e1931468vboxsync# Override defaults to build a unique, local modstubs.o.
65fea56f17cd614bc8908264df980a62e1931468vboxsync#
65fea56f17cd614bc8908264df980a62e1931468vboxsyncMODSTUBS_DIR = $(OBJS_DIR)
65fea56f17cd614bc8908264df980a62e1931468vboxsync$(MODSTUBS_O) := AS_CPPFLAGS += -DSAD_MODULE
65fea56f17cd614bc8908264df980a62e1931468vboxsyncCLEANFILES += $(MODSTUBS_O)
65fea56f17cd614bc8908264df980a62e1931468vboxsync
65fea56f17cd614bc8908264df980a62e1931468vboxsync#
65fea56f17cd614bc8908264df980a62e1931468vboxsync# For now, disable these lint checks; maintainers should endeavor
65fea56f17cd614bc8908264df980a62e1931468vboxsync# to investigate and remove these for maximum lint coverage.
65fea56f17cd614bc8908264df980a62e1931468vboxsync# Please do not carry these forward to new Makefiles.
65fea56f17cd614bc8908264df980a62e1931468vboxsync#
65fea56f17cd614bc8908264df980a62e1931468vboxsyncLINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN
65fea56f17cd614bc8908264df980a62e1931468vboxsyncLINTTAGS += -erroff=E_PTRDIFF_OVERFLOW
65fea56f17cd614bc8908264df980a62e1931468vboxsync
65fea56f17cd614bc8908264df980a62e1931468vboxsync#
65fea56f17cd614bc8908264df980a62e1931468vboxsync# Default build targets.
65fea56f17cd614bc8908264df980a62e1931468vboxsync#
65fea56f17cd614bc8908264df980a62e1931468vboxsync.KEEP_STATE:
65fea56f17cd614bc8908264df980a62e1931468vboxsync
65fea56f17cd614bc8908264df980a62e1931468vboxsyncdef: $(DEF_DEPS)
65fea56f17cd614bc8908264df980a62e1931468vboxsync
65fea56f17cd614bc8908264df980a62e1931468vboxsyncall: $(ALL_DEPS)
65fea56f17cd614bc8908264df980a62e1931468vboxsync
65fea56f17cd614bc8908264df980a62e1931468vboxsyncclean: $(CLEAN_DEPS)
65fea56f17cd614bc8908264df980a62e1931468vboxsync
65fea56f17cd614bc8908264df980a62e1931468vboxsyncclobber: $(CLOBBER_DEPS)
65fea56f17cd614bc8908264df980a62e1931468vboxsync
65fea56f17cd614bc8908264df980a62e1931468vboxsynclint: $(LINT_DEPS)
65fea56f17cd614bc8908264df980a62e1931468vboxsync
65fea56f17cd614bc8908264df980a62e1931468vboxsyncmodlintlib: $(MODLINTLIB_DEPS)
65fea56f17cd614bc8908264df980a62e1931468vboxsync
65fea56f17cd614bc8908264df980a62e1931468vboxsyncclean.lint: $(CLEAN_LINT_DEPS)
65fea56f17cd614bc8908264df980a62e1931468vboxsync
65fea56f17cd614bc8908264df980a62e1931468vboxsyncinstall: $(INSTALL_DEPS)
65fea56f17cd614bc8908264df980a62e1931468vboxsync
65fea56f17cd614bc8908264df980a62e1931468vboxsync#
65fea56f17cd614bc8908264df980a62e1931468vboxsync# Include common targets.
65fea56f17cd614bc8908264df980a62e1931468vboxsync#
65fea56f17cd614bc8908264df980a62e1931468vboxsyncinclude $(UTSBASE)/intel/Makefile.targ
65fea56f17cd614bc8908264df980a62e1931468vboxsync