xref: /titanic_50/usr/src/uts/intel/mac_ipv4/Makefile (revision 2b24ab6b3865caeede9eeb9db6b83e1d89dcd1ea)
1*2b24ab6bSSebastien Roy#
2*2b24ab6bSSebastien Roy# CDDL HEADER START
3*2b24ab6bSSebastien Roy#
4*2b24ab6bSSebastien Roy# The contents of this file are subject to the terms of the
5*2b24ab6bSSebastien Roy# Common Development and Distribution License (the "License").
6*2b24ab6bSSebastien Roy# You may not use this file except in compliance with the License.
7*2b24ab6bSSebastien Roy#
8*2b24ab6bSSebastien Roy# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9*2b24ab6bSSebastien Roy# or http://www.opensolaris.org/os/licensing.
10*2b24ab6bSSebastien Roy# See the License for the specific language governing permissions
11*2b24ab6bSSebastien Roy# and limitations under the License.
12*2b24ab6bSSebastien Roy#
13*2b24ab6bSSebastien Roy# When distributing Covered Code, include this CDDL HEADER in each
14*2b24ab6bSSebastien Roy# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15*2b24ab6bSSebastien Roy# If applicable, add the following below this CDDL HEADER, with the
16*2b24ab6bSSebastien Roy# fields enclosed by brackets "[]" replaced with your own identifying
17*2b24ab6bSSebastien Roy# information: Portions Copyright [yyyy] [name of copyright owner]
18*2b24ab6bSSebastien Roy#
19*2b24ab6bSSebastien Roy# CDDL HEADER END
20*2b24ab6bSSebastien Roy#
21*2b24ab6bSSebastien Roy#
22*2b24ab6bSSebastien Roy# Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
23*2b24ab6bSSebastien Roy# Use is subject to license terms.
24*2b24ab6bSSebastien Roy#
25*2b24ab6bSSebastien Roy#	This makefile drives the production of the mac_ipv4 plugin
26*2b24ab6bSSebastien Roy#	kernel module.
27*2b24ab6bSSebastien Roy#
28*2b24ab6bSSebastien Roy
29*2b24ab6bSSebastien Roy#
30*2b24ab6bSSebastien Roy#	Path to the base of the uts directory tree (usually /usr/src/uts).
31*2b24ab6bSSebastien Roy#
32*2b24ab6bSSebastien RoyUTSBASE	= ../..
33*2b24ab6bSSebastien Roy
34*2b24ab6bSSebastien Roy#
35*2b24ab6bSSebastien Roy#	Define the module and object file sets.
36*2b24ab6bSSebastien Roy#
37*2b24ab6bSSebastien RoyMODULE		= mac_ipv4
38*2b24ab6bSSebastien RoyOBJECTS		= $(MAC_IPV4_OBJS:%=$(OBJS_DIR)/%)
39*2b24ab6bSSebastien RoyLINTS		= $(MAC_IPV4_OBJS:%.o=$(LINTS_DIR)/%.ln)
40*2b24ab6bSSebastien RoyROOTMODULE	= $(ROOT_MAC_DIR)/$(MODULE)
41*2b24ab6bSSebastien Roy
42*2b24ab6bSSebastien Roy#
43*2b24ab6bSSebastien Roy#	Include common rules.
44*2b24ab6bSSebastien Roy#
45*2b24ab6bSSebastien Royinclude $(UTSBASE)/intel/Makefile.intel
46*2b24ab6bSSebastien Roy
47*2b24ab6bSSebastien Roy#
48*2b24ab6bSSebastien Roy#	Define targets
49*2b24ab6bSSebastien Roy#
50*2b24ab6bSSebastien RoyALL_TARGET	= $(BINARY)
51*2b24ab6bSSebastien RoyLINT_TARGET	= $(MODULE).lint
52*2b24ab6bSSebastien RoyINSTALL_TARGET	= $(BINARY) $(ROOTMODULE)
53*2b24ab6bSSebastien Roy
54*2b24ab6bSSebastien Roy#
55*2b24ab6bSSebastien Roy#	Overrides.
56*2b24ab6bSSebastien Roy#
57*2b24ab6bSSebastien RoyCFLAGS		+= $(CCVERBOSE)
58*2b24ab6bSSebastien RoyLDFLAGS		+= -dy -Nmisc/mac
59*2b24ab6bSSebastien Roy
60*2b24ab6bSSebastien RoyLINTTAGS	+= -erroff=E_BAD_PTR_CAST_ALIGN
61*2b24ab6bSSebastien RoyLINTTAGS	+= -erroff=E_PTRDIFF_OVERFLOW
62*2b24ab6bSSebastien Roy
63*2b24ab6bSSebastien Roy#
64*2b24ab6bSSebastien Roy#	Default build targets.
65*2b24ab6bSSebastien Roy#
66*2b24ab6bSSebastien Roy.KEEP_STATE:
67*2b24ab6bSSebastien Roy
68*2b24ab6bSSebastien Roydef:		$(DEF_DEPS)
69*2b24ab6bSSebastien Roy
70*2b24ab6bSSebastien Royall:		$(ALL_DEPS)
71*2b24ab6bSSebastien Roy
72*2b24ab6bSSebastien Royclean:		$(CLEAN_DEPS)
73*2b24ab6bSSebastien Roy
74*2b24ab6bSSebastien Royclobber:	$(CLOBBER_DEPS)
75*2b24ab6bSSebastien Roy
76*2b24ab6bSSebastien Roylint:		$(LINT_DEPS)
77*2b24ab6bSSebastien Roy
78*2b24ab6bSSebastien Roymodlintlib:	$(MODLINTLIB_DEPS)
79*2b24ab6bSSebastien Roy
80*2b24ab6bSSebastien Royclean.lint:	$(CLEAN_LINT_DEPS)
81*2b24ab6bSSebastien Roy
82*2b24ab6bSSebastien Royinstall:	$(INSTALL_DEPS)
83*2b24ab6bSSebastien Roy
84*2b24ab6bSSebastien Roy#
85*2b24ab6bSSebastien Roy#	Include common targets.
86*2b24ab6bSSebastien Roy#
87*2b24ab6bSSebastien Royinclude $(UTSBASE)/intel/Makefile.targ
88