]> git.proxmox.com Git - mirror_edk2.git/blob - EdkCompatibilityPkg/Sample/Tools/Source/Makefile
Add in the 1st version of ECP.
[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 # Everything depends on EDK_SOURCE. Make sure it's defined
22 #
23 !IFNDEF EDK_SOURCE
24 !ERROR EDK_SOURCE environmental variable not set
25 !ENDIF
26
27 #
28 # Define our toolchain before we include the master settings file
29 #
30 TOOLCHAIN = TOOLCHAIN_MSVC
31
32 !INCLUDE $(BUILD_DIR)\PlatformTools.env
33
34 #
35 # Define all the makefiles we want to call
36 #
37
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
61
62
63
64 #
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.
67 #
68 # Create the BIN directory, which will only exist if you pull the source tree
69 # from version control.
70 #
71 all : $(MAKEFILES)
72 -if not exist $(EDK_TOOLS_OUTPUT) mkdir $(EDK_TOOLS_OUTPUT)
73 !$(MAKE) -f $? TOOLCHAIN=$(TOOLCHAIN) BUILD_DIR=$(BUILD_DIR) all
74
75 #
76 # Call all the tools makefiles with a clean target.
77 #
78 clean : $(MAKEFILES)
79 !$(MAKE) -f $? TOOLCHAIN=$(TOOLCHAIN) clean