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