1bb5e3b2fSeh146360# 2bb5e3b2fSeh146360# CDDL HEADER START 3bb5e3b2fSeh146360# 4bb5e3b2fSeh146360# The contents of this file are subject to the terms of the 5bb5e3b2fSeh146360# Common Development and Distribution License (the "License"). 6bb5e3b2fSeh146360# You may not use this file except in compliance with the License. 7bb5e3b2fSeh146360# 8bb5e3b2fSeh146360# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9bb5e3b2fSeh146360# or http://www.opensolaris.org/os/licensing. 10bb5e3b2fSeh146360# See the License for the specific language governing permissions 11bb5e3b2fSeh146360# and limitations under the License. 12bb5e3b2fSeh146360# 13bb5e3b2fSeh146360# When distributing Covered Code, include this CDDL HEADER in each 14bb5e3b2fSeh146360# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15bb5e3b2fSeh146360# If applicable, add the following below this CDDL HEADER, with the 16bb5e3b2fSeh146360# fields enclosed by brackets "[]" replaced with your own identifying 17bb5e3b2fSeh146360# information: Portions Copyright [yyyy] [name of copyright owner] 18bb5e3b2fSeh146360# 19bb5e3b2fSeh146360# CDDL HEADER END 20bb5e3b2fSeh146360# 21bb5e3b2fSeh146360# 22922d2c76Seh146360# Copyright 2008 Sun Microsystems, Inc. All rights reserved. 23bb5e3b2fSeh146360# Use is subject to license terms. 24bb5e3b2fSeh146360# 25*b6b206fcSJohn Levon# Copyright (c) 2018, Joyent, Inc. 26bb5e3b2fSeh146360 27bb5e3b2fSeh146360# 28bb5e3b2fSeh146360# This makefile drives the production of the ipw driver kernel module. 29bb5e3b2fSeh146360# 30bb5e3b2fSeh146360# i86pc architecture dependent 31bb5e3b2fSeh146360# 32bb5e3b2fSeh146360 33bb5e3b2fSeh146360# 34bb5e3b2fSeh146360# Path to the base of the uts directory tree (usually /usr/src/uts). 35bb5e3b2fSeh146360# 36bb5e3b2fSeh146360UTSBASE = ../.. 37bb5e3b2fSeh146360 38bb5e3b2fSeh146360# 39bb5e3b2fSeh146360# Define the module and object file sets. 40bb5e3b2fSeh146360# 41bb5e3b2fSeh146360MODULE = ipw 42bb5e3b2fSeh146360OBJECTS = $(IPW_OBJS:%=$(OBJS_DIR)/%) 43bb5e3b2fSeh146360LINTS = $(IPW_OBJS:%.o=$(LINTS_DIR)/%.ln) 44bb5e3b2fSeh146360ROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE) 45bb5e3b2fSeh146360 46bb5e3b2fSeh146360# 47bb5e3b2fSeh146360# Include common rules. 48bb5e3b2fSeh146360# 49bb5e3b2fSeh146360include $(UTSBASE)/intel/Makefile.intel 50bb5e3b2fSeh146360 517014882cSRichard LoweCERRWARN += -_gcc=-Wno-switch 527014882cSRichard LoweCERRWARN += -_gcc=-Wno-unused-label 537014882cSRichard LoweCERRWARN += -_gcc=-Wno-parentheses 547014882cSRichard LoweCERRWARN += -_gcc=-Wno-uninitialized 557014882cSRichard Lowe 56*b6b206fcSJohn Levon# needs work 57*b6b206fcSJohn Levon$(OBJS_DIR)/ipw2100.o := SMOFF += deref_check 58*b6b206fcSJohn Levon 59bb5e3b2fSeh146360# 60bb5e3b2fSeh146360# Define targets 61bb5e3b2fSeh146360# 62bb5e3b2fSeh146360ALL_TARGET = $(BINARY) $(CONFMOD) $(ITUMOD) 63bb5e3b2fSeh146360LINT_TARGET = $(MODULE).lint 64bb5e3b2fSeh146360INSTALL_TARGET = $(BINARY) $(ROOTMODULE) 65bb5e3b2fSeh146360 66bb5e3b2fSeh146360CPPFLAGS += -I. -D_KERNEL 67bb5e3b2fSeh146360LDFLAGS += -dy -Nmisc/mac -Nmisc/net80211 -Ndrv/random -Ndrv/ip 68bb5e3b2fSeh146360 69bb5e3b2fSeh146360# 70bb5e3b2fSeh146360# Default build targets. 71bb5e3b2fSeh146360# 72bb5e3b2fSeh146360.KEEP_STATE: 73bb5e3b2fSeh146360 74bb5e3b2fSeh146360def: $(DEF_DEPS) 75bb5e3b2fSeh146360 76bb5e3b2fSeh146360all: $(ALL_DEPS) 77bb5e3b2fSeh146360 78bb5e3b2fSeh146360clean: $(CLEAN_DEPS) 79bb5e3b2fSeh146360 80bb5e3b2fSeh146360clobber: $(CLOBBER_DEPS) 81bb5e3b2fSeh146360 82bb5e3b2fSeh146360lint: $(LINT_DEPS) 83bb5e3b2fSeh146360 84bb5e3b2fSeh146360modlintlib: $(MODLINTLIB_DEPS) 85bb5e3b2fSeh146360 86bb5e3b2fSeh146360clean.lint: $(CLEAN_LINT_DEPS) 87bb5e3b2fSeh146360 88bb5e3b2fSeh146360install: $(INSTALL_DEPS) 89bb5e3b2fSeh146360 90bb5e3b2fSeh146360# 91bb5e3b2fSeh146360# Include common targets. 92bb5e3b2fSeh146360# 93bb5e3b2fSeh146360include $(UTSBASE)/intel/Makefile.targ 94