1d62bc4baSyz147064# 2d62bc4baSyz147064# CDDL HEADER START 3d62bc4baSyz147064# 4d62bc4baSyz147064# The contents of this file are subject to the terms of the 5d62bc4baSyz147064# Common Development and Distribution License (the "License"). 6d62bc4baSyz147064# You may not use this file except in compliance with the License. 7d62bc4baSyz147064# 8d62bc4baSyz147064# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9d62bc4baSyz147064# or http://www.opensolaris.org/os/licensing. 10d62bc4baSyz147064# See the License for the specific language governing permissions 11d62bc4baSyz147064# and limitations under the License. 12d62bc4baSyz147064# 13d62bc4baSyz147064# When distributing Covered Code, include this CDDL HEADER in each 14d62bc4baSyz147064# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15d62bc4baSyz147064# If applicable, add the following below this CDDL HEADER, with the 16d62bc4baSyz147064# fields enclosed by brackets "[]" replaced with your own identifying 17d62bc4baSyz147064# information: Portions Copyright [yyyy] [name of copyright owner] 18d62bc4baSyz147064# 19d62bc4baSyz147064# CDDL HEADER END 20d62bc4baSyz147064# 21d62bc4baSyz147064# 22d62bc4baSyz147064# Copyright 2008 Sun Microsystems, Inc. All rights reserved. 23d62bc4baSyz147064# Use is subject to license terms. 24d62bc4baSyz147064# 25d62bc4baSyz147064 26d62bc4baSyz147064# 27d62bc4baSyz147064# Path to the base of the uts directory tree (usually /usr/src/uts). 28d62bc4baSyz147064# 29d62bc4baSyz147064UTSBASE = ../.. 30d62bc4baSyz147064 31d62bc4baSyz147064# 32d62bc4baSyz147064# Define the module and object file sets. 33d62bc4baSyz147064# 34d62bc4baSyz147064MODULE = softmac 35d62bc4baSyz147064OBJECTS = $(SOFTMAC_OBJS:%=$(OBJS_DIR)/%) 36d62bc4baSyz147064LINTS = $(SOFTMAC_OBJS:%.o=$(LINTS_DIR)/%.ln) 37d62bc4baSyz147064ROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE) 38d62bc4baSyz147064CONF_SRCDIR = $(UTSBASE)/common/io/softmac 39d62bc4baSyz147064 40d62bc4baSyz147064# 41d62bc4baSyz147064# Include common rules. 42d62bc4baSyz147064# 43d62bc4baSyz147064include $(UTSBASE)/intel/Makefile.intel 44d62bc4baSyz147064 45d62bc4baSyz147064# 46d62bc4baSyz147064# Define targets 47d62bc4baSyz147064# 48d62bc4baSyz147064ALL_TARGET = $(BINARY) $(SRC_CONFILE) 49d62bc4baSyz147064LINT_TARGET = $(MODULE).lint 50d62bc4baSyz147064INSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE) 51d62bc4baSyz147064 52d62bc4baSyz147064# 53d62bc4baSyz147064# Overrides 54d62bc4baSyz147064# 55d62bc4baSyz147064CFLAGS += $(CCVERBOSE) 56d62bc4baSyz147064LDFLAGS += -dy -Ndrv/dld -Nmisc/mac -Nmisc/strplumb -Nmisc/dls 57d62bc4baSyz147064 58d62bc4baSyz147064# 59d62bc4baSyz147064# For now, disable these lint checks as it is a generic STREAMS problem; 60d62bc4baSyz147064# maintainers should endeavor to investigate and remove these for maximum 61d62bc4baSyz147064# lint coverage. 62d62bc4baSyz147064# 63d62bc4baSyz147064LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN 64d62bc4baSyz147064 65*7014882cSRichard LoweCERRWARN += -_gcc=-Wno-uninitialized 66*7014882cSRichard LoweCERRWARN += -_gcc=-Wno-unused-label 67*7014882cSRichard Lowe 68d62bc4baSyz147064# 69d62bc4baSyz147064# Default build targets. 70d62bc4baSyz147064# 71d62bc4baSyz147064.KEEP_STATE: 72d62bc4baSyz147064 73d62bc4baSyz147064def: $(DEF_DEPS) 74d62bc4baSyz147064 75d62bc4baSyz147064all: $(ALL_DEPS) 76d62bc4baSyz147064 77d62bc4baSyz147064clean: $(CLEAN_DEPS) 78d62bc4baSyz147064 79d62bc4baSyz147064clobber: $(CLOBBER_DEPS) 80d62bc4baSyz147064 81d62bc4baSyz147064lint: $(LINT_DEPS) 82d62bc4baSyz147064 83d62bc4baSyz147064modlintlib: $(MODLINTLIB_DEPS) 84d62bc4baSyz147064 85d62bc4baSyz147064clean.lint: $(CLEAN_LINT_DEPS) 86d62bc4baSyz147064 87d62bc4baSyz147064install: $(INSTALL_DEPS) 88d62bc4baSyz147064 89d62bc4baSyz147064# 90d62bc4baSyz147064# Include common targets. 91d62bc4baSyz147064# 92d62bc4baSyz147064include $(UTSBASE)/intel/Makefile.targ 93