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