1# SPDX-License-Identifier: BSD-3-Clause 2# Copyright(c) 2016-2017 Intel Corporation 3 4# binary name 5APP = eventdev_pipeline 6 7# all source are stored in SRCS-y 8SRCS-y := main.c 9SRCS-y += pipeline_worker_generic.c 10SRCS-y += pipeline_worker_tx.c 11 12# Build using pkg-config variables if possible 13$(shell pkg-config --exists libdpdk) 14ifeq ($(.SHELLSTATUS),0) 15 16PC_FILE := $(shell pkg-config --path libdpdk) 17CFLAGS += $(shell pkg-config --cflags libdpdk) 18LDFLAGS += $(shell pkg-config --libs libdpdk) 19 20CFLAGS += -DALLOW_EXPERIMENTAL_API 21 22build/$(APP): $(SRCS-y) Makefile $(PC_FILE) | build 23 $(CC) $(CFLAGS) $(SRCS-y) -o $@ $(LDFLAGS) 24 25build: 26 @mkdir -p $@ 27 28.PHONY: clean 29clean: 30 rm -f build/$(APP) 31 rmdir --ignore-fail-on-non-empty build 32 33else 34 35ifeq ($(RTE_SDK),) 36$(error "Please define RTE_SDK environment variable") 37endif 38 39# Default target, can be overridden by command line or environment 40RTE_TARGET ?= x86_64-native-linuxapp-gcc 41 42include $(RTE_SDK)/mk/rte.vars.mk 43 44CFLAGS += -DALLOW_EXPERIMENTAL_API 45CFLAGS += -O3 46CFLAGS += $(WERROR_FLAGS) 47 48include $(RTE_SDK)/mk/rte.extapp.mk 49 50endif 51