X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=examples%2Fip_pipeline%2FMakefile;h=11d2b35da9f2b3114402577d3542d096c40fb76e;hb=a66a83744667f31ee97e18eefa90105c462ed81b;hp=0f6bb786e4d0093824c18eae219fb49ade851eb5;hpb=2f74ae28e23f441c6f51241b4f3ea1c9b8b15812;p=dpdk.git diff --git a/examples/ip_pipeline/Makefile b/examples/ip_pipeline/Makefile index 0f6bb786e4..11d2b35da9 100644 --- a/examples/ip_pipeline/Makefile +++ b/examples/ip_pipeline/Makefile @@ -5,16 +5,19 @@ APP = ip_pipeline # all source are stored in SRCS-y -SRCS-y := cli.c +SRCS-y := action.c +SRCS-y += cli.c SRCS-y += conn.c +SRCS-y += kni.c SRCS-y += link.c SRCS-y += main.c SRCS-y += mempool.c SRCS-y += parser.c +SRCS-y += pipeline.c SRCS-y += swq.c SRCS-y += tap.c +SRCS-y += thread.c SRCS-y += tmgr.c -#SRCS-y += thread.c # Build using pkg-config variables if possible $(shell pkg-config --exists libdpdk) @@ -64,10 +67,18 @@ RTE_TARGET ?= x86_64-native-linuxapp-gcc include $(RTE_SDK)/mk/rte.vars.mk +ifneq ($(CONFIG_RTE_EXEC_ENV),"linuxapp") +$(info This application can only operate in a linuxapp environment, \ +please change the definition of the RTE_TARGET environment variable) +all: +clean: +else + INC += $(sort $(wildcard *.h)) SRCS-$(CONFIG_RTE_LIBRTE_PIPELINE) := $(SRCS-y) +CFLAGS += -DALLOW_EXPERIMENTAL_API CFLAGS += -I$(SRCDIR) CFLAGS += -O3 CFLAGS += $(WERROR_FLAGS) @@ -75,3 +86,4 @@ CFLAGS += $(WERROR_FLAGS) include $(RTE_SDK)/mk/rte.extapp.mk endif +endif