xref: /titanic_41/usr/src/uts/intel/mac_ether/Makefile (revision 0a0e9771ca0211c15f3ac4466b661c145feeb9e4)
1ba2e4443Sseb#
2ba2e4443Sseb# CDDL HEADER START
3ba2e4443Sseb#
4ba2e4443Sseb# The contents of this file are subject to the terms of the
5ba2e4443Sseb# Common Development and Distribution License (the "License").
6ba2e4443Sseb# You may not use this file except in compliance with the License.
7ba2e4443Sseb#
8ba2e4443Sseb# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9ba2e4443Sseb# or http://www.opensolaris.org/os/licensing.
10ba2e4443Sseb# See the License for the specific language governing permissions
11ba2e4443Sseb# and limitations under the License.
12ba2e4443Sseb#
13ba2e4443Sseb# When distributing Covered Code, include this CDDL HEADER in each
14ba2e4443Sseb# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15ba2e4443Sseb# If applicable, add the following below this CDDL HEADER, with the
16ba2e4443Sseb# fields enclosed by brackets "[]" replaced with your own identifying
17ba2e4443Sseb# information: Portions Copyright [yyyy] [name of copyright owner]
18ba2e4443Sseb#
19ba2e4443Sseb# CDDL HEADER END
20ba2e4443Sseb#
21ba2e4443Sseb#
22*0a0e9771SDarren Reed# Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
23ba2e4443Sseb# Use is subject to license terms.
24ba2e4443Sseb#
25ba2e4443Sseb#	This makefile drives the production of the mac_ether MAC-Type plugin
26ba2e4443Sseb#	kernel module.
27ba2e4443Sseb#
28ba2e4443Sseb
29ba2e4443Sseb#
30ba2e4443Sseb#	Path to the base of the uts directory tree (usually /usr/src/uts).
31ba2e4443Sseb#
32ba2e4443SsebUTSBASE	= ../..
33ba2e4443Sseb
34ba2e4443Sseb#
35ba2e4443Sseb#	Define the module and object file sets.
36ba2e4443Sseb#
37ba2e4443SsebMODULE		= mac_ether
38ba2e4443SsebOBJECTS		= $(MAC_ETHER_OBJS:%=$(OBJS_DIR)/%)
39ba2e4443SsebLINTS		= $(MAC_ETHER_OBJS:%.o=$(LINTS_DIR)/%.ln)
40ba2e4443SsebROOTMODULE	= $(ROOT_MAC_DIR)/$(MODULE)
41ba2e4443Sseb
42ba2e4443Sseb#
43ba2e4443Sseb#	Include common rules.
44ba2e4443Sseb#
45ba2e4443Ssebinclude $(UTSBASE)/intel/Makefile.intel
46ba2e4443Sseb
47ba2e4443Sseb#
48ba2e4443Sseb#	Define targets
49ba2e4443Sseb#
50ba2e4443SsebALL_TARGET	= $(BINARY)
51ba2e4443SsebLINT_TARGET	= $(MODULE).lint
52ba2e4443SsebINSTALL_TARGET	= $(BINARY) $(ROOTMODULE)
53ba2e4443Sseb
54ba2e4443Sseb#
55ba2e4443Sseb#	Overrides.
56ba2e4443Sseb#
57ba2e4443SsebCFLAGS		+= $(CCVERBOSE)
58ba2e4443SsebLDFLAGS		+= -dy -N misc/mac
59*0a0e9771SDarren ReedINC_PATH	+= -I$(UTSBASE)/common/io/bpf
60ba2e4443Sseb
61ba2e4443Sseb#
62ba2e4443Sseb#	Default build targets.
63ba2e4443Sseb#
64ba2e4443Sseb.KEEP_STATE:
65ba2e4443Sseb
66ba2e4443Ssebdef:		$(DEF_DEPS)
67ba2e4443Sseb
68ba2e4443Sseball:		$(ALL_DEPS)
69ba2e4443Sseb
70ba2e4443Ssebclean:		$(CLEAN_DEPS)
71ba2e4443Sseb
72ba2e4443Ssebclobber:	$(CLOBBER_DEPS)
73ba2e4443Sseb
74ba2e4443Sseblint:		$(LINT_DEPS)
75ba2e4443Sseb
76ba2e4443Ssebmodlintlib:	$(MODLINTLIB_DEPS)
77ba2e4443Sseb
78ba2e4443Ssebclean.lint:	$(CLEAN_LINT_DEPS)
79ba2e4443Sseb
80ba2e4443Ssebinstall:	$(INSTALL_DEPS)
81ba2e4443Sseb
82ba2e4443Sseb#
83ba2e4443Sseb#	Include common targets.
84ba2e4443Sseb#
85ba2e4443Ssebinclude $(UTSBASE)/intel/Makefile.targ
86