]> git.proxmox.com Git - mirror_edk2.git/blob - EdkCompatibilityPkg/Sample/Tools/Source/Makefile
1) Sync EdkCompatibilityPkg with EDK 1.04. The changes includes:
[mirror_edk2.git] / EdkCompatibilityPkg / Sample / Tools / Source / Makefile
1 #/*++
2 #
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
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 #
23 TOOLCHAIN = TOOLCHAIN_MSVC
24
25 !INCLUDE $(BUILD_DIR)\PlatformTools.env
26
27 #
28 # Define all the makefiles we want to call
29 #
30
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 \
47 !ELSE
48 $(EDK_TOOLS_SOURCE)\VfrCompile\makefile \
49 $(EDK_TOOLS_SOURCE)\StrGather\makefile \
50 !ENDIF
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
57
58 #
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.
61 #
62 # Create the BIN directory, which will only exist if you pull the source tree
63 # from version control.
64 #
65 all : $(MAKEFILES)
66 -if not exist $(EDK_TOOLS_OUTPUT) mkdir $(EDK_TOOLS_OUTPUT)
67 !$(MAKE) -f $? TOOLCHAIN=$(TOOLCHAIN) BUILD_DIR=$(BUILD_DIR) all
68
69 #
70 # Call all the tools makefiles with a clean target.
71 #
72 clean : $(MAKEFILES)
73 !$(MAKE) -f $? TOOLCHAIN=$(TOOLCHAIN) clean