1eb0cc229Sedp# 2eb0cc229Sedp# CDDL HEADER START 3eb0cc229Sedp# 4eb0cc229Sedp# The contents of this file are subject to the terms of the 5eb0cc229Sedp# Common Development and Distribution License (the "License"). 6eb0cc229Sedp# You may not use this file except in compliance with the License. 7eb0cc229Sedp# 8eb0cc229Sedp# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9eb0cc229Sedp# or http://www.opensolaris.org/os/licensing. 10eb0cc229Sedp# See the License for the specific language governing permissions 11eb0cc229Sedp# and limitations under the License. 12eb0cc229Sedp# 13eb0cc229Sedp# When distributing Covered Code, include this CDDL HEADER in each 14eb0cc229Sedp# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15eb0cc229Sedp# If applicable, add the following below this CDDL HEADER, with the 16eb0cc229Sedp# fields enclosed by brackets "[]" replaced with your own identifying 17eb0cc229Sedp# information: Portions Copyright [yyyy] [name of copyright owner] 18eb0cc229Sedp# 19eb0cc229Sedp# CDDL HEADER END 20eb0cc229Sedp# 21eb0cc229Sedp# 22eb0cc229Sedp# uts/i86pc/pv_cmdk/Makefile 23eb0cc229Sedp# 247f0b8309SEdward Pilatowicz# Copyright 2009 Sun Microsystems, Inc. All rights reserved. 25eb0cc229Sedp# Use is subject to license terms. 26eb0cc229Sedp# 27eb0cc229Sedp# This makefile drives the production of the xdc driver. 28eb0cc229Sedp# 29eb0cc229Sedp# i86pc implementation architecture dependent 30eb0cc229Sedp# 31eb0cc229Sedp 32eb0cc229Sedp# 33eb0cc229Sedp# Path to the base of the uts directory tree (usually /usr/src/uts). 34eb0cc229Sedp# 35eb0cc229SedpUTSBASE = ../../.. 36eb0cc229Sedp 37eb0cc229Sedp# 38eb0cc229Sedp# Define the module and object file sets. 39eb0cc229Sedp# 40eb0cc229SedpMODULE = cmdk 41eb0cc229SedpOBJECTS = $(PV_CMDK_OBJS:%=$(OBJS_DIR)/%) 42eb0cc229SedpLINTS = $(PV_CMDK_OBJS:%.o=$(LINTS_DIR)/%.ln) 43eb0cc229SedpROOTMODULE = $(ROOT_HVM_DRV_DIR)/$(MODULE) 44eb0cc229Sedp 45eb0cc229Sedp# 46eb0cc229Sedp# Include common rules. 47eb0cc229Sedp# 48eb0cc229Sedpinclude $(UTSBASE)/i86pc/i86hvm/Makefile.i86hvm 49eb0cc229Sedp 50eb0cc229Sedp# 51eb0cc229Sedp# When generating lint libraries, we want the name of the lint module 52eb0cc229Sedp# that will be generated to by pv_cmdk and not cmdk, so override the 53eb0cc229Sedp# default lint module name here. 54eb0cc229Sedp# 55eb0cc229SedpLINT_MODULE = pv_cmdk 56eb0cc229Sedp 57eb0cc229Sedp# 58eb0cc229Sedp# Define targets 59eb0cc229Sedp# 60eb0cc229SedpALL_TARGET = $(BINARY) 61eb0cc229SedpLINT_TARGET = $(LINT_MODULE).lint 62eb0cc229SedpINSTALL_TARGET = $(BINARY) $(ROOTMODULE) 63eb0cc229Sedp 647f0b8309SEdward PilatowiczLDFLAGS += -dy -Nmisc/strategy -Nmisc/cmlb -Ndrv/xpvd -Ndrv/xdf 657f0b8309SEdward PilatowiczLDFLAGS += -Nmisc/hvm_cmdk 66eb0cc229Sedp 67342440ecSPrasad SingamsettyCPPFLAGS += -D_EXTVTOC 68342440ecSPrasad Singamsetty 69342440ecSPrasad Singamsetty 70eb0cc229Sedp# 71eb0cc229Sedp# The Xen header files do not lint cleanly. Since the troublesome 72eb0cc229Sedp# structures form part of the externally defined interface to the 73eb0cc229Sedp# hypervisor, we're stuck with the noise. 74eb0cc229Sedp# 75eb0cc229SedpLINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN 76eb0cc229SedpLINTTAGS += -erroff=E_SUPPRESSION_DIRECTIVE_UNUSED 77eb0cc229SedpLINTTAGS += -erroff=E_ASSIGN_NARROW_CONV 78eb0cc229Sedp 79*7014882cSRichard LoweCERRWARN += -_gcc=-Wno-uninitialized 80*7014882cSRichard LoweCERRWARN += -_gcc=-Wno-unused-variable 81*7014882cSRichard Lowe 82eb0cc229Sedp# 83eb0cc229Sedp# Default build targets. 84eb0cc229Sedp# 85eb0cc229Sedp.KEEP_STATE: 86eb0cc229Sedp 87eb0cc229Sedpdef: $(DEF_DEPS) 88eb0cc229Sedp 89eb0cc229Sedpall: $(ALL_DEPS) 90eb0cc229Sedp 91eb0cc229Sedpclean: $(CLEAN_DEPS) 92eb0cc229Sedp 93eb0cc229Sedpclobber: $(CLOBBER_DEPS) 94eb0cc229Sedp 95eb0cc229Sedplint: $(LINT_DEPS) 96eb0cc229Sedp 97eb0cc229Sedpmodlintlib: $(MODLINTLIB_DEPS) 98eb0cc229Sedp 99eb0cc229Sedpclean.lint: $(CLEAN_LINT_DEPS) 100eb0cc229Sedp 101eb0cc229Sedpinstall: $(INSTALL_DEPS) 102eb0cc229Sedp 103eb0cc229Sedp# 104eb0cc229Sedp# Include common targets. 105eb0cc229Sedp# 106eb0cc229Sedpinclude $(UTSBASE)/i86pc/i86hvm/Makefile.targ 107