summaryrefslogtreecommitdiff
path: root/app/cmdline_test
diff options
context:
space:
mode:
authorDavid Marchand <david.marchand@6wind.com>2014-08-18 13:29:19 +0200
committerThomas Monjalon <thomas.monjalon@6wind.com>2014-08-26 17:52:33 +0200
commit8738b68a94d3e7541e7e418d20424163d2713ef0 (patch)
treed546a9279002af410df31e105ca405c013a72789 /app/cmdline_test
parent2bbb811998086131d7bf29760bd77c1cec71e97c (diff)
downloaddpdk-8738b68a94d3e7541e7e418d20424163d2713ef0.zip
dpdk-8738b68a94d3e7541e7e418d20424163d2713ef0.tar.gz
dpdk-8738b68a94d3e7541e7e418d20424163d2713ef0.tar.xz
app: simplify makefiles
No need to test some build option multiple times in a Makefile. Besides, such option is needed by the associated app, so move it at the top of the Makefile. Signed-off-by: David Marchand <david.marchand@6wind.com> Acked-by: Bruce Richardson <bruce.richardson@intel.com> Acked-by: Neil Horman <nhorman@tuxdriver.com>
Diffstat (limited to 'app/cmdline_test')
-rw-r--r--app/cmdline_test/Makefile8
1 files changed, 6 insertions, 2 deletions
diff --git a/app/cmdline_test/Makefile b/app/cmdline_test/Makefile
index 11c3aba..e9eafd2 100644
--- a/app/cmdline_test/Makefile
+++ b/app/cmdline_test/Makefile
@@ -31,6 +31,8 @@
include $(RTE_SDK)/mk/rte.vars.mk
+ifeq ($(CONFIG_RTE_LIBRTE_CMDLINE),y)
+
#
# library name
#
@@ -39,10 +41,12 @@ APP = cmdline_test
#
# all sources are stored in SRCS-y
#
-SRCS-$(CONFIG_RTE_LIBRTE_CMDLINE) += cmdline_test.c
-SRCS-$(CONFIG_RTE_LIBRTE_CMDLINE) += commands.c
+SRCS-y += cmdline_test.c
+SRCS-y += commands.c
CFLAGS += -O3
CFLAGS += $(WERROR_FLAGS)
include $(RTE_SDK)/mk/rte.app.mk
+
+endif