git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix typos using codespell utility
[dpdk.git]
/
examples
/
netmap_compat
/
bridge
/
Makefile
diff --git
a/examples/netmap_compat/bridge/Makefile
b/examples/netmap_compat/bridge/Makefile
index
13eb229
..
ce38a34
100644
(file)
--- a/
examples/netmap_compat/bridge/Makefile
+++ b/
examples/netmap_compat/bridge/Makefile
@@
-33,11
+33,18
@@
ifeq ($(RTE_SDK),)
$(error "Please define the RTE_SDK environment variable")
endif
$(error "Please define the RTE_SDK environment variable")
endif
-# Default target, can be overriden by command line or environment
+# Default target, can be overrid
d
en by command line or environment
RTE_TARGET ?= x86_64-native-linuxapp-gcc
include $(RTE_SDK)/mk/rte.vars.mk
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
+
# binary name
APP = bridge
# binary name
APP = bridge
@@
-52,3
+59,5
@@
CFLAGS += -O3 -I$(SRCDIR)/../lib -I$(SRCDIR)/../netmap
CFLAGS += $(WERROR_FLAGS)
include $(RTE_SDK)/mk/rte.extapp.mk
CFLAGS += $(WERROR_FLAGS)
include $(RTE_SDK)/mk/rte.extapp.mk
+
+endif