From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wi0-f176.google.com (mail-wi0-f176.google.com [209.85.212.176]) by dpdk.org (Postfix) with ESMTP id 266F1AFD7 for ; Fri, 25 Apr 2014 14:01:01 +0200 (CEST) Received: by mail-wi0-f176.google.com with SMTP id r20so2540761wiv.9 for ; Fri, 25 Apr 2014 05:01:03 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=8zrr4wNOUpTF1u3jthlQPWxS3BUyYIBxU14WdSTEZjo=; b=SmykECzcXoGAhW6HJxM3OSxRE/pl/iABEIgKNC+kxPeNJ5KI6qgadWJs9vXdTY2pka 2T0Uqqn1+LwilPbHacaRICoVktJ0VoKoGgnpJ70SOzo9jPYbfNzrkkD+d2aPL0ORXjNt HIzsCWTIilTjtQcmloyq5PlsDUKjyqDoZhoL+1dshY0LoHek/Yl2JAlWcTkl1p/1hpE4 8Y6iRFym7uOKCcSlclJuAJSTmq1foDGDDHwWmogPdxGC5BQ78dfIgcTfZMOvZCTpRwj9 9W6ZlyDIaN63Vd3Ok8LMUMNvU9PZZaRiw+0UNidoOYsm0ni0H+nzWP7vZgX3WO6JWJ4c hWHw== X-Gm-Message-State: ALoCoQlVch7qkg7R8BsWHlnsYZXwSjVijim8yb2fXYC34Qf9b6zQbHUDsk7Y7pJQWI4KqKwOGckg X-Received: by 10.194.59.43 with SMTP id w11mr1236874wjq.65.1398427263900; Fri, 25 Apr 2014 05:01:03 -0700 (PDT) Received: from glumotte.dev.6wind.com (6wind.net2.nerim.net. [213.41.180.237]) by mx.google.com with ESMTPSA id nb8sm5460990wic.18.2014.04.25.05.01.01 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 25 Apr 2014 05:01:01 -0700 (PDT) From: Olivier Matz To: dev@dpdk.org Date: Fri, 25 Apr 2014 14:00:45 +0200 Message-Id: <1398427249-15418-2-git-send-email-olivier.matz@6wind.com> X-Mailer: git-send-email 1.9.2 In-Reply-To: <1398427249-15418-1-git-send-email-olivier.matz@6wind.com> References: <1398427249-15418-1-git-send-email-olivier.matz@6wind.com> Subject: [dpdk-dev] [PATCH 1/5] mk: introduce rte.extsubdir.mk 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: Fri, 25 Apr 2014 12:01:01 -0000 This makefile can be included by a project that needs to build several applications or libraries that are located in different directories. Signed-off-by: Olivier Matz --- mk/rte.extsubdir.mk | 49 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 mk/rte.extsubdir.mk diff --git a/mk/rte.extsubdir.mk b/mk/rte.extsubdir.mk new file mode 100644 index 0000000..97f4baf --- /dev/null +++ b/mk/rte.extsubdir.mk @@ -0,0 +1,49 @@ +# BSD LICENSE +# +# Copyright(c) 2014 6WIND S.A. +# +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions +# are met: +# +# * Redistributions of source code must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# * Redistributions in binary form must reproduce the above copyright +# notice, this list of conditions and the following disclaimer in +# the documentation and/or other materials provided with the +# distribution. +# * Neither the name of 6WIND S.A. nor the names of its +# contributors may be used to endorse or promote products derived +# from this software without specific prior written permission. +# +# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +MAKEFLAGS += --no-print-directory + +# name of build directory in each example directory +O ?= $(RTE_TARGET) + +.PHONY: all +all: $(DIRS-y) + +.PHONY: clean +clean: $(DIRS-y) + +.PHONY: $(DIRS-y) +$(DIRS-y): + @echo "== $@" + $(Q)$(MAKE) -C $(@) \ + M=$(CURDIR)/$(@)/Makefile \ + O=$(CURDIR)/$(@)/$(O) \ + S=$(CURDIR)/$(@) \ + $(filter-out $(DIRS-y),$(MAKECMDGOALS)) -- 1.9.2