Makefile revision 4558d122136f151d62acbbc02ddb42df89a5ef66
c366016ffe1788c6847d0a967a954713725cab5evboxsync#
c366016ffe1788c6847d0a967a954713725cab5evboxsync# CDDL HEADER START
c366016ffe1788c6847d0a967a954713725cab5evboxsync#
c366016ffe1788c6847d0a967a954713725cab5evboxsync# The contents of this file are subject to the terms of the
c366016ffe1788c6847d0a967a954713725cab5evboxsync# Common Development and Distribution License (the "License").
c366016ffe1788c6847d0a967a954713725cab5evboxsync# You may not use this file except in compliance with the License.
c366016ffe1788c6847d0a967a954713725cab5evboxsync#
a4cfbcb8be3204e7008a72ae39af7fb7a52ea372vboxsync# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
c366016ffe1788c6847d0a967a954713725cab5evboxsync# or http://www.opensolaris.org/os/licensing.
c366016ffe1788c6847d0a967a954713725cab5evboxsync# See the License for the specific language governing permissions
c366016ffe1788c6847d0a967a954713725cab5evboxsync# and limitations under the License.
c366016ffe1788c6847d0a967a954713725cab5evboxsync#
c366016ffe1788c6847d0a967a954713725cab5evboxsync# When distributing Covered Code, include this CDDL HEADER in each
c366016ffe1788c6847d0a967a954713725cab5evboxsync# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
c366016ffe1788c6847d0a967a954713725cab5evboxsync# If applicable, add the following below this CDDL HEADER, with the
c366016ffe1788c6847d0a967a954713725cab5evboxsync# fields enclosed by brackets "[]" replaced with your own identifying
c366016ffe1788c6847d0a967a954713725cab5evboxsync# information: Portions Copyright [yyyy] [name of copyright owner]
c366016ffe1788c6847d0a967a954713725cab5evboxsync#
c366016ffe1788c6847d0a967a954713725cab5evboxsync# CDDL HEADER END
c366016ffe1788c6847d0a967a954713725cab5evboxsync#
c366016ffe1788c6847d0a967a954713725cab5evboxsync#
c366016ffe1788c6847d0a967a954713725cab5evboxsync# Copyright (c) 2008, 2010, Oracle and/or its affiliates. All rights reserved.
c366016ffe1788c6847d0a967a954713725cab5evboxsync#
c366016ffe1788c6847d0a967a954713725cab5evboxsync# This makefile drives the production of the stmf driver for
c366016ffe1788c6847d0a967a954713725cab5evboxsync# COMSTAR.
c366016ffe1788c6847d0a967a954713725cab5evboxsync
c366016ffe1788c6847d0a967a954713725cab5evboxsync#
c366016ffe1788c6847d0a967a954713725cab5evboxsync# Path to the base of the uts directory tree (usually /usr/src/uts).
c366016ffe1788c6847d0a967a954713725cab5evboxsync#
c366016ffe1788c6847d0a967a954713725cab5evboxsyncUTSBASE = ../..
c366016ffe1788c6847d0a967a954713725cab5evboxsync
c366016ffe1788c6847d0a967a954713725cab5evboxsyncARCHDIR:sh = cd ..; basename `pwd`
c366016ffe1788c6847d0a967a954713725cab5evboxsync
c366016ffe1788c6847d0a967a954713725cab5evboxsync#
c366016ffe1788c6847d0a967a954713725cab5evboxsync# Define the module and object file sets.
c366016ffe1788c6847d0a967a954713725cab5evboxsync#
c366016ffe1788c6847d0a967a954713725cab5evboxsyncMODULE = stmf
c366016ffe1788c6847d0a967a954713725cab5evboxsyncOBJECTS = $(STMF_OBJS:%=$(OBJS_DIR)/%)
c366016ffe1788c6847d0a967a954713725cab5evboxsyncLINTS = $(STMF_OBJS:%.o=$(LINTS_DIR)/%.ln)
36ebaddfec017eee7e82ee466c25de002cdc4231vboxsyncROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE)
7eaf45ffccb9b2c2845da8b78f8dca01aa49382bvboxsyncCONF_SRCDIR = $(UTSBASE)/common/io/comstar/stmf
c366016ffe1788c6847d0a967a954713725cab5evboxsync
ff1e21edf9a07974cb38c8f8ad7e8212b1335551vboxsync#
ff1e21edf9a07974cb38c8f8ad7e8212b1335551vboxsync# Include common rules.
ff1e21edf9a07974cb38c8f8ad7e8212b1335551vboxsync#
ff1e21edf9a07974cb38c8f8ad7e8212b1335551vboxsyncinclude ../Makefile.$(ARCHDIR)
ff1e21edf9a07974cb38c8f8ad7e8212b1335551vboxsync
ff1e21edf9a07974cb38c8f8ad7e8212b1335551vboxsync#
ff1e21edf9a07974cb38c8f8ad7e8212b1335551vboxsync# Define targets
ff1e21edf9a07974cb38c8f8ad7e8212b1335551vboxsync#
ff1e21edf9a07974cb38c8f8ad7e8212b1335551vboxsyncALL_TARGET = $(BINARY) $(SRC_CONFILE)
ff1e21edf9a07974cb38c8f8ad7e8212b1335551vboxsyncLINT_TARGET = $(MODULE).lint
ff1e21edf9a07974cb38c8f8ad7e8212b1335551vboxsyncINSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
a4b6bc5445b0e3d9bda9db76ac953b2542fd0a28vboxsync
a4b6bc5445b0e3d9bda9db76ac953b2542fd0a28vboxsync#
ff1e21edf9a07974cb38c8f8ad7e8212b1335551vboxsync# Overrides and depends_on
ff1e21edf9a07974cb38c8f8ad7e8212b1335551vboxsync#
ff1e21edf9a07974cb38c8f8ad7e8212b1335551vboxsyncMODSTUBS_DIR = $(OBJS_DIR)
ff1e21edf9a07974cb38c8f8ad7e8212b1335551vboxsyncCERRWARN += -erroff=E_STATEMENT_NOT_REACHED
ff1e21edf9a07974cb38c8f8ad7e8212b1335551vboxsync
ff1e21edf9a07974cb38c8f8ad7e8212b1335551vboxsyncC99MODE= -xc99=%all
ff1e21edf9a07974cb38c8f8ad7e8212b1335551vboxsyncC99LMODE= -Xc99=%all
ff1e21edf9a07974cb38c8f8ad7e8212b1335551vboxsync
ff1e21edf9a07974cb38c8f8ad7e8212b1335551vboxsync#
ff1e21edf9a07974cb38c8f8ad7e8212b1335551vboxsync# For now, disable these lint checks; maintainers should endeavor
ff1e21edf9a07974cb38c8f8ad7e8212b1335551vboxsync# to investigate and remove these for maximum lint coverage.
ff1e21edf9a07974cb38c8f8ad7e8212b1335551vboxsync#
ff1e21edf9a07974cb38c8f8ad7e8212b1335551vboxsyncLINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN
ff1e21edf9a07974cb38c8f8ad7e8212b1335551vboxsyncLINTTAGS += -erroff=E_STATIC_UNUSED
ff1e21edf9a07974cb38c8f8ad7e8212b1335551vboxsync
ff1e21edf9a07974cb38c8f8ad7e8212b1335551vboxsync#
ff1e21edf9a07974cb38c8f8ad7e8212b1335551vboxsync# Default build targets.
a7aa94e0115a73841f34ebbfa00f63fa1904e51fvboxsync#
b6cc138b99f86c2d29ecfe32cecf9f68ba5e73afvboxsync.KEEP_STATE:
0e5731ab59b4ecead38375f26eeea698f00b19fdvboxsync
0e5731ab59b4ecead38375f26eeea698f00b19fdvboxsyncdef: $(DEF_DEPS)
0e5731ab59b4ecead38375f26eeea698f00b19fdvboxsync
a7aa94e0115a73841f34ebbfa00f63fa1904e51fvboxsyncall: $(ALL_DEPS)
a7aa94e0115a73841f34ebbfa00f63fa1904e51fvboxsync
a7aa94e0115a73841f34ebbfa00f63fa1904e51fvboxsyncclean: $(CLEAN_DEPS)
ff1e21edf9a07974cb38c8f8ad7e8212b1335551vboxsync
ff1e21edf9a07974cb38c8f8ad7e8212b1335551vboxsyncclobber: $(CLOBBER_DEPS)
ff1e21edf9a07974cb38c8f8ad7e8212b1335551vboxsync
ff1e21edf9a07974cb38c8f8ad7e8212b1335551vboxsynclint: $(LINT_DEPS)
ff1e21edf9a07974cb38c8f8ad7e8212b1335551vboxsync
ff1e21edf9a07974cb38c8f8ad7e8212b1335551vboxsyncmodlintlib: $(MODLINTLIB_DEPS)
ff1e21edf9a07974cb38c8f8ad7e8212b1335551vboxsync
76326dd9df821e926bfda3ca9193f7736b42f6fdvboxsyncclean.lint: $(CLEAN_LINT_DEPS)
9d869ecad3ee96dd3f059f34a8f285fc3d361ab8vboxsync
76326dd9df821e926bfda3ca9193f7736b42f6fdvboxsyncinstall: $(INSTALL_DEPS)
e66c95fa9950a4d9c567db63a4a495bf086cc4bfvboxsync
ff1e21edf9a07974cb38c8f8ad7e8212b1335551vboxsync#
ff1e21edf9a07974cb38c8f8ad7e8212b1335551vboxsync# Include common targets.
ff1e21edf9a07974cb38c8f8ad7e8212b1335551vboxsync#
ff1e21edf9a07974cb38c8f8ad7e8212b1335551vboxsyncinclude ../Makefile.targ
ff1e21edf9a07974cb38c8f8ad7e8212b1335551vboxsync