examples: put app name and sources at top of makefiles
[dpdk.git] / examples / ip_pipeline / Makefile
1 # SPDX-License-Identifier: BSD-3-Clause
2 # Copyright(c) 2010-2014 Intel Corporation
3
4 # binary name
5 APP = ip_pipeline
6
7 VPATH += $(SRCDIR)/pipeline
8
9 # all source are stored in SRCS-y
10 SRCS-y := main.c
11 SRCS-y += config_parse.c
12 SRCS-y += parser.c
13 SRCS-y += config_parse_tm.c
14 SRCS-y += config_check.c
15 SRCS-y += init.c
16 SRCS-y += thread.c
17 SRCS-y += thread_fe.c
18 SRCS-y += cpu_core_map.c
19
20 SRCS-y += pipeline_common_be.c
21 SRCS-y += pipeline_common_fe.c
22 SRCS-y += pipeline_master_be.c
23 SRCS-y += pipeline_master.c
24 SRCS-y += pipeline_passthrough_be.c
25 SRCS-y += pipeline_passthrough.c
26 SRCS-y += pipeline_firewall_be.c
27 SRCS-y += pipeline_firewall.c
28 SRCS-y += pipeline_flow_classification_be.c
29 SRCS-y += pipeline_flow_classification.c
30 SRCS-y += pipeline_flow_actions_be.c
31 SRCS-y += pipeline_flow_actions.c
32 SRCS-y += pipeline_routing_be.c
33 SRCS-y += pipeline_routing.c
34
35 ifeq ($(RTE_SDK),)
36 $(error "Please define RTE_SDK environment variable")
37 endif
38
39 # Default target, can be overridden by command line or environment
40 RTE_TARGET ?= x86_64-native-linuxapp-gcc
41
42 include $(RTE_SDK)/mk/rte.vars.mk
43
44 INC += $(sort $(wildcard *.h)) $(sort $(wildcard pipeline/*.h))
45
46 SRCS-$(CONFIG_RTE_LIBRTE_PIPELINE) := $(SRCS-y)
47
48 CFLAGS += -I$(SRCDIR) -I$(SRCDIR)/pipeline
49 CFLAGS += -O3
50 CFLAGS += $(WERROR_FLAGS) -Wno-error=unused-function -Wno-error=unused-variable
51
52 include $(RTE_SDK)/mk/rte.extapp.mk