xref: /illumos-gate/usr/src/uts/intel/aac/Makefile (revision b6b206fc7fb36f7b13b01acf70ed6e676e405998)
17c478bd9Sstevel@tonic-gate#
2382c8bcaSpl196000# CDDL HEADER START
3382c8bcaSpl196000#
4382c8bcaSpl196000# The contents of this file are subject to the terms of the
5382c8bcaSpl196000# Common Development and Distribution License (the "License").
6382c8bcaSpl196000# You may not use this file except in compliance with the License.
7382c8bcaSpl196000#
8382c8bcaSpl196000# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9382c8bcaSpl196000# or http://www.opensolaris.org/os/licensing.
10382c8bcaSpl196000# See the License for the specific language governing permissions
11382c8bcaSpl196000# and limitations under the License.
12382c8bcaSpl196000#
13382c8bcaSpl196000# When distributing Covered Code, include this CDDL HEADER in each
14382c8bcaSpl196000# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15382c8bcaSpl196000# If applicable, add the following below this CDDL HEADER, with the
16382c8bcaSpl196000# fields enclosed by brackets "[]" replaced with your own identifying
17382c8bcaSpl196000# information: Portions Copyright [yyyy] [name of copyright owner]
18382c8bcaSpl196000#
19382c8bcaSpl196000# CDDL HEADER END
20382c8bcaSpl196000#
21382c8bcaSpl196000
22382c8bcaSpl196000#
23a74f7440Spl196000# Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
247c478bd9Sstevel@tonic-gate# Use is subject to license terms.
257c478bd9Sstevel@tonic-gate#
26*b6b206fcSJohn Levon# Copyright (c) 2018, Joyent, Inc.
277014882cSRichard Lowe
287c478bd9Sstevel@tonic-gate#
297c478bd9Sstevel@tonic-gate#	This makefile drives the production of the aac driver kernel module.
307c478bd9Sstevel@tonic-gate#
317c478bd9Sstevel@tonic-gate#	intel implementation architecture dependent
327c478bd9Sstevel@tonic-gate#
337c478bd9Sstevel@tonic-gate
347c478bd9Sstevel@tonic-gate#
357c478bd9Sstevel@tonic-gate#	Path to the base of the uts directory tree (usually /usr/src/uts).
367c478bd9Sstevel@tonic-gate#
377c478bd9Sstevel@tonic-gateUTSBASE	= ../..
387c478bd9Sstevel@tonic-gate
397c478bd9Sstevel@tonic-gate#
407c478bd9Sstevel@tonic-gate#	Define the module and object file sets.
417c478bd9Sstevel@tonic-gate#
427c478bd9Sstevel@tonic-gateMODULE		= aac
437c478bd9Sstevel@tonic-gateOBJECTS		= $(AAC_OBJS:%=$(OBJS_DIR)/%)
447c478bd9Sstevel@tonic-gateLINTS		= $(AAC_OBJS:%.o=$(LINTS_DIR)/%.ln)
457c478bd9Sstevel@tonic-gateROOTMODULE	= $(ROOT_DRV_DIR)/$(MODULE)
46942c5e3cSpl196000CONF_SRCDIR     = $(UTSBASE)/common/io/aac
477c478bd9Sstevel@tonic-gate
487c478bd9Sstevel@tonic-gate#
497c478bd9Sstevel@tonic-gate#	Include common rules.
507c478bd9Sstevel@tonic-gate#
517c478bd9Sstevel@tonic-gateinclude $(UTSBASE)/intel/Makefile.intel
527c478bd9Sstevel@tonic-gate
537c478bd9Sstevel@tonic-gate#
547c478bd9Sstevel@tonic-gate#	Define targets
557c478bd9Sstevel@tonic-gate#
56c8343062SmeemALL_TARGET	= $(BINARY) $(CONFMOD)
577c478bd9Sstevel@tonic-gateLINT_TARGET	= $(MODULE).lint
58c8343062SmeemINSTALL_TARGET	= $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
597c478bd9Sstevel@tonic-gate
607c478bd9Sstevel@tonic-gate#
61942c5e3cSpl196000# 	Kernel Module Dependencies
62942c5e3cSpl196000#
63942c5e3cSpl196000LDFLAGS		+= -dy -Nmisc/scsi
64942c5e3cSpl196000
65942c5e3cSpl196000#
667c478bd9Sstevel@tonic-gate# 	Overrides
677c478bd9Sstevel@tonic-gate#
687c478bd9Sstevel@tonic-gate
697014882cSRichard LoweCERRWARN	+= -_gcc=-Wno-uninitialized
707014882cSRichard LoweCERRWARN	+= -_gcc=-Wno-parentheses
717014882cSRichard LoweCERRWARN	+= -_gcc=-Wno-unused-value
727014882cSRichard LoweCERRWARN	+= -_gcc=-Wno-unused-label
737014882cSRichard LoweCERRWARN	+= -_gcc=-Wno-switch
747014882cSRichard Lowe
75*b6b206fcSJohn Levon# needs work
76*b6b206fcSJohn Levon$(OBJS_DIR)/aac.o := SMOFF += shift_to_zero
77*b6b206fcSJohn Levon
787c478bd9Sstevel@tonic-gate#
797c478bd9Sstevel@tonic-gate#	Default build targets.
807c478bd9Sstevel@tonic-gate#
817adeeb5aSmike_s.KEEP_STATE:
827c478bd9Sstevel@tonic-gate
837c478bd9Sstevel@tonic-gatedef:		$(DEF_DEPS)
847c478bd9Sstevel@tonic-gate
857c478bd9Sstevel@tonic-gateall:		$(ALL_DEPS)
867c478bd9Sstevel@tonic-gate
877c478bd9Sstevel@tonic-gateclean:		$(CLEAN_DEPS)
887c478bd9Sstevel@tonic-gate
897c478bd9Sstevel@tonic-gateclobber:	$(CLOBBER_DEPS)
907c478bd9Sstevel@tonic-gate
917c478bd9Sstevel@tonic-gatelint:		$(LINT_DEPS)
927c478bd9Sstevel@tonic-gate
937c478bd9Sstevel@tonic-gatemodlintlib:	$(MODLINTLIB_DEPS)
947c478bd9Sstevel@tonic-gate
957c478bd9Sstevel@tonic-gateclean.lint:	$(CLEAN_LINT_DEPS)
967c478bd9Sstevel@tonic-gate
977c478bd9Sstevel@tonic-gateinstall:	$(INSTALL_DEPS)
987c478bd9Sstevel@tonic-gate
997c478bd9Sstevel@tonic-gate#
1007c478bd9Sstevel@tonic-gate#	Include common targets.
1017c478bd9Sstevel@tonic-gate#
1027c478bd9Sstevel@tonic-gateinclude $(UTSBASE)/intel/Makefile.targ
103