1*b82da759SHuawei Xie# BSD LICENSE 2*b82da759SHuawei Xie# 3*b82da759SHuawei Xie# Copyright(c) 2010-2014 Intel Corporation. All rights reserved. 4*b82da759SHuawei Xie# All rights reserved. 5*b82da759SHuawei Xie# 6*b82da759SHuawei Xie# Redistribution and use in source and binary forms, with or without 7*b82da759SHuawei Xie# modification, are permitted provided that the following conditions 8*b82da759SHuawei Xie# are met: 9*b82da759SHuawei Xie# 10*b82da759SHuawei Xie# * Redistributions of source code must retain the above copyright 11*b82da759SHuawei Xie# notice, this list of conditions and the following disclaimer. 12*b82da759SHuawei Xie# * Redistributions in binary form must reproduce the above copyright 13*b82da759SHuawei Xie# notice, this list of conditions and the following disclaimer in 14*b82da759SHuawei Xie# the documentation and/or other materials provided with the 15*b82da759SHuawei Xie# distribution. 16*b82da759SHuawei Xie# * Neither the name of Intel Corporation nor the names of its 17*b82da759SHuawei Xie# contributors may be used to endorse or promote products derived 18*b82da759SHuawei Xie# from this software without specific prior written permission. 19*b82da759SHuawei Xie# 20*b82da759SHuawei Xie# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 21*b82da759SHuawei Xie# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 22*b82da759SHuawei Xie# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 23*b82da759SHuawei Xie# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 24*b82da759SHuawei Xie# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 25*b82da759SHuawei Xie# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 26*b82da759SHuawei Xie# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 27*b82da759SHuawei Xie# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 28*b82da759SHuawei Xie# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 29*b82da759SHuawei Xie# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 30*b82da759SHuawei Xie# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 31*b82da759SHuawei Xie 32*b82da759SHuawei Xieifeq ($(RTE_SDK),) 33*b82da759SHuawei Xie$(error "Please define RTE_SDK environment variable") 34*b82da759SHuawei Xieendif 35*b82da759SHuawei Xie 36*b82da759SHuawei Xie# Default target, can be overriden by command line or environment 37*b82da759SHuawei XieRTE_TARGET ?= x86_64-native-linuxapp-gcc 38*b82da759SHuawei Xie 39*b82da759SHuawei Xieinclude $(RTE_SDK)/mk/rte.vars.mk 40*b82da759SHuawei Xie 41*b82da759SHuawei Xieifneq ($(CONFIG_RTE_EXEC_ENV),"linuxapp") 42*b82da759SHuawei Xie$(info This application can only operate in a linuxapp environment, \ 43*b82da759SHuawei Xieplease change the definition of the RTE_TARGET environment variable) 44*b82da759SHuawei Xieall: 45*b82da759SHuawei Xieelse 46*b82da759SHuawei Xie 47*b82da759SHuawei Xie# binary name 48*b82da759SHuawei XieAPP = vhost-switch 49*b82da759SHuawei Xie 50*b82da759SHuawei Xie# all source are stored in SRCS-y 51*b82da759SHuawei XieSRCS-y := main.c 52*b82da759SHuawei Xie 53*b82da759SHuawei XieCFLAGS += -O2 -D_FILE_OFFSET_BITS=64 54*b82da759SHuawei XieCFLAGS += $(WERROR_FLAGS) 55*b82da759SHuawei Xie 56*b82da759SHuawei Xieinclude $(RTE_SDK)/mk/rte.extapp.mk 57*b82da759SHuawei Xie 58*b82da759SHuawei Xieendif 59