1 # SPDX-License-Identifier: BSD-3-Clause
2 # Copyright(c) 2017 Intel Corporation
7 # all source are stored in SRCS-y
8 SRCS-y := flow_classify.c
10 # Build using pkg-config variables if possible
11 $(shell pkg-config --exists libdpdk)
12 ifeq ($(.SHELLSTATUS),0)
14 PC_FILE := $(shell pkg-config --path libdpdk)
15 CFLAGS += $(shell pkg-config --cflags libdpdk)
16 LDFLAGS += $(shell pkg-config --libs libdpdk)
18 CFLAGS += -DALLOW_EXPERIMENTAL_API
20 build/$(APP): $(SRCS-y) Makefile $(PC_FILE) | build
21 $(CC) $(CFLAGS) $(SRCS-y) -o $@ $(LDFLAGS)
29 rmdir --ignore-fail-on-non-empty build
34 $(error "Please define RTE_SDK environment variable")
37 # Default target, can be overridden by command line or environment
38 RTE_TARGET ?= x86_64-native-linuxapp-gcc
40 include $(RTE_SDK)/mk/rte.vars.mk
42 CFLAGS += -DALLOW_EXPERIMENTAL_API
44 CFLAGS += $(WERROR_FLAGS)
46 # workaround for a gcc bug with noreturn attribute
47 # http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12603
48 ifeq ($(CONFIG_RTE_TOOLCHAIN_GCC),y)
49 CFLAGS_main.o += -Wno-return-type
52 include $(RTE_SDK)/mk/rte.extapp.mk