1*26594249SQin Michael Li# 2*26594249SQin Michael Li# CDDL HEADER START 3*26594249SQin Michael Li# 4*26594249SQin Michael Li# The contents of this file are subject to the terms of the 5*26594249SQin Michael Li# Common Development and Distribution License (the "License"). 6*26594249SQin Michael Li# You may not use this file except in compliance with the License. 7*26594249SQin Michael Li# 8*26594249SQin Michael Li# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9*26594249SQin Michael Li# or http://www.opensolaris.org/os/licensing. 10*26594249SQin Michael Li# See the License for the specific language governing permissions 11*26594249SQin Michael Li# and limitations under the License. 12*26594249SQin Michael Li# 13*26594249SQin Michael Li# When distributing Covered Code, include this CDDL HEADER in each 14*26594249SQin Michael Li# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15*26594249SQin Michael Li# If applicable, add the following below this CDDL HEADER, with the 16*26594249SQin Michael Li# fields enclosed by brackets "[]" replaced with your own identifying 17*26594249SQin Michael Li# information: Portions Copyright [yyyy] [name of copyright owner] 18*26594249SQin Michael Li# 19*26594249SQin Michael Li# CDDL HEADER END 20*26594249SQin Michael Li# 21*26594249SQin Michael Li# 22*26594249SQin Michael Li# Copyright 2009 Sun Microsystems, Inc. All rights reserved. 23*26594249SQin Michael Li# Use is subject to license terms. 24*26594249SQin Michael Li# 25*26594249SQin Michael Li 26*26594249SQin Michael Li# 27*26594249SQin Michael Li# This makefile drives the production of the urtw driver kernel module. 28*26594249SQin Michael Li# 29*26594249SQin Michael Li# i86pc architecture dependent 30*26594249SQin Michael Li# 31*26594249SQin Michael Li 32*26594249SQin Michael Li# 33*26594249SQin Michael Li# Path to the base of the uts directory tree (usually /usr/src/uts). 34*26594249SQin Michael Li# 35*26594249SQin Michael LiUTSBASE = ../.. 36*26594249SQin Michael Li 37*26594249SQin Michael Li# 38*26594249SQin Michael Li# Define the module and object file sets. 39*26594249SQin Michael Li# 40*26594249SQin Michael LiMODULE = urtw 41*26594249SQin Michael LiOBJECTS = $(URTW_OBJS:%=$(OBJS_DIR)/%) 42*26594249SQin Michael LiLINTS = $(URTW_OBJS:%.o=$(LINTS_DIR)/%.ln) 43*26594249SQin Michael LiROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE) 44*26594249SQin Michael Li 45*26594249SQin Michael Li# 46*26594249SQin Michael Li# Include common rules. 47*26594249SQin Michael Li# 48*26594249SQin Michael Liinclude $(UTSBASE)/intel/Makefile.intel 49*26594249SQin Michael Li 50*26594249SQin Michael Li# 51*26594249SQin Michael Li# Define targets 52*26594249SQin Michael Li# 53*26594249SQin Michael LiALL_TARGET = $(BINARY) 54*26594249SQin Michael LiLINT_TARGET = $(MODULE).lint 55*26594249SQin Michael LiINSTALL_TARGET = $(BINARY) $(ROOTMODULE) 56*26594249SQin Michael Li 57*26594249SQin Michael Li# 58*26594249SQin Michael Li# Driver depends on GLDv3 & wifi kernel support module. 59*26594249SQin Michael Li# 60*26594249SQin Michael LiLDFLAGS += -dy -Nmisc/mac -Nmisc/net80211 -Nmisc/usba 61*26594249SQin Michael Li 62*26594249SQin Michael Li# 63*26594249SQin Michael Li# Default build targets. 64*26594249SQin Michael Li# 65*26594249SQin Michael Li.KEEP_STATE: 66*26594249SQin Michael Li 67*26594249SQin Michael Lidef: $(DEF_DEPS) 68*26594249SQin Michael Li 69*26594249SQin Michael Liall: $(ALL_DEPS) 70*26594249SQin Michael Li 71*26594249SQin Michael Liclean: $(CLEAN_DEPS) 72*26594249SQin Michael Li 73*26594249SQin Michael Liclobber: $(CLOBBER_DEPS) 74*26594249SQin Michael Li 75*26594249SQin Michael Lilint: $(LINT_DEPS) 76*26594249SQin Michael Li 77*26594249SQin Michael Limodlintlib: $(MODLINTLIB_DEPS) 78*26594249SQin Michael Li 79*26594249SQin Michael Liclean.lint: $(CLEAN_LINT_DEPS) 80*26594249SQin Michael Li 81*26594249SQin Michael Liinstall: $(INSTALL_DEPS) 82*26594249SQin Michael Li 83*26594249SQin Michael Li# 84*26594249SQin Michael Li# Include common targets. 85*26594249SQin Michael Li# 86*26594249SQin Michael Liinclude $(UTSBASE)/intel/Makefile.targ 87*26594249SQin Michael Li 88*26594249SQin Michael Li# 89*26594249SQin Michael Li# If you have any special case that general 90*26594249SQin Michael Li# Makefile rules don't serve for you, just do 91*26594249SQin Michael Li# it yourself. 92*26594249SQin Michael Li# 93