17eea693dSMark Johnson# 27eea693dSMark Johnson# CDDL HEADER START 37eea693dSMark Johnson# 47eea693dSMark Johnson# The contents of this file are subject to the terms of the 57eea693dSMark Johnson# Common Development and Distribution License (the "License"). 67eea693dSMark Johnson# You may not use this file except in compliance with the License. 77eea693dSMark Johnson# 87eea693dSMark Johnson# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 97eea693dSMark Johnson# or http://www.opensolaris.org/os/licensing. 107eea693dSMark Johnson# See the License for the specific language governing permissions 117eea693dSMark Johnson# and limitations under the License. 127eea693dSMark Johnson# 137eea693dSMark Johnson# When distributing Covered Code, include this CDDL HEADER in each 147eea693dSMark Johnson# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 157eea693dSMark Johnson# If applicable, add the following below this CDDL HEADER, with the 167eea693dSMark Johnson# fields enclosed by brackets "[]" replaced with your own identifying 177eea693dSMark Johnson# information: Portions Copyright [yyyy] [name of copyright owner] 187eea693dSMark Johnson# 197eea693dSMark Johnson# CDDL HEADER END 207eea693dSMark Johnson# 217eea693dSMark Johnson 227eea693dSMark Johnson# 2360471b7bSTim Foster# Copyright 2009 Sun Microsystems, Inc. All rights reserved. 247eea693dSMark Johnson# Use is subject to license terms. 257eea693dSMark Johnson# 267eea693dSMark Johnson 277eea693dSMark Johnson# 287eea693dSMark Johnson# This makefile drives the production of the xpvtap 297eea693dSMark Johnson# driver module. 307eea693dSMark Johnson# 317eea693dSMark Johnson# i86xpv architecture dependent 327eea693dSMark Johnson# 337eea693dSMark Johnson 347eea693dSMark Johnson# 357eea693dSMark Johnson# Path to the base of the uts directory tree (usually /usr/src/uts). 367eea693dSMark Johnson# 377eea693dSMark JohnsonUTSBASE = ../.. 387eea693dSMark Johnson 397eea693dSMark Johnson# 407eea693dSMark Johnson# Define the module and object file sets. 417eea693dSMark Johnson# 427eea693dSMark JohnsonMODULE = xpvtap 437eea693dSMark JohnsonOBJECTS = $(XPVTAP_OBJS:%=$(OBJS_DIR)/%) 447eea693dSMark JohnsonLINTS = $(XPVTAP_OBJS:%.o=$(LINTS_DIR)/%.ln) 457eea693dSMark JohnsonROOTMODULE = $(ROOT_PSM_DRV_DIR)/$(MODULE) 467eea693dSMark Johnson 477eea693dSMark Johnson# 487eea693dSMark Johnson# Include common rules. 497eea693dSMark Johnson# 507eea693dSMark Johnsoninclude $(UTSBASE)/i86xpv/Makefile.i86xpv 517eea693dSMark Johnson 527eea693dSMark Johnson# 537eea693dSMark Johnson# Define targets 547eea693dSMark Johnson# 557eea693dSMark JohnsonALL_TARGET = $(BINARY) 567eea693dSMark JohnsonLINT_TARGET = $(MODULE).lint 577eea693dSMark JohnsonINSTALL_TARGET = $(BINARY) $(ROOTMODULE) 587eea693dSMark Johnson 5960471b7bSTim Foster# 6060471b7bSTim Foster# Overrides 6160471b7bSTim Foster# 6260471b7bSTim FosterDEF_BUILDS = $(DEF_BUILDS64) 6360471b7bSTim FosterALL_BUILDS = $(ALL_BUILDS64) 6460471b7bSTim Foster 657eea693dSMark JohnsonLDFLAGS += 667eea693dSMark Johnson 677eea693dSMark Johnson# 687eea693dSMark Johnson# use Solaris specific code in xen public header files 697eea693dSMark Johnson# 707eea693dSMark JohnsonCFLAGS += -D_SOLARIS 717eea693dSMark JohnsonLINTFLAGS += -D_SOLARIS 727eea693dSMark Johnson 737eea693dSMark JohnsonLINTTAGS += -erroff=E_PTRDIFF_OVERFLOW 747eea693dSMark JohnsonLINTTAGS += -erroff=E_ASSIGN_NARROW_CONV 757eea693dSMark JohnsonLINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN 767eea693dSMark JohnsonLINTTAGS += -erroff=E_CONSTANT_CONDITION 777eea693dSMark Johnson 787014882cSRichard LoweCERRWARN += -_gcc=-Wno-unused-label 797014882cSRichard Lowe 807eea693dSMark Johnson# 817eea693dSMark Johnson# Default build targets. 827eea693dSMark Johnson# 837eea693dSMark Johnson.KEEP_STATE: 847eea693dSMark Johnson 857eea693dSMark Johnsondef: $(DEF_DEPS) 867eea693dSMark Johnson 877eea693dSMark Johnsonall: $(ALL_DEPS) 887eea693dSMark Johnson 89*95cb2e31SToomas Soomeclean: $(CLEAN_DEPS) 907eea693dSMark Johnson 91*95cb2e31SToomas Soomeclobber: $(CLOBBER_DEPS) 927eea693dSMark Johnson 937eea693dSMark Johnsonlint: $(LINT_DEPS) 947eea693dSMark Johnson 95*95cb2e31SToomas Soomemodlintlib: $(MODLINTLIB_DEPS) 967eea693dSMark Johnson 977eea693dSMark Johnsonclean.lint: $(CLEAN_LINT_DEPS) 987eea693dSMark Johnson 997eea693dSMark Johnsoninstall: $(INSTALL_DEPS) 1007eea693dSMark Johnson 1017eea693dSMark Johnson# 1027eea693dSMark Johnson# Include common targets. 1037eea693dSMark Johnson# 1047eea693dSMark Johnsoninclude $(UTSBASE)/i86xpv/Makefile.targ 105