xref: /titanic_41/usr/src/uts/intel/mac_6to4/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#
26*2b24ab6bSSebastien Roy#	This makefile drives the production of the mac_6to4 plugin
27*2b24ab6bSSebastien Roy#	kernel module.
28*2b24ab6bSSebastien Roy#
29*2b24ab6bSSebastien Roy
30*2b24ab6bSSebastien Roy#
31*2b24ab6bSSebastien Roy#	Path to the base of the uts directory tree (usually /usr/src/uts).
32*2b24ab6bSSebastien Roy#
33*2b24ab6bSSebastien RoyUTSBASE	= ../..
34*2b24ab6bSSebastien Roy
35*2b24ab6bSSebastien Roy#
36*2b24ab6bSSebastien Roy#	Define the module and object file sets.
37*2b24ab6bSSebastien Roy#
38*2b24ab6bSSebastien RoyMODULE		= mac_6to4
39*2b24ab6bSSebastien RoyOBJECTS		= $(MAC_6TO4_OBJS:%=$(OBJS_DIR)/%)
40*2b24ab6bSSebastien RoyLINTS		= $(MAC_6TO4_OBJS:%.o=$(LINTS_DIR)/%.ln)
41*2b24ab6bSSebastien RoyROOTMODULE	= $(ROOT_MAC_DIR)/$(MODULE)
42*2b24ab6bSSebastien Roy
43*2b24ab6bSSebastien Roy#
44*2b24ab6bSSebastien Roy#	Include common rules.
45*2b24ab6bSSebastien Roy#
46*2b24ab6bSSebastien Royinclude $(UTSBASE)/intel/Makefile.intel
47*2b24ab6bSSebastien Roy
48*2b24ab6bSSebastien Roy#
49*2b24ab6bSSebastien Roy#	Define targets
50*2b24ab6bSSebastien Roy#
51*2b24ab6bSSebastien RoyALL_TARGET	= $(BINARY)
52*2b24ab6bSSebastien RoyLINT_TARGET	= $(MODULE).lint
53*2b24ab6bSSebastien RoyINSTALL_TARGET	= $(BINARY) $(ROOTMODULE)
54*2b24ab6bSSebastien Roy
55*2b24ab6bSSebastien Roy#
56*2b24ab6bSSebastien Roy#	Overrides.
57*2b24ab6bSSebastien Roy#
58*2b24ab6bSSebastien RoyCFLAGS		+= $(CCVERBOSE)
59*2b24ab6bSSebastien RoyLDFLAGS		+= -dy -Nmisc/mac -Nmac/mac_ipv4
60*2b24ab6bSSebastien Roy
61*2b24ab6bSSebastien RoyLINTTAGS	+= -erroff=E_BAD_PTR_CAST_ALIGN
62*2b24ab6bSSebastien RoyLINTTAGS	+= -erroff=E_PTRDIFF_OVERFLOW
63*2b24ab6bSSebastien Roy
64*2b24ab6bSSebastien Roy#
65*2b24ab6bSSebastien Roy#	Default build targets.
66*2b24ab6bSSebastien Roy#
67*2b24ab6bSSebastien Roy.KEEP_STATE:
68*2b24ab6bSSebastien Roy
69*2b24ab6bSSebastien Roydef:		$(DEF_DEPS)
70*2b24ab6bSSebastien Roy
71*2b24ab6bSSebastien Royall:		$(ALL_DEPS)
72*2b24ab6bSSebastien Roy
73*2b24ab6bSSebastien Royclean:		$(CLEAN_DEPS)
74*2b24ab6bSSebastien Roy
75*2b24ab6bSSebastien Royclobber:	$(CLOBBER_DEPS)
76*2b24ab6bSSebastien Roy
77*2b24ab6bSSebastien Roylint:		$(LINT_DEPS)
78*2b24ab6bSSebastien Roy
79*2b24ab6bSSebastien Roymodlintlib:	$(MODLINTLIB_DEPS)
80*2b24ab6bSSebastien Roy
81*2b24ab6bSSebastien Royclean.lint:	$(CLEAN_LINT_DEPS)
82*2b24ab6bSSebastien Roy
83*2b24ab6bSSebastien Royinstall:	$(INSTALL_DEPS)
84*2b24ab6bSSebastien Roy
85*2b24ab6bSSebastien Roy#
86*2b24ab6bSSebastien Roy#	Include common targets.
87*2b24ab6bSSebastien Roy#
88*2b24ab6bSSebastien Royinclude $(UTSBASE)/intel/Makefile.targ
89