From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-we0-f181.google.com (mail-we0-f181.google.com [74.125.82.181]) by dpdk.org (Postfix) with ESMTP id 1F21B231C for ; Tue, 4 Feb 2014 16:53:35 +0100 (CET) Received: by mail-we0-f181.google.com with SMTP id w61so4379737wes.12 for ; Tue, 04 Feb 2014 07:54:56 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references; bh=SZHrdh1FSIKlDxmfrTZYGhUwLwHzokKBqKUd5P6jXaw=; b=LZg7nhsp/98O5BhbVmzEZ0Mlo0seD9avjGqicqXbb+fWmVAobgfH7F732ZLIB9zAiA SjGhWZx39cQVR1OlBX4PS2qcGfn/q8daDG8rAtUOeITaYje8aADu3IHT9t4Q/J01Um3N qlLv5B+6VQf9cx0GTrYnM6LjkFzyR8Pz7fTY4S1kAQNyJFTyNEzJ5bXCCCIxzZh5odiz CP8KusT11Pi17a7SzPjMSwzUu5DnUhVD6j7Z+GmapH1Kj3hDPfO+287qErpyrE7KNhJ8 hz8/TvuIRRLsIgc/MN2AFrHIsJaoHSQ6PVQtvc4W9YmdmXD3g83tE58tjyyeNq1ulK+W xQRQ== X-Gm-Message-State: ALoCoQmS+PDSIEyS3gesRiLs+lbArwdvwK4wmBCkcriLyps8O40KQ6fJMeLkta0qUfL2RqaqgZ8Q X-Received: by 10.180.77.129 with SMTP id s1mr13178574wiw.56.1391529295932; Tue, 04 Feb 2014 07:54:55 -0800 (PST) Received: from angus.dev.6wind.com (6wind.net2.nerim.net. [213.41.180.237]) by mx.google.com with ESMTPSA id q2sm53639203wjq.0.2014.02.04.07.54.54 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 04 Feb 2014 07:54:55 -0800 (PST) From: Thomas Monjalon To: dev@dpdk.org Date: Tue, 4 Feb 2014 16:54:19 +0100 Message-Id: <1391529271-24606-5-git-send-email-thomas.monjalon@6wind.com> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1391529271-24606-1-git-send-email-thomas.monjalon@6wind.com> References: <1391529271-24606-1-git-send-email-thomas.monjalon@6wind.com> Subject: [dpdk-dev] [vmxnet3-usermap PATCH 04/16] pmd: add make help X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 04 Feb 2014 15:53:35 -0000 Add help for quick tips. Also define CC and remove RTE_CONFIG variable. Signed-off-by: Thomas Monjalon --- 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