[dpdk-dev] [virtio-net-pmd PATCH 09/16] mk: minor fixes

Thomas Monjalon thomas.monjalon at 6wind.com
Tue Feb 4 16:54:24 CET 2014


Fix help.
Also define CC and remove RTE_CONFIG variable.

Signed-off-by: Thomas Monjalon <thomas.monjalon at 6wind.com>
---
 Makefile |   17 +++++++++--------
 1 file changed, 9 insertions(+), 8 deletions(-)

diff --git a/Makefile b/Makefile
index d90f23e..4b51057 100644
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,4 @@
-# Copyright 2013 6WIND S.A.
+# Copyright 2013-2014 6WIND S.A.
 #
 # Redistribution and use in source and binary forms, with or without
 # modification, are permitted provided that the following conditions
@@ -29,19 +29,19 @@
 # ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
 # OF THE POSSIBILITY OF SUCH DAMAGE.
 
+SOLIB = librte_pmd_virtio.so
+
+CC = $(CROSS)gcc
 override CPPFLAGS += -Wall -Wextra -Werror
 override CFLAGS   += -fPIC
 override LDFLAGS  += -shared
 
-RTE_CONFIG = $(RTE_INCLUDE)/rte_config.h
-SOLIB = librte_pmd_virtio.so
-
 all :
 ifeq '$(RTE_INCLUDE)' ''
 	@ echo 'ERROR: RTE_INCLUDE is not set' && false
 endif
-	$(CROSS)gcc $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) \
-		-I$(RTE_INCLUDE) -include $(RTE_CONFIG) \
+	$(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) \
+		-I$(RTE_INCLUDE) -include $(RTE_INCLUDE)/rte_config.h \
 		-o $(SOLIB) virtio_user.c
 
 clean :
@@ -52,6 +52,7 @@ help :
 	@ echo '    all (default)'
 	@ echo '    clean'
 	@ echo 'variables:'
-	@ echo '    RTE_INCLUDE (e.g. ../dpdk/build/include)'
+	@ echo '    RTE_INCLUDE (e.g. ../dpdk/build/include),'
+	@ echo '    CPPFLAGS, CFLAGS, LDFLAGS'
 
-.PHONY : all clean
+.PHONY : all clean help
-- 
1.7.10.4



More information about the dev mailing list