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