xref: /illumos-gate/usr/src/uts/intel/nv_sata/Makefile (revision 82d0151a)
18d483882Smlf#
28d483882Smlf# CDDL HEADER START
38d483882Smlf#
48d483882Smlf# The contents of this file are subject to the terms of the
58d483882Smlf# Common Development and Distribution License (the "License").
68d483882Smlf# You may not use this file except in compliance with the License.
78d483882Smlf#
88d483882Smlf# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
98d483882Smlf# or http://www.opensolaris.org/os/licensing.
108d483882Smlf# See the License for the specific language governing permissions
118d483882Smlf# and limitations under the License.
128d483882Smlf#
138d483882Smlf# When distributing Covered Code, include this CDDL HEADER in each
148d483882Smlf# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
158d483882Smlf# If applicable, add the following below this CDDL HEADER, with the
168d483882Smlf# fields enclosed by brackets "[]" replaced with your own identifying
178d483882Smlf# information: Portions Copyright [yyyy] [name of copyright owner]
188d483882Smlf#
198d483882Smlf# CDDL HEADER END
208d483882Smlf#
218d483882Smlf
228d483882Smlf#
233f318a28SAlan Perry# Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
248d483882Smlf# Use is subject to license terms.
258d483882Smlf#
26b6b206fcSJohn Levon# Copyright (c) 2018, Joyent, Inc.
27b6b206fcSJohn Levon
288d483882Smlf#
298d483882Smlf#	Path to the base of the uts directory tree (usually /usr/src/uts).
308d483882Smlf#
318d483882SmlfUTSBASE	= ../..
328d483882Smlf
338d483882Smlf#
348d483882Smlf#	Define the module and object file sets.
358d483882Smlf#
368d483882SmlfMODULE		= nv_sata
378d483882SmlfOBJECTS		= $(NV_SATA_OBJS:%=$(OBJS_DIR)/%)
388d483882SmlfROOTMODULE	= $(ROOT_DRV_DIR)/$(MODULE)
398d483882SmlfCONF_SRCDIR     = $(UTSBASE)/common/io/sata/adapters/nv_sata
408d483882Smlf
418d483882Smlf#
428d483882Smlf#	Include common rules.
438d483882Smlf#
448d483882Smlfinclude $(UTSBASE)/intel/Makefile.intel
458d483882Smlf
468d483882Smlf#
478d483882Smlf#	Define targets
488d483882Smlf#
498d483882SmlfALL_TARGET	= $(BINARY)
508d483882SmlfINSTALL_TARGET	= $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
518d483882Smlf
528d483882Smlf#
538d483882Smlf#	Overrides.
548d483882Smlf#
558d483882SmlfDEBUG_FLGS	=
568d483882SmlfDEBUG_DEFS	+= $(DEBUG_FLGS)
573f318a28SAlan PerryCPPFLAGS	+= -DSGPIO_SUPPORT
588d483882Smlf
598d483882Smlf#
608d483882Smlf# dependency on sata module
618d483882Smlf#
62*82d0151aSRichard LoweLDFLAGS += -N misc/sata
638d483882Smlf
648d483882Smlf#
650aaef2f5SRichard Lowe# For now, disable these warnings; maintainers should endeavor
660aaef2f5SRichard Lowe# to investigate and remove these for maximum coverage.
678d483882Smlf# Please do not carry these forward to new Makefiles.
688d483882Smlf#
690aaef2f5SRichard LoweCFLAGS		+= $(CCVERBOSE)
70d3b5f563SJohn LevonCERRWARN	+= $(CNOWARN_UNINIT)
717014882cSRichard Lowe
72b6b206fcSJohn Levon# needs work
73b6b206fcSJohn Levon$(OBJS_DIR)/nv_sata.o := SMOFF += deref_check
74b6b206fcSJohn Levon
758d483882Smlf#
768d483882Smlf#	Default build targets.
778d483882Smlf#
788d483882Smlf.KEEP_STATE:
798d483882Smlf
808d483882Smlfdef:		$(DEF_DEPS)
818d483882Smlf
828d483882Smlfall:		$(ALL_DEPS)
838d483882Smlf
848d483882Smlfclean:		$(CLEAN_DEPS)
858d483882Smlf
868d483882Smlfclobber:	$(CLOBBER_DEPS)
878d483882Smlf
888d483882Smlfinstall:	$(INSTALL_DEPS)
898d483882Smlf
908d483882Smlf#
918d483882Smlf#	Include common targets.
928d483882Smlf#
938d483882Smlfinclude $(UTSBASE)/intel/Makefile.targ
94