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