11ae08745Sheppo# 21ae08745Sheppo# CDDL HEADER START 31ae08745Sheppo# 41ae08745Sheppo# The contents of this file are subject to the terms of the 51ae08745Sheppo# Common Development and Distribution License (the "License"). 61ae08745Sheppo# You may not use this file except in compliance with the License. 71ae08745Sheppo# 81ae08745Sheppo# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 91ae08745Sheppo# or http://www.opensolaris.org/os/licensing. 101ae08745Sheppo# See the License for the specific language governing permissions 111ae08745Sheppo# and limitations under the License. 121ae08745Sheppo# 131ae08745Sheppo# When distributing Covered Code, include this CDDL HEADER in each 141ae08745Sheppo# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 151ae08745Sheppo# If applicable, add the following below this CDDL HEADER, with the 161ae08745Sheppo# fields enclosed by brackets "[]" replaced with your own identifying 171ae08745Sheppo# information: Portions Copyright [yyyy] [name of copyright owner] 181ae08745Sheppo# 191ae08745Sheppo# CDDL HEADER END 201ae08745Sheppo# 211ae08745Sheppo 221ae08745Sheppo# 231ae08745Sheppo# Copyright 2006 Sun Microsystems, Inc. All rights reserved. 241ae08745Sheppo# Use is subject to license terms. 251ae08745Sheppo# 26*7014882cSRichard Lowe 271ae08745Sheppo# 281ae08745Sheppo# uts/sun4v/vnet/Makefile 291ae08745Sheppo# 301ae08745Sheppo# This makefile drives the production of the vnet driver module. 311ae08745Sheppo# 321ae08745Sheppo# sun4v implementation architecture dependent 331ae08745Sheppo# 341ae08745Sheppo 351ae08745Sheppo# 361ae08745Sheppo# Path to the base of the uts directory tree (usually /usr/src/uts). 371ae08745Sheppo# 381ae08745SheppoUTSBASE = ../.. 391ae08745Sheppo 401ae08745Sheppo# 411ae08745Sheppo# Define the module and object file sets. 421ae08745Sheppo# 431ae08745SheppoMODULE = vnet 441ae08745SheppoOBJECTS = $(VNET_OBJS:%=$(OBJS_DIR)/%) 451ae08745SheppoLINTS = $(VNET_OBJS:%.o=$(LINTS_DIR)/%.ln) 461ae08745SheppoROOTMODULE = $(ROOT_PSM_DRV_DIR)/$(MODULE) 471ae08745Sheppo 481ae08745Sheppo# 491ae08745Sheppo# Include common rules. 501ae08745Sheppo# 511ae08745Sheppoinclude $(UTSBASE)/sun4v/Makefile.sun4v 521ae08745Sheppo 531ae08745Sheppo# 541ae08745Sheppo# Override defaults to build a unique, local modstubs.o. 551ae08745Sheppo# 561ae08745SheppoMODSTUBS_DIR = $(OBJS_DIR) 571ae08745Sheppo 581ae08745SheppoCLEANFILES += $(MODSTUBS_O) 591ae08745Sheppo 601ae08745Sheppo# 611ae08745Sheppo# Define targets 621ae08745Sheppo# 631ae08745SheppoALL_TARGET = $(BINARY) 641ae08745SheppoLINT_TARGET = $(MODULE).lint 651ae08745SheppoINSTALL_TARGET = $(BINARY) $(ROOTMODULE) 661ae08745Sheppo 671ae08745Sheppo# 681ae08745Sheppo# lint pass one enforcement 691ae08745Sheppo# 701ae08745SheppoCFLAGS += $(CCVERBOSE) 711ae08745SheppoCFLAGS += -DVGEN_HANDLE_LOST_PKTS 721ae08745Sheppo 731ae08745Sheppo# 741ae08745Sheppo# Driver depends on MAC & IP 751ae08745Sheppo# 761ae08745SheppoLDFLAGS += -dy -N misc/mac -N drv/ip -N misc/ldc -N misc/platsvc 771ae08745Sheppo 781ae08745Sheppo# 79bb25c06cSjg# For now, disable these lint checks; maintainers should endeavor 80bb25c06cSjg# to investigate and remove these for maximum lint coverage. 81bb25c06cSjg# Please do not carry these forward to new Makefiles. 82bb25c06cSjg# 83bb25c06cSjgLINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN 84bb25c06cSjgLINTTAGS += -erroff=E_PTRDIFF_OVERFLOW 85bb25c06cSjgLINTTAGS += -erroff=E_ASSIGN_NARROW_CONV 86bb25c06cSjgLINTTAGS += -erroff=E_STATIC_UNUSED 87bb25c06cSjgLINTTAGS += -erroff=E_SUSPICIOUS_COMPARISON 88bb25c06cSjg 89*7014882cSRichard LoweCERRWARN += -_gcc=-Wno-type-limits 90*7014882cSRichard LoweCERRWARN += -_gcc=-Wno-clobbered 91*7014882cSRichard LoweCERRWARN += -_gcc=-Wno-unused-label 92*7014882cSRichard LoweCERRWARN += -_gcc=-Wno-unused-function 93*7014882cSRichard LoweCERRWARN += -_gcc=-Wno-unused-variable 94*7014882cSRichard LoweCERRWARN += -_gcc=-Wno-parentheses 95*7014882cSRichard LoweCERRWARN += -_gcc=-Wno-uninitialized 96*7014882cSRichard Lowe 97bb25c06cSjg# 981ae08745Sheppo# Default build targets. 991ae08745Sheppo# 1001ae08745Sheppo.KEEP_STATE: 1011ae08745Sheppo 1021ae08745Sheppodef: $(DEF_DEPS) 1031ae08745Sheppo 1041ae08745Sheppoall: $(ALL_DEPS) 1051ae08745Sheppo 1061ae08745Sheppoclean: $(CLEAN_DEPS) 1071ae08745Sheppo 1081ae08745Sheppoclobber: $(CLOBBER_DEPS) 1091ae08745Sheppo 1101ae08745Sheppolint: $(LINT_DEPS) 1111ae08745Sheppo 1121ae08745Sheppomodlintlib: $(MODLINTLIB_DEPS) 1131ae08745Sheppo 1141ae08745Sheppoclean.lint: $(CLEAN_LINT_DEPS) 1151ae08745Sheppo 1161ae08745Sheppoinstall: $(INSTALL_DEPS) 1171ae08745Sheppo 1181ae08745Sheppo# 1191ae08745Sheppo# Include common targets. 1201ae08745Sheppo# 1211ae08745Sheppoinclude $(UTSBASE)/$(PLATFORM)/Makefile.targ 122