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