1*22a84b8dSQuaker Fang# 2*22a84b8dSQuaker Fang# CDDL HEADER START 3*22a84b8dSQuaker Fang# 4*22a84b8dSQuaker Fang# The contents of this file are subject to the terms of the 5*22a84b8dSQuaker Fang# Common Development and Distribution License (the "License"). 6*22a84b8dSQuaker Fang# You may not use this file except in compliance with the License. 7*22a84b8dSQuaker Fang# 8*22a84b8dSQuaker Fang# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9*22a84b8dSQuaker Fang# or http://www.opensolaris.org/os/licensing. 10*22a84b8dSQuaker Fang# See the License for the specific language governing permissions 11*22a84b8dSQuaker Fang# and limitations under the License. 12*22a84b8dSQuaker Fang# 13*22a84b8dSQuaker Fang# When distributing Covered Code, include this CDDL HEADER in each 14*22a84b8dSQuaker Fang# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15*22a84b8dSQuaker Fang# If applicable, add the following below this CDDL HEADER, with the 16*22a84b8dSQuaker Fang# fields enclosed by brackets "[]" replaced with your own identifying 17*22a84b8dSQuaker Fang# information: Portions Copyright [yyyy] [name of copyright owner] 18*22a84b8dSQuaker Fang# 19*22a84b8dSQuaker Fang# CDDL HEADER END 20*22a84b8dSQuaker Fang# 21*22a84b8dSQuaker Fang# 22*22a84b8dSQuaker Fang# Copyright 2009 Sun Microsystems, Inc. All rights reserved. 23*22a84b8dSQuaker Fang# Use is subject to license terms. 24*22a84b8dSQuaker Fang# 25*22a84b8dSQuaker Fang 26*22a84b8dSQuaker Fang# 27*22a84b8dSQuaker Fang# This makefile drives the production of the iwp driver kernel module. 28*22a84b8dSQuaker Fang# 29*22a84b8dSQuaker Fang# i86pc architecture dependent 30*22a84b8dSQuaker Fang# 31*22a84b8dSQuaker Fang 32*22a84b8dSQuaker Fang# 33*22a84b8dSQuaker Fang# Path to the base of the uts directory tree (usually /usr/src/uts). 34*22a84b8dSQuaker Fang# 35*22a84b8dSQuaker FangUTSBASE = ../.. 36*22a84b8dSQuaker Fang 37*22a84b8dSQuaker Fang# 38*22a84b8dSQuaker Fang# Define the module and object file sets. 39*22a84b8dSQuaker Fang# 40*22a84b8dSQuaker FangMODULE = iwp 41*22a84b8dSQuaker FangOBJECTS = $(IWP_OBJS:%=$(OBJS_DIR)/%) 42*22a84b8dSQuaker FangLINTS = $(IWP_OBJS:%.o=$(LINTS_DIR)/%.ln) 43*22a84b8dSQuaker FangROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE) 44*22a84b8dSQuaker Fang 45*22a84b8dSQuaker Fang# 46*22a84b8dSQuaker Fang# Include common rules. 47*22a84b8dSQuaker Fang# 48*22a84b8dSQuaker Fanginclude $(UTSBASE)/intel/Makefile.intel 49*22a84b8dSQuaker Fang 50*22a84b8dSQuaker Fang# 51*22a84b8dSQuaker Fang# Define targets 52*22a84b8dSQuaker Fang# 53*22a84b8dSQuaker FangALL_TARGET = $(BINARY) $(CONFMOD) $(ITUMOD) 54*22a84b8dSQuaker FangLINT_TARGET = $(MODULE).lint 55*22a84b8dSQuaker FangINSTALL_TARGET = $(BINARY) $(ROOTMODULE) 56*22a84b8dSQuaker Fang 57*22a84b8dSQuaker Fang# 58*22a84b8dSQuaker Fang# Overrides 59*22a84b8dSQuaker Fang# 60*22a84b8dSQuaker FangLINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN 61*22a84b8dSQuaker Fang 62*22a84b8dSQuaker FangCPPFLAGS += -I. -D_KERNEL 63*22a84b8dSQuaker Fang 64*22a84b8dSQuaker FangLDFLAGS += -dy -Nmisc/mac -Nmisc/net80211 -Ndrv/random -Ndrv/ip 65*22a84b8dSQuaker Fang 66*22a84b8dSQuaker Fang# 67*22a84b8dSQuaker Fang# Default build targets. 68*22a84b8dSQuaker Fang# 69*22a84b8dSQuaker Fang.KEEP_STATE: 70*22a84b8dSQuaker Fang 71*22a84b8dSQuaker Fangdef: $(DEF_DEPS) 72*22a84b8dSQuaker Fang 73*22a84b8dSQuaker Fangall: $(ALL_DEPS) 74*22a84b8dSQuaker Fang 75*22a84b8dSQuaker Fangclean: $(CLEAN_DEPS) 76*22a84b8dSQuaker Fang 77*22a84b8dSQuaker Fangclobber: $(CLOBBER_DEPS) 78*22a84b8dSQuaker Fang 79*22a84b8dSQuaker Fanglint: $(LINT_DEPS) 80*22a84b8dSQuaker Fang 81*22a84b8dSQuaker Fangmodlintlib: $(MODLINTLIB_DEPS) 82*22a84b8dSQuaker Fang 83*22a84b8dSQuaker Fangclean.lint: $(CLEAN_LINT_DEPS) 84*22a84b8dSQuaker Fang 85*22a84b8dSQuaker Fanginstall: $(INSTALL_DEPS) 86*22a84b8dSQuaker Fang 87*22a84b8dSQuaker Fang# 88*22a84b8dSQuaker Fang# Include common targets. 89*22a84b8dSQuaker Fang# 90*22a84b8dSQuaker Fanginclude $(UTSBASE)/intel/Makefile.targ 91