1*7a1306a7Sxc151355# 2*7a1306a7Sxc151355# CDDL HEADER START 3*7a1306a7Sxc151355# 4*7a1306a7Sxc151355# The contents of this file are subject to the terms of the 5*7a1306a7Sxc151355# Common Development and Distribution License, Version 1.0 only 6*7a1306a7Sxc151355# (the "License"). You may not use this file except in compliance 7*7a1306a7Sxc151355# with the License. 8*7a1306a7Sxc151355# 9*7a1306a7Sxc151355# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 10*7a1306a7Sxc151355# or http://www.opensolaris.org/os/licensing. 11*7a1306a7Sxc151355# See the License for the specific language governing permissions 12*7a1306a7Sxc151355# and limitations under the License. 13*7a1306a7Sxc151355# 14*7a1306a7Sxc151355# When distributing Covered Code, include this CDDL HEADER in each 15*7a1306a7Sxc151355# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 16*7a1306a7Sxc151355# If applicable, add the following below this CDDL HEADER, with the 17*7a1306a7Sxc151355# fields enclosed by brackets "[]" replaced with your own identifying 18*7a1306a7Sxc151355# information: Portions Copyright [yyyy] [name of copyright owner] 19*7a1306a7Sxc151355# 20*7a1306a7Sxc151355# CDDL HEADER END 21*7a1306a7Sxc151355# 22*7a1306a7Sxc151355# 23*7a1306a7Sxc151355# Copyright 2005 Sun Microsystems, Inc. All rights reserved. 24*7a1306a7Sxc151355# Use is subject to license terms. 25*7a1306a7Sxc151355# 26*7a1306a7Sxc151355 27*7a1306a7Sxc151355#pragma ident "%Z%%M% %I% %E% SMI" 28*7a1306a7Sxc151355 29*7a1306a7Sxc151355# 30*7a1306a7Sxc151355# This file makes the atheros driver for an intel system 31*7a1306a7Sxc151355# 32*7a1306a7Sxc151355# intel architecture dependent 33*7a1306a7Sxc151355# 34*7a1306a7Sxc151355 35*7a1306a7Sxc151355# 36*7a1306a7Sxc151355# Path to the base of the uts directory tree (usually /usr/src/uts). 37*7a1306a7Sxc151355# 38*7a1306a7Sxc151355UTSBASE = ../.. 39*7a1306a7Sxc151355# 40*7a1306a7Sxc151355# Define the module and object file sets. 41*7a1306a7Sxc151355# 42*7a1306a7Sxc151355MODULE = ath 43*7a1306a7Sxc151355OBJECTS = $(ATH_OBJS:%=$(OBJS_DIR)/%) $(OBJS_DIR)/hal.o 44*7a1306a7Sxc151355LINTS = $(LINTS_DIR)/ath_aux.ln \ 45*7a1306a7Sxc151355 $(LINTS_DIR)/ath_ieee80211.ln \ 46*7a1306a7Sxc151355 $(LINTS_DIR)/ath_main.ln \ 47*7a1306a7Sxc151355 $(LINTS_DIR)/ath_osdep.ln \ 48*7a1306a7Sxc151355 $(LINTS_DIR)/ath_rate.ln \ 49*7a1306a7Sxc151355 $(LINTS_DIR)/ath_wificonfig.ln 50*7a1306a7Sxc151355 51*7a1306a7Sxc151355ROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE) 52*7a1306a7Sxc151355 53*7a1306a7Sxc151355# 54*7a1306a7Sxc151355# Include common rules. 55*7a1306a7Sxc151355# 56*7a1306a7Sxc151355include $(UTSBASE)/intel/Makefile.intel 57*7a1306a7Sxc151355 58*7a1306a7Sxc151355# 59*7a1306a7Sxc151355# Define targets 60*7a1306a7Sxc151355# 61*7a1306a7Sxc151355ALL_TARGET = $(BINARY) 62*7a1306a7Sxc151355LINT_TARGET = $(MODULE).lint 63*7a1306a7Sxc151355INSTALL_TARGET = $(BINARY) $(ROOTMODULE) 64*7a1306a7Sxc151355 65*7a1306a7Sxc151355# 66*7a1306a7Sxc151355# Driver depends on GLD & IP. 67*7a1306a7Sxc151355# 68*7a1306a7Sxc151355LDFLAGS += -dy -Nmisc/gld -Ndrv/ip 69*7a1306a7Sxc151355 70*7a1306a7Sxc151355# 71*7a1306a7Sxc151355# Default build targets. 72*7a1306a7Sxc151355# 73*7a1306a7Sxc151355.KEEP_STATE: 74*7a1306a7Sxc151355 75*7a1306a7Sxc151355def: $(DEF_DEPS) 76*7a1306a7Sxc151355 77*7a1306a7Sxc151355all: $(ALL_DEPS) 78*7a1306a7Sxc151355 79*7a1306a7Sxc151355clean: $(CLEAN_DEPS) 80*7a1306a7Sxc151355 81*7a1306a7Sxc151355clobber: $(CLOBBER_DEPS) 82*7a1306a7Sxc151355 83*7a1306a7Sxc151355lint: $(LINT_DEPS) 84*7a1306a7Sxc151355 85*7a1306a7Sxc151355modlintlib: $(MODLINTLIB_DEPS) 86*7a1306a7Sxc151355 87*7a1306a7Sxc151355clean.lint: $(CLEAN_LINT_DEPS) 88*7a1306a7Sxc151355 89*7a1306a7Sxc151355install: $(INSTALL_DEPS) 90*7a1306a7Sxc151355 91*7a1306a7Sxc151355# 92*7a1306a7Sxc151355# Include common targets. 93*7a1306a7Sxc151355# 94*7a1306a7Sxc151355include $(UTSBASE)/intel/Makefile.targ 95*7a1306a7Sxc151355 96*7a1306a7Sxc151355# 97*7a1306a7Sxc151355# If you have any special case that general 98*7a1306a7Sxc151355# Makefile rules don't serve for you, just do 99*7a1306a7Sxc151355# it yourself. 100*7a1306a7Sxc151355# 101*7a1306a7Sxc151355ATHEROS_HAL=$(UTSBASE)/common/io/ath/hal_x86_$(CLASS).o.uu 102*7a1306a7Sxc151355$(OBJS_DIR)/hal.o: $(ATHEROS_HAL) 103*7a1306a7Sxc151355 uudecode -o $@ $(ATHEROS_HAL) 104