Add FMMT, BfmLib and FCE into Makefile and GNUMakefile. Cc: Bob Feng <bob.c.f...@intel.com> Cc: Liming Gao <liming....@intel.com> Signed-off-by: Shenglei Zhang <shenglei.zh...@intel.com> --- 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.<BR> +# 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.<BR> +# 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 -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#42672): https://edk2.groups.io/g/devel/message/42672 Mute This Topic: https://groups.io/mt/32154337/21656 Group Owner: devel+ow...@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-