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 # Everything depends on EDK_SOURCE. Make sure it's defined
24 !ERROR EDK_SOURCE environmental variable not set
28 # Define our toolchain before we include the master settings file
30 TOOLCHAIN
= TOOLCHAIN_MSVC
32 !INCLUDE
$(BUILD_DIR
)\PlatformTools.env
35 # Define all the makefiles we want to call
38 MAKEFILES
= $(EDK_TOOLS_SOURCE
)\Common\Makefile \
39 $(CUSTOMIZEDCOMPRESS_MAKEFILE
) \
40 $(EDK_TOOLS_SOURCE
)\GenCRC32Section\Makefile \
41 $(EDK_TOOLS_SOURCE
)\GenSection\Makefile \
42 $(EDK_TOOLS_SOURCE
)\GenDepex\Makefile \
43 $(EDK_TOOLS_SOURCE
)\GenFfsFile\Makefile \
44 $(EDK_TOOLS_SOURCE
)\GenFvImage\Makefile \
45 $(EDK_TOOLS_SOURCE
)\FwImage\Makefile \
46 $(EDK_TOOLS_SOURCE
)\ProcessDsc\makefile \
47 $(EDK_TOOLS_SOURCE
)\GuidChk\makefile \
48 $(EDK_TOOLS_SOURCE
)\MakeDeps\makefile \
49 $(EDK_TOOLS_SOURCE
)\SetStamp\makefile \
50 $(EDK_TOOLS_SOURCE
)\VfrCompile\makefile \
51 $(EDK_TOOLS_SOURCE
)\StrGather\makefile \
52 $(EDK_TOOLS_SOURCE
)\BootsectImage\Makefile \
53 $(EDK_TOOLS_SOURCE
)\GenBootsector\Makefile \
54 $(EDK_TOOLS_SOURCE
)\GenPage\Makefile \
55 $(EDK_TOOLS_SOURCE
)\SplitFile\Makefile \
56 $(EDK_TOOLS_SOURCE
)\EfiCompress\Makefile \
57 $(EDK_TOOLS_SOURCE
)\EfildrImage\Makefile \
58 $(EDK_TOOLS_SOURCE
)\EfiRom\Makefile \
59 $(EDK_TOOLS_SOURCE
)\GenAprioriFile\Makefile \
60 $(EDK_TOOLS_SOURCE
)\ModifyInf\Makefile
65 # Define default all target which calls all our makefiles. The special
66 # bang (!) tells nmake to do the command for each out-of-date dependent.
68 # Create the BIN directory, which will only exist if you pull the source tree
69 # from version control.
72 -if not exist
$(EDK_TOOLS_OUTPUT
) mkdir
$(EDK_TOOLS_OUTPUT
)
73 !$(MAKE
) -f
$? TOOLCHAIN
=$(TOOLCHAIN
) BUILD_DIR
=$(BUILD_DIR
) all
76 # Call all the tools makefiles with a clean target.
79 !$(MAKE
) -f
$? TOOLCHAIN
=$(TOOLCHAIN
) clean