From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wg0-f43.google.com (mail-wg0-f43.google.com [74.125.82.43]) by dpdk.org (Postfix) with ESMTP id D2B476939 for ; Tue, 4 Feb 2014 16:53:45 +0100 (CET) Received: by mail-wg0-f43.google.com with SMTP id y10so13107123wgg.10 for ; Tue, 04 Feb 2014 07:55:06 -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=FU3M8gu/z0t7QOAy9rH/KHLmmGValMVpzdraRJ7PEV0=; b=OonPI44QUwHJUF6i/8iZ3bhe9ieKBgUziTwvt5I91w8JXNIQdHb+qu71rGi6nyKjV/ CpgZzNNTUL7MHq6QvI2kLKrcYu2uWGo2DnKO9g3Bdo1KCXT8eUOuzBcR7T3AL5JZA3Xt snDGjcOf0Tj2V9rZHdxRWZufW9gkSqSoHecFIGLyz0OTtTDE9HM9UH/Lx6btTdYBykzA tWSf7j0+S1Nvr016npef4t0LqgSRId+kUwdv1SschXRcEwAx8i9p7hLzCQWaP5zGEST/ 5McDbCFfLBbLsMrh3wqVDbOD7XUdhzECwkNS5CFkb62aaZ/M8t9Ivudv+WGk8NvqN6qI 3/cw== X-Gm-Message-State: ALoCoQl2ieZhSFYfdvF9hxMZJEwIoeQ0j/cfuNk0v7xqqHZ7aNYH5jBFOtZ/UPeaMf5xRR+vJjcA X-Received: by 10.194.219.1 with SMTP id pk1mr9309647wjc.36.1391529306689; Tue, 04 Feb 2014 07:55:06 -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.55.05 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 04 Feb 2014 07:55:06 -0800 (PST) From: Thomas Monjalon To: dev@dpdk.org Date: Tue, 4 Feb 2014 16:54:24 +0100 Message-Id: <1391529271-24606-10-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] [virtio-net-pmd PATCH 09/16] mk: minor fixes 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:46 -0000 Fix help. Also define CC and remove RTE_CONFIG variable. Signed-off-by: Thomas Monjalon --- 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