xref: /titanic_51/usr/src/uts/sun4v/vnet/Makefile (revision 1ae0874509b6811fdde1dfd46f0d93fd09867a3f)
1*1ae08745Sheppo#
2*1ae08745Sheppo# CDDL HEADER START
3*1ae08745Sheppo#
4*1ae08745Sheppo# The contents of this file are subject to the terms of the
5*1ae08745Sheppo# Common Development and Distribution License (the "License").
6*1ae08745Sheppo# You may not use this file except in compliance with the License.
7*1ae08745Sheppo#
8*1ae08745Sheppo# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9*1ae08745Sheppo# or http://www.opensolaris.org/os/licensing.
10*1ae08745Sheppo# See the License for the specific language governing permissions
11*1ae08745Sheppo# and limitations under the License.
12*1ae08745Sheppo#
13*1ae08745Sheppo# When distributing Covered Code, include this CDDL HEADER in each
14*1ae08745Sheppo# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15*1ae08745Sheppo# If applicable, add the following below this CDDL HEADER, with the
16*1ae08745Sheppo# fields enclosed by brackets "[]" replaced with your own identifying
17*1ae08745Sheppo# information: Portions Copyright [yyyy] [name of copyright owner]
18*1ae08745Sheppo#
19*1ae08745Sheppo# CDDL HEADER END
20*1ae08745Sheppo#
21*1ae08745Sheppo
22*1ae08745Sheppo#
23*1ae08745Sheppo# Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
24*1ae08745Sheppo# Use is subject to license terms.
25*1ae08745Sheppo#
26*1ae08745Sheppo#pragma ident	"%Z%%M%	%I%	%E% SMI"
27*1ae08745Sheppo#
28*1ae08745Sheppo# uts/sun4v/vnet/Makefile
29*1ae08745Sheppo#
30*1ae08745Sheppo#	This makefile drives the production of the vnet driver module.
31*1ae08745Sheppo#
32*1ae08745Sheppo#	sun4v implementation architecture dependent
33*1ae08745Sheppo#
34*1ae08745Sheppo
35*1ae08745Sheppo#
36*1ae08745Sheppo#	Path to the base of the uts directory tree (usually /usr/src/uts).
37*1ae08745Sheppo#
38*1ae08745SheppoUTSBASE	= ../..
39*1ae08745Sheppo
40*1ae08745Sheppo#
41*1ae08745Sheppo#	Define the module and object file sets.
42*1ae08745Sheppo#
43*1ae08745SheppoMODULE		= vnet
44*1ae08745SheppoOBJECTS		= $(VNET_OBJS:%=$(OBJS_DIR)/%)
45*1ae08745SheppoLINTS		= $(VNET_OBJS:%.o=$(LINTS_DIR)/%.ln)
46*1ae08745SheppoROOTMODULE	= $(ROOT_PSM_DRV_DIR)/$(MODULE)
47*1ae08745Sheppo
48*1ae08745Sheppo#
49*1ae08745Sheppo#	Include common rules.
50*1ae08745Sheppo#
51*1ae08745Sheppoinclude $(UTSBASE)/sun4v/Makefile.sun4v
52*1ae08745Sheppo
53*1ae08745Sheppo#
54*1ae08745Sheppo#	Override defaults to build a unique, local modstubs.o.
55*1ae08745Sheppo#
56*1ae08745SheppoMODSTUBS_DIR	= $(OBJS_DIR)
57*1ae08745Sheppo
58*1ae08745SheppoCLEANFILES	+= $(MODSTUBS_O)
59*1ae08745Sheppo
60*1ae08745Sheppo#
61*1ae08745Sheppo#	Define targets
62*1ae08745Sheppo#
63*1ae08745SheppoALL_TARGET	= $(BINARY)
64*1ae08745SheppoLINT_TARGET	= $(MODULE).lint
65*1ae08745SheppoINSTALL_TARGET	= $(BINARY) $(ROOTMODULE)
66*1ae08745Sheppo
67*1ae08745Sheppo#
68*1ae08745Sheppo# lint pass one enforcement
69*1ae08745Sheppo#
70*1ae08745SheppoCFLAGS += $(CCVERBOSE)
71*1ae08745SheppoCFLAGS += -DVGEN_HANDLE_LOST_PKTS
72*1ae08745Sheppo#CFLAGS	+= -DVGEN_USE_MAC_TX_UPDATE
73*1ae08745Sheppo#CFLAGS += -DVGEN_REXMIT
74*1ae08745Sheppo
75*1ae08745Sheppo
76*1ae08745Sheppo#
77*1ae08745Sheppo# Driver depends on MAC & IP
78*1ae08745Sheppo#
79*1ae08745SheppoLDFLAGS         += -dy -N misc/mac -N drv/ip -N misc/ldc -N misc/platsvc
80*1ae08745Sheppo
81*1ae08745Sheppo#
82*1ae08745Sheppo#	Default build targets.
83*1ae08745Sheppo#
84*1ae08745Sheppo.KEEP_STATE:
85*1ae08745Sheppo
86*1ae08745Sheppodef:		$(DEF_DEPS)
87*1ae08745Sheppo
88*1ae08745Sheppoall:		$(ALL_DEPS)
89*1ae08745Sheppo
90*1ae08745Sheppoclean:		$(CLEAN_DEPS)
91*1ae08745Sheppo
92*1ae08745Sheppoclobber:	$(CLOBBER_DEPS)
93*1ae08745Sheppo
94*1ae08745Sheppolint:		$(LINT_DEPS)
95*1ae08745Sheppo
96*1ae08745Sheppomodlintlib:	$(MODLINTLIB_DEPS)
97*1ae08745Sheppo
98*1ae08745Sheppoclean.lint:	$(CLEAN_LINT_DEPS)
99*1ae08745Sheppo
100*1ae08745Sheppoinstall:	$(INSTALL_DEPS)
101*1ae08745Sheppo
102*1ae08745Sheppo#
103*1ae08745Sheppo#	Include common targets.
104*1ae08745Sheppo#
105*1ae08745Sheppoinclude $(UTSBASE)/$(PLATFORM)/Makefile.targ
106