xref: /titanic_41/usr/src/uts/sparc/mac_wifi/Makefile (revision 7014882c6a3672fd0e5d60200af8643ae53c5928)
1305a1504Shx147065#
2305a1504Shx147065# CDDL HEADER START
3305a1504Shx147065#
4305a1504Shx147065# The contents of this file are subject to the terms of the
5305a1504Shx147065# Common Development and Distribution License (the "License").
6305a1504Shx147065# You may not use this file except in compliance with the License.
7305a1504Shx147065#
8305a1504Shx147065# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9305a1504Shx147065# or http://www.opensolaris.org/os/licensing.
10305a1504Shx147065# See the License for the specific language governing permissions
11305a1504Shx147065# and limitations under the License.
12305a1504Shx147065#
13305a1504Shx147065# When distributing Covered Code, include this CDDL HEADER in each
14305a1504Shx147065# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15305a1504Shx147065# If applicable, add the following below this CDDL HEADER, with the
16305a1504Shx147065# fields enclosed by brackets "[]" replaced with your own identifying
17305a1504Shx147065# information: Portions Copyright [yyyy] [name of copyright owner]
18305a1504Shx147065#
19305a1504Shx147065# CDDL HEADER END
20305a1504Shx147065#
21305a1504Shx147065#
220a0e9771SDarren Reed# Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
23305a1504Shx147065# Use is subject to license terms.
24305a1504Shx147065#
25305a1504Shx147065#	This makefile drives the production of the mac_wifi plugin
26305a1504Shx147065#	kernel module.
27305a1504Shx147065#
28305a1504Shx147065
29305a1504Shx147065#
30305a1504Shx147065#	Path to the base of the uts directory tree (usually /usr/src/uts).
31305a1504Shx147065#
32305a1504Shx147065UTSBASE	= ../..
33305a1504Shx147065
34305a1504Shx147065#
35305a1504Shx147065#	Define the module and object file sets.
36305a1504Shx147065#
37305a1504Shx147065MODULE		= mac_wifi
38305a1504Shx147065OBJECTS		= $(MAC_WIFI_OBJS:%=$(OBJS_DIR)/%)
39305a1504Shx147065LINTS		= $(MAC_WIFI_OBJS:%.o=$(LINTS_DIR)/%.ln)
40305a1504Shx147065ROOTMODULE	= $(ROOT_MAC_DIR)/$(MODULE)
41305a1504Shx147065
42305a1504Shx147065#
43305a1504Shx147065#	Include common rules.
44305a1504Shx147065#
45305a1504Shx147065include $(UTSBASE)/sparc/Makefile.sparc
46305a1504Shx147065
47*7014882cSRichard LoweCERRWARN	+= -_gcc=-Wno-switch
48*7014882cSRichard Lowe
49305a1504Shx147065#
50305a1504Shx147065#	Define targets
51305a1504Shx147065#
52305a1504Shx147065ALL_TARGET	= $(BINARY)
53305a1504Shx147065LINT_TARGET	= $(MODULE).lint
54305a1504Shx147065INSTALL_TARGET	= $(BINARY) $(ROOTMODULE)
55305a1504Shx147065
56305a1504Shx147065#
57305a1504Shx147065#	Overrides.
58305a1504Shx147065#
59305a1504Shx147065CFLAGS		+= $(CCVERBOSE)
60305a1504Shx147065LDFLAGS		+= -dy -Nmisc/mac
610a0e9771SDarren ReedINC_PATH	+= -I$(UTSBASE)/common/io/bpf
62305a1504Shx147065
63305a1504Shx147065#
64305a1504Shx147065#	Default build targets.
65305a1504Shx147065#
66305a1504Shx147065.KEEP_STATE:
67305a1504Shx147065
68305a1504Shx147065def:		$(DEF_DEPS)
69305a1504Shx147065
70305a1504Shx147065all:		$(ALL_DEPS)
71305a1504Shx147065
72305a1504Shx147065clean:		$(CLEAN_DEPS)
73305a1504Shx147065
74305a1504Shx147065clobber:	$(CLOBBER_DEPS)
75305a1504Shx147065
76305a1504Shx147065lint:		$(LINT_DEPS)
77305a1504Shx147065
78305a1504Shx147065modlintlib:	$(MODLINTLIB_DEPS)
79305a1504Shx147065
80305a1504Shx147065clean.lint:	$(CLEAN_LINT_DEPS)
81305a1504Shx147065
82305a1504Shx147065install:	$(INSTALL_DEPS)
83305a1504Shx147065
84305a1504Shx147065#
85305a1504Shx147065#	Include common targets.
86305a1504Shx147065#
87305a1504Shx147065include $(UTSBASE)/sparc/Makefile.targ
88