Makefile revision 7014882c6a3672fd0e5d60200af8643ae53c5928
4e10d188042815c5285edf00ea96896b862e0863aurium#
4e10d188042815c5285edf00ea96896b862e0863aurium# CDDL HEADER START
d4d3743f0388af16b07b640a8b145eee32f36f73Alex Valavanis#
d4d3743f0388af16b07b640a8b145eee32f36f73Alex Valavanis# The contents of this file are subject to the terms of the
d4d3743f0388af16b07b640a8b145eee32f36f73Alex Valavanis# Common Development and Distribution License (the "License").
d4d3743f0388af16b07b640a8b145eee32f36f73Alex Valavanis# You may not use this file except in compliance with the License.
d4d3743f0388af16b07b640a8b145eee32f36f73Alex Valavanis#
d4d3743f0388af16b07b640a8b145eee32f36f73Alex Valavanis# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
d4d3743f0388af16b07b640a8b145eee32f36f73Alex Valavanis# or http://www.opensolaris.org/os/licensing.
d4d3743f0388af16b07b640a8b145eee32f36f73Alex Valavanis# See the License for the specific language governing permissions
d4d3743f0388af16b07b640a8b145eee32f36f73Alex Valavanis# and limitations under the License.
d4d3743f0388af16b07b640a8b145eee32f36f73Alex Valavanis#
d4d3743f0388af16b07b640a8b145eee32f36f73Alex Valavanis# When distributing Covered Code, include this CDDL HEADER in each
d4d3743f0388af16b07b640a8b145eee32f36f73Alex Valavanis# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
d4d3743f0388af16b07b640a8b145eee32f36f73Alex Valavanis# If applicable, add the following below this CDDL HEADER, with the
d4d3743f0388af16b07b640a8b145eee32f36f73Alex Valavanis# fields enclosed by brackets "[]" replaced with your own identifying
d4d3743f0388af16b07b640a8b145eee32f36f73Alex Valavanis# information: Portions Copyright [yyyy] [name of copyright owner]
d4d3743f0388af16b07b640a8b145eee32f36f73Alex Valavanis#
d4d3743f0388af16b07b640a8b145eee32f36f73Alex Valavanis# CDDL HEADER END
d4d3743f0388af16b07b640a8b145eee32f36f73Alex Valavanis#
d4d3743f0388af16b07b640a8b145eee32f36f73Alex Valavanis#
d4d3743f0388af16b07b640a8b145eee32f36f73Alex Valavanis# uts/sun4u/sf/Makefile
d4d3743f0388af16b07b640a8b145eee32f36f73Alex Valavanis#
d4d3743f0388af16b07b640a8b145eee32f36f73Alex Valavanis# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
d4d3743f0388af16b07b640a8b145eee32f36f73Alex Valavanis# Use is subject to license terms.
d4d3743f0388af16b07b640a8b145eee32f36f73Alex Valavanis# Copyright (c) 2011 Bayard G. Bell. All rights reserved.
d4d3743f0388af16b07b640a8b145eee32f36f73Alex Valavanis#
d4d3743f0388af16b07b640a8b145eee32f36f73Alex Valavanis# This makefile drives the production of the sf driver kernel module.
d4d3743f0388af16b07b640a8b145eee32f36f73Alex Valavanis#
2ebfcf72203f94f579931a9cfe6658a65ca5027daurium# sun4u architecture dependent
4e10d188042815c5285edf00ea96896b862e0863aurium#
4e10d188042815c5285edf00ea96896b862e0863aurium
4e10d188042815c5285edf00ea96896b862e0863aurium#
4e10d188042815c5285edf00ea96896b862e0863aurium# Path to the base of the uts directory tree (usually /usr/src/uts).
d4d3743f0388af16b07b640a8b145eee32f36f73Alex Valavanis#
d4d3743f0388af16b07b640a8b145eee32f36f73Alex ValavanisUTSBASE = ../..
4e10d188042815c5285edf00ea96896b862e0863aurium
1cd8881c9c3a32110a49a6668919aa3750dc1285JazzyNico#
4e10d188042815c5285edf00ea96896b862e0863aurium# Define the module and object file sets.
4e10d188042815c5285edf00ea96896b862e0863aurium#
4e10d188042815c5285edf00ea96896b862e0863auriumMODULE = sf
1cd8881c9c3a32110a49a6668919aa3750dc1285JazzyNicoOBJECTS = $(SF_OBJS:%=$(OBJS_DIR)/%)
4e10d188042815c5285edf00ea96896b862e0863auriumLINTS = $(SF_OBJS:%.o=$(LINTS_DIR)/%.ln)
4e10d188042815c5285edf00ea96896b862e0863auriumROOTMODULE = $(ROOT_PSM_DRV_DIR)/$(MODULE)
1cd8881c9c3a32110a49a6668919aa3750dc1285JazzyNicoCONF_SRCDIR = $(UTSBASE)/sun/io/scsi/adapters
1cd8881c9c3a32110a49a6668919aa3750dc1285JazzyNico
1cd8881c9c3a32110a49a6668919aa3750dc1285JazzyNico
1cd8881c9c3a32110a49a6668919aa3750dc1285JazzyNico#
1cd8881c9c3a32110a49a6668919aa3750dc1285JazzyNico# Include common rules.
4e10d188042815c5285edf00ea96896b862e0863aurium#
4e10d188042815c5285edf00ea96896b862e0863auriuminclude $(UTSBASE)/sun4u/Makefile.sun4u
4e10d188042815c5285edf00ea96896b862e0863aurium
1cd8881c9c3a32110a49a6668919aa3750dc1285JazzyNico#
1cd8881c9c3a32110a49a6668919aa3750dc1285JazzyNico# Define targets
1cd8881c9c3a32110a49a6668919aa3750dc1285JazzyNico#
4e10d188042815c5285edf00ea96896b862e0863auriumALL_TARGET = $(BINARY) $(SRC_CONFFILE)
4e10d188042815c5285edf00ea96896b862e0863auriumLINT_TARGET = $(MODULE).lint
4e10d188042815c5285edf00ea96896b862e0863auriumINSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
4e10d188042815c5285edf00ea96896b862e0863aurium
4e10d188042815c5285edf00ea96896b862e0863aurium#
1cd8881c9c3a32110a49a6668919aa3750dc1285JazzyNico# Overrides
4e10d188042815c5285edf00ea96896b862e0863aurium#
1cd8881c9c3a32110a49a6668919aa3750dc1285JazzyNicoCFLAGS += $(CCVERBOSE)
83aaf46c9feab529aeb9add871c05c3d1177afccaurium
83aaf46c9feab529aeb9add871c05c3d1177afccaurium#
4e10d188042815c5285edf00ea96896b862e0863aurium# Define dependency on scsi
4e10d188042815c5285edf00ea96896b862e0863aurium#
83aaf46c9feab529aeb9add871c05c3d1177afccauriumLDFLAGS += -dy -N misc/scsi
83aaf46c9feab529aeb9add871c05c3d1177afccaurium
83aaf46c9feab529aeb9add871c05c3d1177afccaurium#
4e10d188042815c5285edf00ea96896b862e0863aurium# For now, disable these lint checks; maintainers should endeavor
83aaf46c9feab529aeb9add871c05c3d1177afccaurium# to investigate and remove these for maximum lint coverage.
4e10d188042815c5285edf00ea96896b862e0863aurium# Please do not carry these forward to new Makefiles.
4e10d188042815c5285edf00ea96896b862e0863aurium#
83aaf46c9feab529aeb9add871c05c3d1177afccauriumLINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN
83aaf46c9feab529aeb9add871c05c3d1177afccauriumLINTTAGS += -erroff=E_PTRDIFF_OVERFLOW
d4d3743f0388af16b07b640a8b145eee32f36f73Alex ValavanisLINTTAGS += -erroff=E_ASSIGN_NARROW_CONV
d4d3743f0388af16b07b640a8b145eee32f36f73Alex Valavanis
d4d3743f0388af16b07b640a8b145eee32f36f73Alex ValavanisCERRWARN += -_gcc=-Wno-unused-value
d4d3743f0388af16b07b640a8b145eee32f36f73Alex ValavanisCERRWARN += -_gcc=-Wno-parentheses
d4d3743f0388af16b07b640a8b145eee32f36f73Alex ValavanisCERRWARN += -_gcc=-Wno-uninitialized
d4d3743f0388af16b07b640a8b145eee32f36f73Alex Valavanis
d4d3743f0388af16b07b640a8b145eee32f36f73Alex Valavanis#
d4d3743f0388af16b07b640a8b145eee32f36f73Alex Valavanis# Default build targets.
d4d3743f0388af16b07b640a8b145eee32f36f73Alex Valavanis#
d4d3743f0388af16b07b640a8b145eee32f36f73Alex Valavanis.KEEP_STATE:
d4d3743f0388af16b07b640a8b145eee32f36f73Alex Valavanis
1cd8881c9c3a32110a49a6668919aa3750dc1285JazzyNicodef: $(DEF_DEPS)
d4d3743f0388af16b07b640a8b145eee32f36f73Alex Valavanis
d4d3743f0388af16b07b640a8b145eee32f36f73Alex Valavanisall: $(ALL_DEPS)
d4d3743f0388af16b07b640a8b145eee32f36f73Alex Valavanis
83aaf46c9feab529aeb9add871c05c3d1177afccauriumclean: $(CLEAN_DEPS)
d4d3743f0388af16b07b640a8b145eee32f36f73Alex Valavanis
83aaf46c9feab529aeb9add871c05c3d1177afccauriumclobber: $(CLOBBER_DEPS)
83aaf46c9feab529aeb9add871c05c3d1177afccaurium
905e42f96548e175ead68243a632f06b19285e1fauriumlint: $(LINT_DEPS)
4e10d188042815c5285edf00ea96896b862e0863aurium
4e10d188042815c5285edf00ea96896b862e0863auriummodlintlib: $(MODLINTLIB_DEPS)
83aaf46c9feab529aeb9add871c05c3d1177afccaurium
1cd8881c9c3a32110a49a6668919aa3750dc1285JazzyNicoclean.lint: $(CLEAN_LINT_DEPS)
4e10d188042815c5285edf00ea96896b862e0863aurium
4e10d188042815c5285edf00ea96896b862e0863auriuminstall: $(INSTALL_DEPS)
83aaf46c9feab529aeb9add871c05c3d1177afccaurium
83aaf46c9feab529aeb9add871c05c3d1177afccaurium#
4b20bf95123c697a0635b14433d183b02d8b8781aurium# Include common targets.
83aaf46c9feab529aeb9add871c05c3d1177afccaurium#
83aaf46c9feab529aeb9add871c05c3d1177afccauriuminclude $(UTSBASE)/sun4u/Makefile.targ
83aaf46c9feab529aeb9add871c05c3d1177afccaurium