xref: /illumos-gate/usr/src/uts/intel/ahci/Makefile (revision 82d0151a)
12fcbc377Syt#
22fcbc377Syt# CDDL HEADER START
32fcbc377Syt#
42fcbc377Syt# The contents of this file are subject to the terms of the
52fcbc377Syt# Common Development and Distribution License (the "License").
62fcbc377Syt# You may not use this file except in compliance with the License.
72fcbc377Syt#
82fcbc377Syt# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
92fcbc377Syt# or http://www.opensolaris.org/os/licensing.
102fcbc377Syt# See the License for the specific language governing permissions
112fcbc377Syt# and limitations under the License.
122fcbc377Syt#
132fcbc377Syt# When distributing Covered Code, include this CDDL HEADER in each
142fcbc377Syt# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
152fcbc377Syt# If applicable, add the following below this CDDL HEADER, with the
162fcbc377Syt# fields enclosed by brackets "[]" replaced with your own identifying
172fcbc377Syt# information: Portions Copyright [yyyy] [name of copyright owner]
182fcbc377Syt#
192fcbc377Syt# CDDL HEADER END
202fcbc377Syt#
212fcbc377Syt
222fcbc377Syt#
23689d74b0Syt# Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
242fcbc377Syt# Use is subject to license terms.
252fcbc377Syt#
262fcbc377Syt
272fcbc377Syt#
285c25b6f1SYuri Pankov#	This makefile drives the production of the
292fcbc377Syt#	"/kernel/drv/ahci" kernel module.
302fcbc377Syt#
312fcbc377Syt#	intel architecture dependent
322fcbc377Syt#
332fcbc377Syt
342fcbc377Syt#
352fcbc377Syt#	Path to the base of the uts directory tree (usually /usr/src/uts).
362fcbc377Syt#
372fcbc377SytUTSBASE	= ../..
382fcbc377Syt
392fcbc377Syt#
402fcbc377Syt#	Define the module and object file sets.
415c25b6f1SYuri Pankov
425c25b6f1SYuri PankovMODULE		= ahci
432fcbc377SytOBJECTS		= $(AHCI_OBJS:%=$(OBJS_DIR)/%)
442fcbc377SytROOTMODULE	= $(ROOT_DRV_DIR)/$(MODULE)
452fcbc377SytCONF_SRCDIR     = $(UTSBASE)/common/io/sata/adapters/ahci
462fcbc377Syt
472fcbc377Syt#
482fcbc377Syt#	Include common rules.
492fcbc377Syt#
502fcbc377Sytinclude $(UTSBASE)/intel/Makefile.intel
512fcbc377Syt
522fcbc377Syt#
532fcbc377Syt#	Define targets
542fcbc377Syt#
552fcbc377SytALL_TARGET	= $(BINARY)
562fcbc377SytINSTALL_TARGET	= $(BINARY) $(ROOTMODULE)
572fcbc377Syt
582fcbc377Syt#
592fcbc377Syt#	Overrides.
602fcbc377Syt#
612fcbc377SytDEBUG_FLGS	=
622fcbc377SytDEBUG_DEFS	+= $(DEBUG_FLGS)
632fcbc377Syt
642fcbc377Syt#
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.
685c25b6f1SYuri Pankov#
690aaef2f5SRichard LoweCFLAGS		+= $(CCVERBOSE)
707014882cSRichard LoweCERRWARN	+= -_gcc=-Wno-parentheses
717014882cSRichard LoweCERRWARN	+= -_gcc=-Wno-unused-label
72d3b5f563SJohn LevonCERRWARN	+= $(CNOWARN_UNINIT)
737014882cSRichard Lowe
742fcbc377Syt#
752fcbc377Syt#
762fcbc377Syt# we depend on the sata module
77*82d0151aSRichard LoweLDFLAGS += -N misc/sata
782fcbc377Syt
792fcbc377Syt#
802fcbc377Syt#	Default build targets.
812fcbc377Syt#
822fcbc377Syt.KEEP_STATE:
832fcbc377Syt
842fcbc377Sytdef:		$(DEF_DEPS)
852fcbc377Syt
862fcbc377Sytall:		$(ALL_DEPS)
872fcbc377Syt
882fcbc377Sytclean:		$(CLEAN_DEPS)
892fcbc377Syt
902fcbc377Sytclobber:	$(CLOBBER_DEPS)
912fcbc377Syt
922fcbc377Sytinstall:	$(INSTALL_DEPS)
932fcbc377Syt
942fcbc377Syt#
952fcbc377Syt#	Include common targets.
962fcbc377Syt#
972fcbc377Sytinclude $(UTSBASE)/intel/Makefile.targ
98