Add help for quick tips. Also define CC and remove RTE_CONFIG variable. Signed-off-by: Thomas Monjalon <thomas.monjalon at 6wind.com> --- pmd/Makefile | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-)
diff --git a/pmd/Makefile b/pmd/Makefile index 994851c..d8eff33 100644 --- a/pmd/Makefile +++ b/pmd/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,24 +29,33 @@ # ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED # OF THE POSSIBILITY OF SUCH DAMAGE. +SOLIB = librte_pmd_vmxnet3.so + +CC = $(CROSS)gcc override CPPFLAGS += -Wall -Wextra -Werror override CFLAGS += -fPIC override LDFLAGS += -shared KMOD_INCLUDE ?= ../kmod -RTE_CONFIG = $(RTE_INCLUDE)/rte_config.h -SOLIB = librte_pmd_vmxnet3.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 \ -I$(KMOD_INCLUDE) -I$(KMOD_INCLUDE)/shared \ -o $(SOLIB) vmxnet3.c clean : rm -f $(SOLIB) -.PHONY : all clean +help : + @ echo 'rules:' + @ echo ' all (default)' + @ echo ' clean' + @ echo 'build variables:' + @ echo ' RTE_INCLUDE (e.g. ../dpdk/build/include),' + @ echo ' CPPFLAGS, CFLAGS, LDFLAGS' + +.PHONY : all clean help -- 1.7.10.4