126594249SQin Michael Li# 226594249SQin Michael Li# CDDL HEADER START 326594249SQin Michael Li# 426594249SQin Michael Li# The contents of this file are subject to the terms of the 526594249SQin Michael Li# Common Development and Distribution License (the "License"). 626594249SQin Michael Li# You may not use this file except in compliance with the License. 726594249SQin Michael Li# 826594249SQin Michael Li# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 926594249SQin Michael Li# or http://www.opensolaris.org/os/licensing. 1026594249SQin Michael Li# See the License for the specific language governing permissions 1126594249SQin Michael Li# and limitations under the License. 1226594249SQin Michael Li# 1326594249SQin Michael Li# When distributing Covered Code, include this CDDL HEADER in each 1426594249SQin Michael Li# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 1526594249SQin Michael Li# If applicable, add the following below this CDDL HEADER, with the 1626594249SQin Michael Li# fields enclosed by brackets "[]" replaced with your own identifying 1726594249SQin Michael Li# information: Portions Copyright [yyyy] [name of copyright owner] 1826594249SQin Michael Li# 1926594249SQin Michael Li# CDDL HEADER END 2026594249SQin Michael Li# 2126594249SQin Michael Li# 2226594249SQin Michael Li# Copyright 2009 Sun Microsystems, Inc. All rights reserved. 2326594249SQin Michael Li# Use is subject to license terms. 2426594249SQin Michael Li# 25b6b206fcSJohn Levon# Copyright (c) 2018, Joyent, Inc. 2626594249SQin Michael Li 2726594249SQin Michael Li# 2826594249SQin Michael Li# This makefile drives the production of the urtw driver kernel module. 2926594249SQin Michael Li# 3026594249SQin Michael Li# i86pc architecture dependent 3126594249SQin Michael Li# 3226594249SQin Michael Li 3326594249SQin Michael Li# 3426594249SQin Michael Li# Path to the base of the uts directory tree (usually /usr/src/uts). 3526594249SQin Michael Li# 3626594249SQin Michael LiUTSBASE = ../.. 3726594249SQin Michael Li 3826594249SQin Michael Li# 3926594249SQin Michael Li# Define the module and object file sets. 4026594249SQin Michael Li# 4126594249SQin Michael LiMODULE = urtw 4226594249SQin Michael LiOBJECTS = $(URTW_OBJS:%=$(OBJS_DIR)/%) 4326594249SQin Michael LiROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE) 4426594249SQin Michael Li 4526594249SQin Michael Li# 4626594249SQin Michael Li# Include common rules. 4726594249SQin Michael Li# 4826594249SQin Michael Liinclude $(UTSBASE)/intel/Makefile.intel 4926594249SQin Michael Li 5026594249SQin Michael Li# 5126594249SQin Michael Li# Define targets 5226594249SQin Michael Li# 5326594249SQin Michael LiALL_TARGET = $(BINARY) 5426594249SQin Michael LiINSTALL_TARGET = $(BINARY) $(ROOTMODULE) 5526594249SQin Michael Li 5626594249SQin Michael Li# 5726594249SQin Michael Li# Driver depends on GLDv3 & wifi kernel support module. 5826594249SQin Michael Li# 59*82d0151aSRichard LoweLDFLAGS += -Nmisc/mac -Nmisc/net80211 -Nmisc/usba 6026594249SQin Michael Li 617014882cSRichard LoweCERRWARN += -_gcc=-Wno-parentheses 627014882cSRichard LoweCERRWARN += -_gcc=-Wno-switch 637014882cSRichard LoweCERRWARN += -_gcc=-Wno-char-subscripts 64d3b5f563SJohn LevonCERRWARN += $(CNOWARN_UNINIT) 657014882cSRichard Lowe 66b6b206fcSJohn Levon# needs work 67b6b206fcSJohn LevonSMOFF += deref_check,no_if_block,all_func_returns 68b6b206fcSJohn Levon 6926594249SQin Michael Li# 7026594249SQin Michael Li# Default build targets. 7126594249SQin Michael Li# 7226594249SQin Michael Li.KEEP_STATE: 7326594249SQin Michael Li 7426594249SQin Michael Lidef: $(DEF_DEPS) 7526594249SQin Michael Li 7626594249SQin Michael Liall: $(ALL_DEPS) 7726594249SQin Michael Li 7826594249SQin Michael Liclean: $(CLEAN_DEPS) 7926594249SQin Michael Li 8026594249SQin Michael Liclobber: $(CLOBBER_DEPS) 8126594249SQin Michael Li 8226594249SQin Michael Liinstall: $(INSTALL_DEPS) 8326594249SQin Michael Li 8426594249SQin Michael Li# 8526594249SQin Michael Li# Include common targets. 8626594249SQin Michael Li# 8726594249SQin Michael Liinclude $(UTSBASE)/intel/Makefile.targ 8826594249SQin Michael Li 8926594249SQin Michael Li# 9026594249SQin Michael Li# If you have any special case that general 9126594249SQin Michael Li# Makefile rules don't serve for you, just do 9226594249SQin Michael Li# it yourself. 9326594249SQin Michael Li# 94