Makefile revision 4ebb14b236958cfe1ef4ff3b7a50216d9e51f997
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlf#
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlf# CDDL HEADER START
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlf#
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlf# The contents of this file are subject to the terms of the
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlf# Common Development and Distribution License (the "License").
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlf# You may not use this file except in compliance with the License.
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlf#
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlf# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlf# or http://www.opensolaris.org/os/licensing.
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlf# See the License for the specific language governing permissions
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlf# and limitations under the License.
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlf#
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlf# When distributing Covered Code, include this CDDL HEADER in each
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlf# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlf# If applicable, add the following below this CDDL HEADER, with the
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlf# fields enclosed by brackets "[]" replaced with your own identifying
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlf# information: Portions Copyright [yyyy] [name of copyright owner]
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlf#
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlf# CDDL HEADER END
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlf#
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlf
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlf#
bb25c06cca41ca78e5fb87fbb8e81d55beb18c95jg# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlf# Use is subject to license terms.
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlf#
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlf# ident "%Z%%M% %I% %E% SMI"
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlf#
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlf
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlf#
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlf# uts/intel/io/sata/Makefile
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlf#
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlf# This makefile drives the production of the sata "misc"
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlf# kernel module.
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlf#
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlf# intel architecture dependent
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlf#
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlf
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlf#
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlf# Path to the base of the uts directory tree (usually /usr/src/uts).
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlf#
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlfUTSBASE = ../..
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlf
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlf#
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlf# Define the module and object file sets.
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlf#
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlfMODULE = sata
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlfOBJECTS = $(SATA_OBJS:%=$(OBJS_DIR)/%)
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlfLINTS = $(SATA_OBJS:%.o=$(LINTS_DIR)/%.ln)
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlfROOTMODULE = $(ROOT_MISC_DIR)/$(MODULE)
4ebb14b236958cfe1ef4ff3b7a50216d9e51f997fritsWARLOCK_OUT = $(SATA_OBJS:%.o=%.ll)
4ebb14b236958cfe1ef4ff3b7a50216d9e51f997fritsWARLOCK_OK = $(MODULE).ok
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlf
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlf#
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlf# Include common rules.
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlf#
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlfinclude $(UTSBASE)/intel/Makefile.intel
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlf
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlf#
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlf# Define targets
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlf#
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlfALL_TARGET = $(BINARY)
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlfLINT_TARGET = $(MODULE).lint
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlfINSTALL_TARGET = $(BINARY) $(ROOTMODULE)
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlf
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlf#
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlf# Overrides.
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlf#
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlfDEBUG_FLGS =
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlfDEBUG_DEFS += $(DEBUG_FLGS)
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlf
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlf#
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlf# lint pass one enforcement
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlf#
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlfCFLAGS += $(CCVERBOSE)
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlf
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlf#
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlf# dependency on scsi module
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlf#
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlfLDFLAGS += -dy -Nmisc/scsi
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlf
bb25c06cca41ca78e5fb87fbb8e81d55beb18c95jg#
bb25c06cca41ca78e5fb87fbb8e81d55beb18c95jg# For now, disable these lint checks; maintainers should endeavor
bb25c06cca41ca78e5fb87fbb8e81d55beb18c95jg# to investigate and remove these for maximum lint coverage.
bb25c06cca41ca78e5fb87fbb8e81d55beb18c95jg# Please do not carry these forward to new Makefiles.
bb25c06cca41ca78e5fb87fbb8e81d55beb18c95jg#
bb25c06cca41ca78e5fb87fbb8e81d55beb18c95jgLINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN
bb25c06cca41ca78e5fb87fbb8e81d55beb18c95jgLINTTAGS += -erroff=E_PTRDIFF_OVERFLOW
bb25c06cca41ca78e5fb87fbb8e81d55beb18c95jgLINTTAGS += -erroff=E_ASSIGN_NARROW_CONV
bb25c06cca41ca78e5fb87fbb8e81d55beb18c95jgLINTTAGS += -erroff=E_STATIC_UNUSED
bb25c06cca41ca78e5fb87fbb8e81d55beb18c95jg
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlf#
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlf# Default build targets.
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlf#
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlf.KEEP_STATE:
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlf
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlfdef: $(DEF_DEPS)
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlf
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlfall: $(ALL_DEPS)
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlf
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlfclean: $(CLEAN_DEPS)
4ebb14b236958cfe1ef4ff3b7a50216d9e51f997frits $(RM) $(WARLOCK_OUT) $(WARLOCK_OK)
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlf
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlfclobber: $(CLOBBER_DEPS)
4ebb14b236958cfe1ef4ff3b7a50216d9e51f997frits $(RM) $(WARLOCK_OUT) $(WARLOCK_OK)
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlf
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlflint: $(LINT_DEPS)
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlf
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlfmodlintlib: $(MODLINTLIB_DEPS)
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlf
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlfclean.lint: $(CLEAN_LINT_DEPS)
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlf
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlfinstall: $(INSTALL_DEPS)
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlf
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlf#
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlf# Include common targets.
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlf#
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlfinclude $(UTSBASE)/intel/Makefile.targ
4ebb14b236958cfe1ef4ff3b7a50216d9e51f997frits
4ebb14b236958cfe1ef4ff3b7a50216d9e51f997frits#
4ebb14b236958cfe1ef4ff3b7a50216d9e51f997frits# Defines for local commands.
4ebb14b236958cfe1ef4ff3b7a50216d9e51f997frits#
4ebb14b236958cfe1ef4ff3b7a50216d9e51f997fritsWLCC = wlcc
4ebb14b236958cfe1ef4ff3b7a50216d9e51f997fritsTOUCH = touch
4ebb14b236958cfe1ef4ff3b7a50216d9e51f997fritsWARLOCK = warlock
4ebb14b236958cfe1ef4ff3b7a50216d9e51f997frits
4ebb14b236958cfe1ef4ff3b7a50216d9e51f997frits#
4ebb14b236958cfe1ef4ff3b7a50216d9e51f997frits# Warlock targets
4ebb14b236958cfe1ef4ff3b7a50216d9e51f997frits#
4ebb14b236958cfe1ef4ff3b7a50216d9e51f997fritswarlock: $(WARLOCK_OK)
4ebb14b236958cfe1ef4ff3b7a50216d9e51f997frits
4ebb14b236958cfe1ef4ff3b7a50216d9e51f997frits$(WARLOCK_OK): $(WARLOCK_OUT)
4ebb14b236958cfe1ef4ff3b7a50216d9e51f997frits $(TOUCH) $@
4ebb14b236958cfe1ef4ff3b7a50216d9e51f997frits
4ebb14b236958cfe1ef4ff3b7a50216d9e51f997frits%.ll: $(UTSBASE)/common/io/sata/impl/%.c
4ebb14b236958cfe1ef4ff3b7a50216d9e51f997frits $(WLCC) $(CPPFLAGS) -DDEBUG -o $@ $<