xref: /dpdk/examples/ip_pipeline/Makefile (revision eb32fe7c)
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
37efcef73dSPablo 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
467f64b9c0SPawel WodkowskiSRCS-$(CONFIG_RTE_LIBRTE_PIPELINE) += config_parse.c
477f64b9c0SPawel WodkowskiSRCS-$(CONFIG_RTE_LIBRTE_PIPELINE) += config_parse_tm.c
48f505f045SJasvinder SinghSRCS-$(CONFIG_RTE_LIBRTE_PIPELINE) += config_check.c
49*eb32fe7cSMaciej GajdzicaSRCS-$(CONFIG_RTE_LIBRTE_PIPELINE) += init.c
507f64b9c0SPawel WodkowskiSRCS-$(CONFIG_RTE_LIBRTE_PIPELINE) += cpu_core_map.c
5177a33467SCristian Dumitrescu
5277a33467SCristian DumitrescuCFLAGS += -O3
5377a33467SCristian DumitrescuCFLAGS += $(WERROR_FLAGS)
5477a33467SCristian Dumitrescu
5577a33467SCristian Dumitrescuinclude $(RTE_SDK)/mk/rte.extapp.mk
56