• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#/*++
2#
3#  Copyright (c) 2004 - 2010, Intel Corporation. All rights reserved.<BR>
4#  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
8#
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.
11#
12#  Module Name:  makefile
13#
14#  Abstract:
15#
16#    This file is used to build the EFI build tools.
17#
18#--*/
19
20#
21# Define our toolchain before we include the master settings file
22#
23TOOLCHAIN = TOOLCHAIN_MSVC
24
25!INCLUDE $(BUILD_DIR)\PlatformTools.env
26
27#
28# Define all the makefiles we want to call
29#
30
31MAKEFILES = $(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      \
47            $(EDK_TOOLS_SOURCE)\UefiHiiPack\Makefile        \
48!ELSE
49            $(EDK_TOOLS_SOURCE)\VfrCompile\makefile         \
50            $(EDK_TOOLS_SOURCE)\StrGather\makefile          \
51            $(EDK_TOOLS_SOURCE)\HiiPack\Makefile            \
52!ENDIF
53            $(EDK_TOOLS_SOURCE)\SplitFile\Makefile          \
54            $(EDK_TOOLS_SOURCE)\Strip\Makefile              \
55            $(EDK_TOOLS_SOURCE)\EfiCompress\Makefile        \
56            $(EDK_TOOLS_SOURCE)\EfiRom\Makefile             \
57            $(EDK_TOOLS_SOURCE)\GenAprioriFile\Makefile     \
58            $(EDK_TOOLS_SOURCE)\ModifyInf\Makefile
59
60#
61# Define default all target which calls all our makefiles. The special
62# bang (!) tells nmake to do the command for each out-of-date dependent.
63#
64# Create the BIN directory, which will only exist if you pull the source tree
65# from version control.
66#
67all : $(MAKEFILES)
68  -if not exist $(EDK_TOOLS_OUTPUT) mkdir $(EDK_TOOLS_OUTPUT)
69  !$(MAKE) -f $? TOOLCHAIN=$(TOOLCHAIN) BUILD_DIR=$(BUILD_DIR) all
70
71#
72# Call all the tools makefiles with a clean target.
73#
74clean : $(MAKEFILES)
75  !$(MAKE) -f $? TOOLCHAIN=$(TOOLCHAIN) clean
76