From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: mx.groups.io; dkim=missing; spf=fail (domain: intel.com, ip: , mailfrom: shenglei.zhang@intel.com) Received: from mga01.intel.com (mga01.intel.com []) by groups.io with SMTP; Thu, 20 Jun 2019 18:27:00 -0700 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga101.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 20 Jun 2019 18:27:00 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.63,398,1557212400"; d="scan'208";a="358723202" Received: from shenglei-dev.ccr.corp.intel.com ([10.239.158.52]) by fmsmga005.fm.intel.com with ESMTP; 20 Jun 2019 18:26:59 -0700 From: "Zhang, Shenglei" To: devel@edk2.groups.io Cc: Bob Feng , Liming Gao Subject: [edk2-platform patch 4/6] Platform\Tools: Add top level Makefile and GNUMakefile Date: Fri, 21 Jun 2019 09:26:41 +0800 Message-Id: <20190621012643.9352-5-shenglei.zhang@intel.com> X-Mailer: git-send-email 2.18.0.windows.1 In-Reply-To: <20190621012643.9352-1-shenglei.zhang@intel.com> References: <20190621012643.9352-1-shenglei.zhang@intel.com> Add FMMT, BfmLib and FCE into Makefile and GNUMakefile. Cc: Bob Feng Cc: Liming Gao Signed-off-by: Shenglei Zhang --- Platform/Intel/Tools/GNUmakefile | 30 +++++++++++++++++++++++++++++ Platform/Intel/Tools/Makefile | 33 ++++++++++++++++++++++++++++++++ 2 files changed, 63 insertions(+) create mode 100644 Platform/Intel/Tools/GNUmakefile create mode 100644 Platform/Intel/Tools/Makefile diff --git a/Platform/Intel/Tools/GNUmakefile b/Platform/Intel/Tools/GNUmakefile new file mode 100644 index 0000000000..195b72d9af --- /dev/null +++ b/Platform/Intel/Tools/GNUmakefile @@ -0,0 +1,30 @@ +##@file +# GNUmakefile for building C utilities. +# +# Copyright (c) 2019, Intel Corporation. All rights reserved.
+# SPDX-License-Identifier: BSD-2-Clause-Patent +# +## + +MAKEROOT = $(EDK_TOOLS_PATH)/Source/C + +APPLICATIONS = \ + BfmLib \ + FCE \ + FMMT \ + +SUBDIRS := $(APPLICATIONS) + +$(APPLICATIONS): $(MAKEROOT)/bin + +.PHONY: subdirs $(SUBDIRS) +subdirs: $(SUBDIRS) +$(SUBDIRS): + $(MAKE) -C $@ + +.PHONY: $(patsubst %,%-clean,$(sort $(SUBDIRS))) +$(patsubst %,%-clean,$(sort $(SUBDIRS))): + -$(MAKE) -C $(@:-clean=) clean + +clean: $(patsubst %,%-clean,$(sort $(SUBDIRS))) + diff --git a/Platform/Intel/Tools/Makefile b/Platform/Intel/Tools/Makefile new file mode 100644 index 0000000000..3472b0e6f0 --- /dev/null +++ b/Platform/Intel/Tools/Makefile @@ -0,0 +1,33 @@ +##@file +# makefile for building C utilities. +# +# Copyright (c) 2019, Intel Corporation. All rights reserved.
+# SPDX-License-Identifier: BSD-2-Clause-Patent +# +## + +!INCLUDE $(EDK_TOOLS_PATH)\Source\C\Makefiles\ms.common + +APPLICATIONS = \ + BfmLib \ + FCE\ + FMMT\ + +all: $(APPLICATIONS) + @echo. + @echo ###################### + @echo # Build executables + @echo ###################### + @if not exist $(BIN_PATH) mkdir $(BIN_PATH) + @$(EDK_TOOLS_PATH)\Source\C\Makefiles\NmakeSubdirs.bat all $** + +.PHONY: clean +clean: $(APPLICATIONS) + @$(EDK_TOOLS_PATH)\Source\C\Makefiles\NmakeSubdirs.bat clean $** + +.PHONY: cleanall +cleanall: $(APPLICATIONS) + @$(EDK_TOOLS_PATH)\Source\C\Makefiles\NmakeSubdirs.bat cleanall $** + +!INCLUDE $(EDK_TOOLS_PATH)\Source\C\Makefiles\ms.rule + -- 2.18.0.windows.1