1c533a883Shx147065# 2c533a883Shx147065# CDDL HEADER START 3c533a883Shx147065# 4c533a883Shx147065# The contents of this file are subject to the terms of the 5c533a883Shx147065# Common Development and Distribution License (the "License"). 6c533a883Shx147065# You may not use this file except in compliance with the License. 7c533a883Shx147065# 8c533a883Shx147065# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9c533a883Shx147065# or http://www.opensolaris.org/os/licensing. 10c533a883Shx147065# See the License for the specific language governing permissions 11c533a883Shx147065# and limitations under the License. 12c533a883Shx147065# 13c533a883Shx147065# When distributing Covered Code, include this CDDL HEADER in each 14c533a883Shx147065# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15c533a883Shx147065# If applicable, add the following below this CDDL HEADER, with the 16c533a883Shx147065# fields enclosed by brackets "[]" replaced with your own identifying 17c533a883Shx147065# information: Portions Copyright [yyyy] [name of copyright owner] 18c533a883Shx147065# 19c533a883Shx147065# CDDL HEADER END 20c533a883Shx147065# 21c533a883Shx147065# 22c533a883Shx147065# Copyright 2008 Sun Microsystems, Inc. All rights reserved. 23c533a883Shx147065# Use is subject to license terms. 24c533a883Shx147065# 25b6b206fcSJohn Levon# Copyright (c) 2018, Joyent, Inc. 26c533a883Shx147065 27c533a883Shx147065# 28c533a883Shx147065# This makefile drives the production of the iwk driver kernel module. 29c533a883Shx147065# 30c533a883Shx147065# i86pc architecture dependent 31c533a883Shx147065# 32c533a883Shx147065 33c533a883Shx147065# 34c533a883Shx147065# Path to the base of the uts directory tree (usually /usr/src/uts). 35c533a883Shx147065# 36c533a883Shx147065UTSBASE = ../.. 37c533a883Shx147065 38c533a883Shx147065# 39c533a883Shx147065# Define the module and object file sets. 40c533a883Shx147065# 41c533a883Shx147065MODULE = iwk 42c533a883Shx147065OBJECTS = $(IWK_OBJS:%=$(OBJS_DIR)/%) 43c533a883Shx147065ROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE) 44c533a883Shx147065 45c533a883Shx147065# 46c533a883Shx147065# Include common rules. 47c533a883Shx147065# 48c533a883Shx147065include $(UTSBASE)/intel/Makefile.intel 49c533a883Shx147065 50c533a883Shx147065# 51c533a883Shx147065# Define targets 52c533a883Shx147065# 53c533a883Shx147065ALL_TARGET = $(BINARY) $(CONFMOD) $(ITUMOD) 54c533a883Shx147065INSTALL_TARGET = $(BINARY) $(ROOTMODULE) 55c533a883Shx147065 56c533a883Shx147065# 57c533a883Shx147065# Overrides 58c533a883Shx147065# 59c533a883Shx147065 60c533a883Shx147065CPPFLAGS += -I. -D_KERNEL -DIWL=4965 61c533a883Shx147065 62*82d0151aSRichard LoweLDFLAGS += -Nmisc/mac -Nmisc/net80211 -Ndrv/random -Ndrv/ip 63c533a883Shx147065 647014882cSRichard LoweCERRWARN += -_gcc=-Wno-unused-label 65d3b5f563SJohn LevonCERRWARN += $(CNOWARN_UNINIT) 667014882cSRichard Lowe 67b6b206fcSJohn Levon# needs work 68b6b206fcSJohn Levon$(OBJS_DIR)/iwk2.o := SMOFF += precedence 69b6b206fcSJohn Levon 70c533a883Shx147065# 71c533a883Shx147065# Default build targets. 72c533a883Shx147065# 73c533a883Shx147065.KEEP_STATE: 74c533a883Shx147065 75c533a883Shx147065def: $(DEF_DEPS) 76c533a883Shx147065 77c533a883Shx147065all: $(ALL_DEPS) 78c533a883Shx147065 79c533a883Shx147065clean: $(CLEAN_DEPS) 80c533a883Shx147065 81c533a883Shx147065clobber: $(CLOBBER_DEPS) 82c533a883Shx147065 83c533a883Shx147065install: $(INSTALL_DEPS) 84c533a883Shx147065 85c533a883Shx147065# 86c533a883Shx147065# Include common targets. 87c533a883Shx147065# 88c533a883Shx147065include $(UTSBASE)/intel/Makefile.targ 89