xref: /illumos-gate/usr/src/uts/intel/ahci/Makefile (revision 82d0151a507442720a3aea34c8925041894ab173)
12fcbc377Syt160523#
22fcbc377Syt160523# CDDL HEADER START
32fcbc377Syt160523#
42fcbc377Syt160523# The contents of this file are subject to the terms of the
52fcbc377Syt160523# Common Development and Distribution License (the "License").
62fcbc377Syt160523# You may not use this file except in compliance with the License.
72fcbc377Syt160523#
82fcbc377Syt160523# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
92fcbc377Syt160523# or http://www.opensolaris.org/os/licensing.
102fcbc377Syt160523# See the License for the specific language governing permissions
112fcbc377Syt160523# and limitations under the License.
122fcbc377Syt160523#
132fcbc377Syt160523# When distributing Covered Code, include this CDDL HEADER in each
142fcbc377Syt160523# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
152fcbc377Syt160523# If applicable, add the following below this CDDL HEADER, with the
162fcbc377Syt160523# fields enclosed by brackets "[]" replaced with your own identifying
172fcbc377Syt160523# information: Portions Copyright [yyyy] [name of copyright owner]
182fcbc377Syt160523#
192fcbc377Syt160523# CDDL HEADER END
202fcbc377Syt160523#
212fcbc377Syt160523
222fcbc377Syt160523#
23689d74b0Syt160523# Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
242fcbc377Syt160523# Use is subject to license terms.
252fcbc377Syt160523#
262fcbc377Syt160523
272fcbc377Syt160523#
282fcbc377Syt160523#	This makefile drives the production of the
292fcbc377Syt160523#	"/kernel/drv/ahci" kernel module.
302fcbc377Syt160523#
312fcbc377Syt160523#	intel architecture dependent
322fcbc377Syt160523#
332fcbc377Syt160523
342fcbc377Syt160523#
352fcbc377Syt160523#	Path to the base of the uts directory tree (usually /usr/src/uts).
362fcbc377Syt160523#
372fcbc377Syt160523UTSBASE	= ../..
382fcbc377Syt160523
392fcbc377Syt160523#
402fcbc377Syt160523#	Define the module and object file sets.
415c25b6f1SYuri Pankov
422fcbc377Syt160523MODULE		= ahci
432fcbc377Syt160523OBJECTS		= $(AHCI_OBJS:%=$(OBJS_DIR)/%)
442fcbc377Syt160523ROOTMODULE	= $(ROOT_DRV_DIR)/$(MODULE)
452fcbc377Syt160523CONF_SRCDIR     = $(UTSBASE)/common/io/sata/adapters/ahci
462fcbc377Syt160523
472fcbc377Syt160523#
482fcbc377Syt160523#	Include common rules.
492fcbc377Syt160523#
502fcbc377Syt160523include $(UTSBASE)/intel/Makefile.intel
512fcbc377Syt160523
522fcbc377Syt160523#
532fcbc377Syt160523#	Define targets
542fcbc377Syt160523#
552fcbc377Syt160523ALL_TARGET	= $(BINARY)
562fcbc377Syt160523INSTALL_TARGET	= $(BINARY) $(ROOTMODULE)
572fcbc377Syt160523
582fcbc377Syt160523#
592fcbc377Syt160523#	Overrides.
602fcbc377Syt160523#
612fcbc377Syt160523DEBUG_FLGS	=
622fcbc377Syt160523DEBUG_DEFS	+= $(DEBUG_FLGS)
632fcbc377Syt160523
642fcbc377Syt160523#
650aaef2f5SRichard Lowe# For now, disable these warnings; maintainers should endeavor
660aaef2f5SRichard Lowe# to investigate and remove these for maximum coverage.
670aaef2f5SRichard Lowe# Please do not carry these forward to new Makefiles.
682fcbc377Syt160523#
692fcbc377Syt160523CFLAGS		+= $(CCVERBOSE)
707014882cSRichard LoweCERRWARN	+= -_gcc=-Wno-parentheses
717014882cSRichard LoweCERRWARN	+= -_gcc=-Wno-unused-label
72d3b5f563SJohn LevonCERRWARN	+= $(CNOWARN_UNINIT)
737014882cSRichard Lowe
742fcbc377Syt160523#
752fcbc377Syt160523#
762fcbc377Syt160523# we depend on the sata module
77*82d0151aSRichard LoweLDFLAGS += -N misc/sata
782fcbc377Syt160523
792fcbc377Syt160523#
802fcbc377Syt160523#	Default build targets.
812fcbc377Syt160523#
822fcbc377Syt160523.KEEP_STATE:
832fcbc377Syt160523
842fcbc377Syt160523def:		$(DEF_DEPS)
852fcbc377Syt160523
862fcbc377Syt160523all:		$(ALL_DEPS)
872fcbc377Syt160523
882fcbc377Syt160523clean:		$(CLEAN_DEPS)
892fcbc377Syt160523
902fcbc377Syt160523clobber:	$(CLOBBER_DEPS)
912fcbc377Syt160523
922fcbc377Syt160523install:	$(INSTALL_DEPS)
932fcbc377Syt160523
942fcbc377Syt160523#
952fcbc377Syt160523#	Include common targets.
962fcbc377Syt160523#
972fcbc377Syt160523include $(UTSBASE)/intel/Makefile.targ
98