3 # Copyright (c) 2004 - 2007, Intel Corporation
4 # All rights reserved. This program and the accompanying materials
5 # are licensed and made available under the terms and conditions of the BSD License
6 # which accompanies this distribution. The full text of the license may be found at
7 # http://opensource.org/licenses/bsd-license.php
9 # THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
10 # WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
12 # Module Name: makefile
16 # This file is used to build the EFI build tools.
21 # Define our toolchain before we include the master settings file
23 TOOLCHAIN
= TOOLCHAIN_MSVC
25 !INCLUDE
$(BUILD_DIR
)\PlatformTools.env
28 # Define all the makefiles we want to call
31 MAKEFILES
= $(EDK_TOOLS_SOURCE
)\Common\Makefile \
32 $(CUSTOMIZEDCOMPRESS_MAKEFILE
) \
33 $(EDK_TOOLS_SOURCE
)\GenCRC32Section\Makefile \
34 $(EDK_TOOLS_SOURCE
)\GenSection\Makefile \
35 $(EDK_TOOLS_SOURCE
)\GenDepex\Makefile \
36 $(EDK_TOOLS_SOURCE
)\GenFfsFile\Makefile \
37 $(EDK_TOOLS_SOURCE
)\GenFvImage\Makefile \
38 $(EDK_TOOLS_SOURCE
)\GenTEImage\makefile \
39 $(EDK_TOOLS_SOURCE
)\FwImage\Makefile \
40 $(EDK_TOOLS_SOURCE
)\ProcessDsc\makefile \
41 $(EDK_TOOLS_SOURCE
)\GuidChk\makefile \
42 $(EDK_TOOLS_SOURCE
)\MakeDeps\makefile \
43 $(EDK_TOOLS_SOURCE
)\SetStamp\makefile \
44 !IF
"$(EFI_SPECIFICATION_VERSION)" >= "0x0002000A"
45 $(EDK_TOOLS_SOURCE
)\UefiVfrCompile\makefile \
46 $(EDK_TOOLS_SOURCE
)\UefiStrGather\makefile \
48 $(EDK_TOOLS_SOURCE
)\VfrCompile\makefile \
49 $(EDK_TOOLS_SOURCE
)\StrGather\makefile \
51 $(EDK_TOOLS_SOURCE
)\SplitFile\Makefile \
52 $(EDK_TOOLS_SOURCE
)\Strip\Makefile \
53 $(EDK_TOOLS_SOURCE
)\EfiCompress\Makefile \
54 $(EDK_TOOLS_SOURCE
)\EfiRom\Makefile \
55 $(EDK_TOOLS_SOURCE
)\GenAprioriFile\Makefile \
56 $(EDK_TOOLS_SOURCE
)\ModifyInf\Makefile
59 # Define default all target which calls all our makefiles. The special
60 # bang (!) tells nmake to do the command for each out-of-date dependent.
62 # Create the BIN directory, which will only exist if you pull the source tree
63 # from version control.
66 -if not exist
$(EDK_TOOLS_OUTPUT
) mkdir
$(EDK_TOOLS_OUTPUT
)
67 !$(MAKE
) -f
$? TOOLCHAIN
=$(TOOLCHAIN
) BUILD_DIR
=$(BUILD_DIR
) all
70 # Call all the tools makefiles with a clean target.
73 !$(MAKE
) -f
$? TOOLCHAIN
=$(TOOLCHAIN
) clean