15cff7825Smh# 25cff7825Smh# CDDL HEADER START 35cff7825Smh# 45cff7825Smh# The contents of this file are subject to the terms of the 55cff7825Smh# Common Development and Distribution License (the "License"). 65cff7825Smh# You may not use this file except in compliance with the License. 75cff7825Smh# 85cff7825Smh# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 95cff7825Smh# or http://www.opensolaris.org/os/licensing. 105cff7825Smh# See the License for the specific language governing permissions 115cff7825Smh# and limitations under the License. 125cff7825Smh# 135cff7825Smh# When distributing Covered Code, include this CDDL HEADER in each 145cff7825Smh# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 155cff7825Smh# If applicable, add the following below this CDDL HEADER, with the 165cff7825Smh# fields enclosed by brackets "[]" replaced with your own identifying 175cff7825Smh# information: Portions Copyright [yyyy] [name of copyright owner] 185cff7825Smh# 195cff7825Smh# CDDL HEADER END 205cff7825Smh# 21843e1988Sjohnlev 22843e1988Sjohnlev# 23843e1988Sjohnlev# uts/i86xpv/xnf/Makefile 245cff7825Smh# 255cff7825Smh# Copyright 2007 Sun Microsystems, Inc. All rights reserved. 265cff7825Smh# Use is subject to license terms. 275cff7825Smh# 28*b6b206fcSJohn Levon# Copyright (c) 2018, Joyent, Inc. 295cff7825Smh 305cff7825Smh# 315cff7825Smh# Path to the base of the uts directory tree (usually /usr/src/uts). 325cff7825Smh# 33843e1988SjohnlevUTSBASE = ../.. 345cff7825Smh 355cff7825Smh# 365cff7825Smh# Define the module and object file sets. 375cff7825Smh# 38843e1988SjohnlevMODULE = xnf 39843e1988SjohnlevOBJECTS = $(XNF_OBJS:%=$(OBJS_DIR)/%) 40843e1988SjohnlevLINTS = $(XNF_OBJS:%.o=$(LINTS_DIR)/%.ln) 415cff7825SmhROOTMODULE = $(ROOT_PSM_DRV_DIR)/$(MODULE) 425cff7825Smh 435cff7825Smh# 445cff7825Smh# Include common rules. 455cff7825Smh# 46843e1988Sjohnlevinclude $(UTSBASE)/i86xpv/Makefile.i86xpv 475cff7825Smh 485cff7825Smh# 495cff7825Smh# Define targets 505cff7825Smh# 515cff7825SmhALL_TARGET = $(BINARY) 525cff7825SmhLINT_TARGET = $(MODULE).lint 535cff7825SmhINSTALL_TARGET = $(BINARY) $(ROOTMODULE) 545cff7825Smh 55843e1988Sjohnlev# 56843e1988Sjohnlev# Driver depends on MAC & IP 57843e1988Sjohnlev# 58843e1988SjohnlevLDFLAGS += -dy -N misc/mac -N drv/ip 59843e1988Sjohnlev 60843e1988Sjohnlev# 61843e1988Sjohnlev# use Solaris specific code in xen public header files 62843e1988Sjohnlev# 63843e1988SjohnlevCFLAGS += -D_SOLARIS 64843e1988SjohnlevLINTFLAGS += -D_SOLARIS 65843e1988Sjohnlev 66843e1988SjohnlevLINTTAGS += -erroff=E_ASSIGN_NARROW_CONV 67843e1988SjohnlevLINTTAGS += -erroff=E_PTRDIFF_OVERFLOW 68843e1988SjohnlevLINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN 69843e1988Sjohnlev 70*b6b206fcSJohn Levon# needs work 71*b6b206fcSJohn LevonSMATCH=off 72*b6b206fcSJohn Levon 735cff7825Smh# 745cff7825Smh# Default build targets. 755cff7825Smh# 765cff7825Smh.KEEP_STATE: 775cff7825Smh 785cff7825Smhdef: $(DEF_DEPS) 795cff7825Smh 805cff7825Smhall: $(ALL_DEPS) 815cff7825Smh 825cff7825Smhclean: $(CLEAN_DEPS) 835cff7825Smh 845cff7825Smhclobber: $(CLOBBER_DEPS) 855cff7825Smh 865cff7825Smhlint: $(LINT_DEPS) 875cff7825Smh 885cff7825Smhmodlintlib: $(MODLINTLIB_DEPS) 895cff7825Smh 905cff7825Smhclean.lint: $(CLEAN_LINT_DEPS) 915cff7825Smh 925cff7825Smhinstall: $(INSTALL_DEPS) 935cff7825Smh 945cff7825Smh# 955cff7825Smh# Include common targets. 965cff7825Smh# 97843e1988Sjohnlevinclude $(UTSBASE)/i86xpv/Makefile.targ 98