1*a9643ea8Slogwang# BSD LICENSE 2*a9643ea8Slogwang# 3*a9643ea8Slogwang# Copyright(c) 2010-2014 Intel Corporation. All rights reserved. 4*a9643ea8Slogwang# All rights reserved. 5*a9643ea8Slogwang# 6*a9643ea8Slogwang# Redistribution and use in source and binary forms, with or without 7*a9643ea8Slogwang# modification, are permitted provided that the following conditions 8*a9643ea8Slogwang# are met: 9*a9643ea8Slogwang# 10*a9643ea8Slogwang# * Redistributions of source code must retain the above copyright 11*a9643ea8Slogwang# notice, this list of conditions and the following disclaimer. 12*a9643ea8Slogwang# * Redistributions in binary form must reproduce the above copyright 13*a9643ea8Slogwang# notice, this list of conditions and the following disclaimer in 14*a9643ea8Slogwang# the documentation and/or other materials provided with the 15*a9643ea8Slogwang# distribution. 16*a9643ea8Slogwang# * Neither the name of Intel Corporation nor the names of its 17*a9643ea8Slogwang# contributors may be used to endorse or promote products derived 18*a9643ea8Slogwang# from this software without specific prior written permission. 19*a9643ea8Slogwang# 20*a9643ea8Slogwang# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 21*a9643ea8Slogwang# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 22*a9643ea8Slogwang# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 23*a9643ea8Slogwang# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 24*a9643ea8Slogwang# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 25*a9643ea8Slogwang# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 26*a9643ea8Slogwang# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 27*a9643ea8Slogwang# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 28*a9643ea8Slogwang# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 29*a9643ea8Slogwang# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 30*a9643ea8Slogwang# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 31*a9643ea8Slogwang 32*a9643ea8Slogwangifeq ($(RTE_SDK),) 33*a9643ea8Slogwang$(error "Please define RTE_SDK environment variable") 34*a9643ea8Slogwangendif 35*a9643ea8Slogwang 36*a9643ea8Slogwang# Default target, can be overridden by command line or environment 37*a9643ea8SlogwangRTE_TARGET ?= x86_64-native-linuxapp-gcc 38*a9643ea8Slogwang 39*a9643ea8SlogwangDIRS-(CONFIG_RTE_LIBRTE_PIPELINE) += pipeline 40*a9643ea8Slogwang 41*a9643ea8Slogwanginclude $(RTE_SDK)/mk/rte.vars.mk 42*a9643ea8Slogwang 43*a9643ea8Slogwang# binary name 44*a9643ea8SlogwangAPP = ip_pipeline 45*a9643ea8Slogwang 46*a9643ea8SlogwangVPATH += $(SRCDIR)/pipeline 47*a9643ea8Slogwang 48*a9643ea8SlogwangINC += $(wildcard *.h) $(wildcard pipeline/*.h) 49*a9643ea8Slogwang 50*a9643ea8Slogwang# all source are stored in SRCS-y 51*a9643ea8SlogwangSRCS-$(CONFIG_RTE_LIBRTE_PIPELINE) := main.c 52*a9643ea8SlogwangSRCS-$(CONFIG_RTE_LIBRTE_PIPELINE) += config_parse.c 53*a9643ea8SlogwangSRCS-$(CONFIG_RTE_LIBRTE_PIPELINE) += parser.c 54*a9643ea8SlogwangSRCS-$(CONFIG_RTE_LIBRTE_PIPELINE) += config_parse_tm.c 55*a9643ea8SlogwangSRCS-$(CONFIG_RTE_LIBRTE_PIPELINE) += config_check.c 56*a9643ea8SlogwangSRCS-$(CONFIG_RTE_LIBRTE_PIPELINE) += init.c 57*a9643ea8SlogwangSRCS-$(CONFIG_RTE_LIBRTE_PIPELINE) += thread.c 58*a9643ea8SlogwangSRCS-$(CONFIG_RTE_LIBRTE_PIPELINE) += thread_fe.c 59*a9643ea8SlogwangSRCS-$(CONFIG_RTE_LIBRTE_PIPELINE) += cpu_core_map.c 60*a9643ea8Slogwang 61*a9643ea8SlogwangSRCS-$(CONFIG_RTE_LIBRTE_PIPELINE) += pipeline_common_be.c 62*a9643ea8SlogwangSRCS-$(CONFIG_RTE_LIBRTE_PIPELINE) += pipeline_common_fe.c 63*a9643ea8SlogwangSRCS-$(CONFIG_RTE_LIBRTE_PIPELINE) += pipeline_master_be.c 64*a9643ea8SlogwangSRCS-$(CONFIG_RTE_LIBRTE_PIPELINE) += pipeline_master.c 65*a9643ea8SlogwangSRCS-$(CONFIG_RTE_LIBRTE_PIPELINE) += pipeline_passthrough_be.c 66*a9643ea8SlogwangSRCS-$(CONFIG_RTE_LIBRTE_PIPELINE) += pipeline_passthrough.c 67*a9643ea8SlogwangSRCS-$(CONFIG_RTE_LIBRTE_PIPELINE) += pipeline_firewall_be.c 68*a9643ea8SlogwangSRCS-$(CONFIG_RTE_LIBRTE_PIPELINE) += pipeline_firewall.c 69*a9643ea8SlogwangSRCS-$(CONFIG_RTE_LIBRTE_PIPELINE) += pipeline_flow_classification_be.c 70*a9643ea8SlogwangSRCS-$(CONFIG_RTE_LIBRTE_PIPELINE) += pipeline_flow_classification.c 71*a9643ea8SlogwangSRCS-$(CONFIG_RTE_LIBRTE_PIPELINE) += pipeline_flow_actions_be.c 72*a9643ea8SlogwangSRCS-$(CONFIG_RTE_LIBRTE_PIPELINE) += pipeline_flow_actions.c 73*a9643ea8SlogwangSRCS-$(CONFIG_RTE_LIBRTE_PIPELINE) += pipeline_routing_be.c 74*a9643ea8SlogwangSRCS-$(CONFIG_RTE_LIBRTE_PIPELINE) += pipeline_routing.c 75*a9643ea8Slogwang 76*a9643ea8SlogwangCFLAGS += -I$(SRCDIR) -I$(SRCDIR)/pipeline 77*a9643ea8SlogwangCFLAGS += -O3 78*a9643ea8SlogwangCFLAGS += $(WERROR_FLAGS) -Wno-error=unused-function -Wno-error=unused-variable 79*a9643ea8Slogwang 80*a9643ea8Slogwanginclude $(RTE_SDK)/mk/rte.extapp.mk 81