xref: /dpdk/examples/ip_pipeline/Makefile (revision efcef73d)
177a33467SCristian Dumitrescu#   BSD LICENSE
277a33467SCristian Dumitrescu#
377a33467SCristian Dumitrescu#   Copyright(c) 2010-2014 Intel Corporation. All rights reserved.
477a33467SCristian Dumitrescu#   All rights reserved.
577a33467SCristian Dumitrescu#
677a33467SCristian Dumitrescu#   Redistribution and use in source and binary forms, with or without
777a33467SCristian Dumitrescu#   modification, are permitted provided that the following conditions
877a33467SCristian Dumitrescu#   are met:
977a33467SCristian Dumitrescu#
1077a33467SCristian Dumitrescu#     * Redistributions of source code must retain the above copyright
1177a33467SCristian Dumitrescu#       notice, this list of conditions and the following disclaimer.
1277a33467SCristian Dumitrescu#     * Redistributions in binary form must reproduce the above copyright
1377a33467SCristian Dumitrescu#       notice, this list of conditions and the following disclaimer in
1477a33467SCristian Dumitrescu#       the documentation and/or other materials provided with the
1577a33467SCristian Dumitrescu#       distribution.
1677a33467SCristian Dumitrescu#     * Neither the name of Intel Corporation nor the names of its
1777a33467SCristian Dumitrescu#       contributors may be used to endorse or promote products derived
1877a33467SCristian Dumitrescu#       from this software without specific prior written permission.
1977a33467SCristian Dumitrescu#
2077a33467SCristian Dumitrescu#   THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
2177a33467SCristian Dumitrescu#   "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
2277a33467SCristian Dumitrescu#   LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
2377a33467SCristian Dumitrescu#   A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
2477a33467SCristian Dumitrescu#   OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
2577a33467SCristian Dumitrescu#   SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
2677a33467SCristian Dumitrescu#   LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
2777a33467SCristian Dumitrescu#   DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
2877a33467SCristian Dumitrescu#   THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
2977a33467SCristian Dumitrescu#   (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
3077a33467SCristian Dumitrescu#   OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
3177a33467SCristian Dumitrescu
3277a33467SCristian Dumitrescuifeq ($(RTE_SDK),)
3377a33467SCristian Dumitrescu$(error "Please define RTE_SDK environment variable")
3477a33467SCristian Dumitrescuendif
3577a33467SCristian Dumitrescu
3677a33467SCristian Dumitrescu# Default target, can be overridden by command line or environment
37*efcef73dSPablo de LaraRTE_TARGET ?= x86_64-native-linuxapp-gcc
3877a33467SCristian Dumitrescu
3977a33467SCristian Dumitrescuinclude $(RTE_SDK)/mk/rte.vars.mk
4077a33467SCristian Dumitrescu
4177a33467SCristian Dumitrescu# binary name
4277a33467SCristian DumitrescuAPP = ip_pipeline
4377a33467SCristian Dumitrescu
4477a33467SCristian Dumitrescu# all source are stored in SRCS-y
4577a33467SCristian DumitrescuSRCS-$(CONFIG_RTE_LIBRTE_PIPELINE) := main.c
4677a33467SCristian DumitrescuSRCS-$(CONFIG_RTE_LIBRTE_PIPELINE) += config.c
4777a33467SCristian DumitrescuSRCS-$(CONFIG_RTE_LIBRTE_PIPELINE) += init.c
4877a33467SCristian DumitrescuSRCS-$(CONFIG_RTE_LIBRTE_PIPELINE) += cmdline.c
4977a33467SCristian DumitrescuSRCS-$(CONFIG_RTE_LIBRTE_PIPELINE) += pipeline_rx.c
5077a33467SCristian DumitrescuSRCS-$(CONFIG_RTE_LIBRTE_PIPELINE) += pipeline_tx.c
5177a33467SCristian DumitrescuSRCS-$(CONFIG_RTE_LIBRTE_PIPELINE) += pipeline_flow_classification.c
5277a33467SCristian DumitrescuSRCS-$(CONFIG_RTE_LIBRTE_PIPELINE) += pipeline_routing.c
5377a33467SCristian DumitrescuSRCS-$(CONFIG_RTE_LIBRTE_PIPELINE) += pipeline_passthrough.c
5477a33467SCristian Dumitrescu
5577a33467SCristian Dumitrescuifeq ($(CONFIG_RTE_MBUF_SCATTER_GATHER),y)
5677a33467SCristian DumitrescuSRCS-$(CONFIG_RTE_LIBRTE_PIPELINE) += pipeline_ipv4_frag.c
5777a33467SCristian DumitrescuSRCS-$(CONFIG_RTE_LIBRTE_PIPELINE) += pipeline_ipv4_ras.c
5877a33467SCristian Dumitrescuendif
5977a33467SCristian Dumitrescu
6077a33467SCristian Dumitrescuifeq ($(CONFIG_RTE_LIBRTE_ACL),y)
6177a33467SCristian DumitrescuSRCS-$(CONFIG_RTE_LIBRTE_PIPELINE) += pipeline_firewall.c
6277a33467SCristian Dumitrescuendif
6377a33467SCristian Dumitrescu
6477a33467SCristian DumitrescuCFLAGS += -O3
6577a33467SCristian DumitrescuCFLAGS += $(WERROR_FLAGS)
6677a33467SCristian Dumitrescu
6777a33467SCristian Dumitrescuinclude $(RTE_SDK)/mk/rte.extapp.mk
68