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# 26b6b206fcSJohn 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-gateROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE) 45942c5e3cSpl196000CONF_SRCDIR = $(UTSBASE)/common/io/aac 467c478bd9Sstevel@tonic-gate 477c478bd9Sstevel@tonic-gate# 487c478bd9Sstevel@tonic-gate# Include common rules. 497c478bd9Sstevel@tonic-gate# 507c478bd9Sstevel@tonic-gateinclude $(UTSBASE)/intel/Makefile.intel 517c478bd9Sstevel@tonic-gate 527c478bd9Sstevel@tonic-gate# 537c478bd9Sstevel@tonic-gate# Define targets 547c478bd9Sstevel@tonic-gate# 55c8343062SmeemALL_TARGET = $(BINARY) $(CONFMOD) 56c8343062SmeemINSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE) 577c478bd9Sstevel@tonic-gate 587c478bd9Sstevel@tonic-gate# 59942c5e3cSpl196000# Kernel Module Dependencies 60942c5e3cSpl196000# 61*82d0151aSRichard LoweLDFLAGS += -Nmisc/scsi 62942c5e3cSpl196000 63942c5e3cSpl196000# 647c478bd9Sstevel@tonic-gate# Overrides 657c478bd9Sstevel@tonic-gate# 667c478bd9Sstevel@tonic-gate 67d3b5f563SJohn LevonCERRWARN += $(CNOWARN_UNINIT) 687014882cSRichard LoweCERRWARN += -_gcc=-Wno-parentheses 697014882cSRichard LoweCERRWARN += -_gcc=-Wno-unused-value 707014882cSRichard LoweCERRWARN += -_gcc=-Wno-unused-label 717014882cSRichard LoweCERRWARN += -_gcc=-Wno-switch 727014882cSRichard Lowe 73b6b206fcSJohn Levon# needs work 74b6b206fcSJohn Levon$(OBJS_DIR)/aac.o := SMOFF += shift_to_zero 75b6b206fcSJohn Levon 767c478bd9Sstevel@tonic-gate# 777c478bd9Sstevel@tonic-gate# Default build targets. 787c478bd9Sstevel@tonic-gate# 797adeeb5aSmike_s.KEEP_STATE: 807c478bd9Sstevel@tonic-gate 817c478bd9Sstevel@tonic-gatedef: $(DEF_DEPS) 827c478bd9Sstevel@tonic-gate 837c478bd9Sstevel@tonic-gateall: $(ALL_DEPS) 847c478bd9Sstevel@tonic-gate 857c478bd9Sstevel@tonic-gateclean: $(CLEAN_DEPS) 867c478bd9Sstevel@tonic-gate 877c478bd9Sstevel@tonic-gateclobber: $(CLOBBER_DEPS) 887c478bd9Sstevel@tonic-gate 897c478bd9Sstevel@tonic-gateinstall: $(INSTALL_DEPS) 907c478bd9Sstevel@tonic-gate 917c478bd9Sstevel@tonic-gate# 927c478bd9Sstevel@tonic-gate# Include common targets. 937c478bd9Sstevel@tonic-gate# 947c478bd9Sstevel@tonic-gateinclude $(UTSBASE)/intel/Makefile.targ 95