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