X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=examples%2Fvhost%2FMakefile;h=add9f27bb829ebf4a563a0934f478c02cc3e82a2;hb=2193b7467f7ae10c205f51c3b494cba776b3b6d1;hp=47e054dd4666f0e3fee75a289d6cbf9bdfcc3c5f;hpb=3031749c2df04a63cdcef186dcce3781e61436e8;p=dpdk.git diff --git a/examples/vhost/Makefile b/examples/vhost/Makefile index 47e054dd46..add9f27bb8 100644 --- a/examples/vhost/Makefile +++ b/examples/vhost/Makefile @@ -33,20 +33,27 @@ ifeq ($(RTE_SDK),) $(error "Please define RTE_SDK environment variable") endif -# Default target, can be overriden by command line or environment +# Default target, can be overridden by command line or environment 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: +else + # binary name APP = vhost-switch # all source are stored in SRCS-y -#SRCS-y := cusedrv.c loopback-userspace.c -SRCS-y := main.c virtio-net.c vhost-net-cdev.c +SRCS-y := main.c virtio_net.c -CFLAGS += -O2 -I/usr/local/include -D_FILE_OFFSET_BITS=64 -Wno-unused-parameter +CFLAGS += -O2 -D_FILE_OFFSET_BITS=64 CFLAGS += $(WERROR_FLAGS) -LDFLAGS += -lfuse +CFLAGS += -D_GNU_SOURCE include $(RTE_SDK)/mk/rte.extapp.mk + +endif