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# 25c533a883Shx147065 26c533a883Shx147065# 27c533a883Shx147065# This makefile drives the production of the iwk driver kernel module. 28c533a883Shx147065# 29c533a883Shx147065# i86pc architecture dependent 30c533a883Shx147065# 31c533a883Shx147065 32c533a883Shx147065# 33c533a883Shx147065# Path to the base of the uts directory tree (usually /usr/src/uts). 34c533a883Shx147065# 35c533a883Shx147065UTSBASE = ../.. 36c533a883Shx147065 37c533a883Shx147065# 38c533a883Shx147065# Define the module and object file sets. 39c533a883Shx147065# 40c533a883Shx147065MODULE = iwk 41c533a883Shx147065OBJECTS = $(IWK_OBJS:%=$(OBJS_DIR)/%) 42c533a883Shx147065LINTS = $(IWK_OBJS:%.o=$(LINTS_DIR)/%.ln) 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) 54c533a883Shx147065LINT_TARGET = $(MODULE).lint 55c533a883Shx147065INSTALL_TARGET = $(BINARY) $(ROOTMODULE) 56c533a883Shx147065 57c533a883Shx147065# 58c533a883Shx147065# Overrides 59c533a883Shx147065# 60c533a883Shx147065LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN 61c533a883Shx147065 62c533a883Shx147065CPPFLAGS += -I. -D_KERNEL -DIWL=4965 63c533a883Shx147065 64c533a883Shx147065LDFLAGS += -dy -Nmisc/mac -Nmisc/net80211 -Ndrv/random -Ndrv/ip 65c533a883Shx147065 66*7014882cSRichard LoweCERRWARN += -_gcc=-Wno-unused-label 67*7014882cSRichard LoweCERRWARN += -_gcc=-Wno-uninitialized 68*7014882cSRichard Lowe 69c533a883Shx147065# 70c533a883Shx147065# Default build targets. 71c533a883Shx147065# 72c533a883Shx147065.KEEP_STATE: 73c533a883Shx147065 74c533a883Shx147065def: $(DEF_DEPS) 75c533a883Shx147065 76c533a883Shx147065all: $(ALL_DEPS) 77c533a883Shx147065 78c533a883Shx147065clean: $(CLEAN_DEPS) 79c533a883Shx147065 80c533a883Shx147065clobber: $(CLOBBER_DEPS) 81c533a883Shx147065 82c533a883Shx147065lint: $(LINT_DEPS) 83c533a883Shx147065 84c533a883Shx147065modlintlib: $(MODLINTLIB_DEPS) 85c533a883Shx147065 86c533a883Shx147065clean.lint: $(CLEAN_LINT_DEPS) 87c533a883Shx147065 88c533a883Shx147065install: $(INSTALL_DEPS) 89c533a883Shx147065 90c533a883Shx147065# 91c533a883Shx147065# Include common targets. 92c533a883Shx147065# 93c533a883Shx147065include $(UTSBASE)/intel/Makefile.targ 94