examples: ignore linux apps on bsd
[dpdk.git] / examples / vhost / Makefile
index 47e054d..f45f83f 100644 (file)
@@ -38,6 +38,12 @@ 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
 
@@ -50,3 +56,5 @@ CFLAGS += $(WERROR_FLAGS)
 LDFLAGS += -lfuse
 
 include $(RTE_SDK)/mk/rte.extapp.mk
+
+endif