Makefile revision 4ebb14b236958cfe1ef4ff3b7a50216d9e51f997
98N/A#
98N/A# CDDL HEADER START
98N/A#
98N/A# The contents of this file are subject to the terms of the
908N/A# Common Development and Distribution License (the "License").
733N/A# You may not use this file except in compliance with the License.
98N/A#
98N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
919N/A# or http://www.opensolaris.org/os/licensing.
919N/A# See the License for the specific language governing permissions
919N/A# and limitations under the License.
919N/A#
919N/A# When distributing Covered Code, include this CDDL HEADER in each
919N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
919N/A# If applicable, add the following below this CDDL HEADER, with the
919N/A# fields enclosed by brackets "[]" replaced with your own identifying
919N/A# information: Portions Copyright [yyyy] [name of copyright owner]
919N/A#
919N/A# CDDL HEADER END
919N/A#
919N/A
919N/A#
919N/A# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
919N/A# Use is subject to license terms.
919N/A#
98N/A# ident "%Z%%M% %I% %E% SMI"
98N/A#
98N/A
235N/A#
156N/A# uts/intel/io/sata/Makefile
156N/A#
156N/A# This makefile drives the production of the sata "misc"
156N/A# kernel module.
98N/A#
98N/A# intel architecture dependent
98N/A#
98N/A
493N/A#
493N/A# Path to the base of the uts directory tree (usually /usr/src/uts).
98N/A#
911N/AUTSBASE = ../..
913N/A
913N/A#
911N/A# Define the module and object file sets.
98N/A#
235N/AMODULE = sata
493N/AOBJECTS = $(SATA_OBJS:%=$(OBJS_DIR)/%)
98N/ALINTS = $(SATA_OBJS:%.o=$(LINTS_DIR)/%.ln)
916N/AROOTMODULE = $(ROOT_MISC_DIR)/$(MODULE)
916N/AWARLOCK_OUT = $(SATA_OBJS:%.o=%.ll)
916N/AWARLOCK_OK = $(MODULE).ok
916N/A
98N/A#
98N/A# Include common rules.
98N/A#
606N/Ainclude $(UTSBASE)/intel/Makefile.intel
98N/A
98N/A#
98N/A# Define targets
606N/A#
606N/AALL_TARGET = $(BINARY)
98N/ALINT_TARGET = $(MODULE).lint
493N/AINSTALL_TARGET = $(BINARY) $(ROOTMODULE)
493N/A
493N/A#
98N/A# Overrides.
98N/A#
98N/ADEBUG_FLGS =
98N/ADEBUG_DEFS += $(DEBUG_FLGS)
908N/A
591N/A#
493N/A# lint pass one enforcement
493N/A#
493N/ACFLAGS += $(CCVERBOSE)
493N/A
493N/A#
493N/A# dependency on scsi module
493N/A#
493N/ALDFLAGS += -dy -Nmisc/scsi
493N/A
705N/A#
493N/A# For now, disable these lint checks; maintainers should endeavor
557N/A# to investigate and remove these for maximum lint coverage.
557N/A# Please do not carry these forward to new Makefiles.
493N/A#
493N/ALINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN
606N/ALINTTAGS += -erroff=E_PTRDIFF_OVERFLOW
606N/ALINTTAGS += -erroff=E_ASSIGN_NARROW_CONV
851N/ALINTTAGS += -erroff=E_STATIC_UNUSED
851N/A
851N/A#
851N/A# Default build targets.
851N/A#
851N/A.KEEP_STATE:
851N/A
98N/Adef: $(DEF_DEPS)
591N/A
910N/Aall: $(ALL_DEPS)
851N/A
591N/Aclean: $(CLEAN_DEPS)
910N/A $(RM) $(WARLOCK_OUT) $(WARLOCK_OK)
910N/A
910N/Aclobber: $(CLOBBER_DEPS)
910N/A $(RM) $(WARLOCK_OUT) $(WARLOCK_OK)
910N/A
910N/Alint: $(LINT_DEPS)
98N/A
98N/Amodlintlib: $(MODLINTLIB_DEPS)
910N/A
910N/Aclean.lint: $(CLEAN_LINT_DEPS)
910N/A
98N/Ainstall: $(INSTALL_DEPS)
606N/A
98N/A#
606N/A# Include common targets.
98N/A#
591N/Ainclude $(UTSBASE)/intel/Makefile.targ
851N/A
111N/A#
111N/A# Defines for local commands.
111N/A#
111N/AWLCC = wlcc
111N/ATOUCH = touch
606N/AWARLOCK = warlock
851N/A
851N/A#
851N/A# Warlock targets
606N/A#
98N/Awarlock: $(WARLOCK_OK)
851N/A
733N/A$(WARLOCK_OK): $(WARLOCK_OUT)
733N/A $(TOUCH) $@
733N/A
733N/A%.ll: $(UTSBASE)/common/io/sata/impl/%.c
733N/A $(WLCC) $(CPPFLAGS) -DDEBUG -o $@ $<
606N/A