xref: /illumos-gate/usr/src/uts/intel/mac_ether/Makefile (revision 82d0151a507442720a3aea34c8925041894ab173)
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#
220a0e9771SDarren 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)/%)
39ba2e4443SsebROOTMODULE	= $(ROOT_MAC_DIR)/$(MODULE)
40ba2e4443Sseb
41ba2e4443Sseb#
42ba2e4443Sseb#	Include common rules.
43ba2e4443Sseb#
44ba2e4443Ssebinclude $(UTSBASE)/intel/Makefile.intel
45ba2e4443Sseb
46ba2e4443Sseb#
47ba2e4443Sseb#	Define targets
48ba2e4443Sseb#
49ba2e4443SsebALL_TARGET	= $(BINARY)
50ba2e4443SsebINSTALL_TARGET	= $(BINARY) $(ROOTMODULE)
51ba2e4443Sseb
52ba2e4443Sseb#
53ba2e4443Sseb#	Overrides.
54ba2e4443Sseb#
55ba2e4443SsebCFLAGS		+= $(CCVERBOSE)
56*82d0151aSRichard LoweLDFLAGS		+= -N misc/mac
570a0e9771SDarren ReedINC_PATH	+= -I$(UTSBASE)/common/io/bpf
58ba2e4443Sseb
59ba2e4443Sseb#
60ba2e4443Sseb#	Default build targets.
61ba2e4443Sseb#
62ba2e4443Sseb.KEEP_STATE:
63ba2e4443Sseb
64ba2e4443Ssebdef:		$(DEF_DEPS)
65ba2e4443Sseb
66ba2e4443Sseball:		$(ALL_DEPS)
67ba2e4443Sseb
68ba2e4443Ssebclean:		$(CLEAN_DEPS)
69ba2e4443Sseb
70ba2e4443Ssebclobber:	$(CLOBBER_DEPS)
71ba2e4443Sseb
72ba2e4443Ssebinstall:	$(INSTALL_DEPS)
73ba2e4443Sseb
74ba2e4443Sseb#
75ba2e4443Sseb#	Include common targets.
76ba2e4443Sseb#
77ba2e4443Ssebinclude $(UTSBASE)/intel/Makefile.targ
78