]> git.proxmox.com Git - mirror_edk2.git/blame - BaseTools/Source/C/Makefile
This patch is going to:
[mirror_edk2.git] / BaseTools / Source / C / Makefile
CommitLineData
c69f724d 1## @file\r
2# Windows makefile for C tools build.\r
3#\r
64b2609f 4# Copyright (c) 2009 - 2012, Intel Corporation. All rights reserved.<BR>\r
40d841f6 5# This program and the accompanying materials\r
c69f724d 6# are licensed and made available under the terms and conditions of the BSD License\r
7# which accompanies this distribution. The full text of the license may be found at\r
8# http://opensource.org/licenses/bsd-license.php\r
9#\r
10# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
11# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
12#\r
13ARCH = IA32\r
14\r
15!INCLUDE Makefiles\ms.common\r
16\r
17LIBRARIES = Common\r
18APPLICATIONS = \\r
19 BootSectImage \\r
20 EfiLdrImage \\r
21 EfiRom \\r
22 GenBootSector \\r
23 GenCrc32 \\r
24 GenFfs \\r
25 GenFv \\r
26 GenFw \\r
27 GenPage \\r
28 GenSec \\r
29 GenVtf \\r
30 LzmaCompress \\r
31 Split \\r
32 TianoCompress \\r
33 VolInfo \\r
34 VfrCompile\r
35\r
36all: libs apps install\r
37\r
38libs: $(LIBRARIES)\r
39 @echo.\r
40 @echo ######################\r
41 @echo # Build libraries\r
42 @echo ######################\r
43 @if not exist $(LIB_PATH) mkdir $(LIB_PATH)\r
44 @Makefiles\NmakeSubdirs.bat all $**\r
45\r
46apps: $(APPLICATIONS)\r
47 @echo.\r
48 @echo ######################\r
49 @echo # Build executables\r
50 @echo ######################\r
51 @if not exist $(BIN_PATH) mkdir $(BIN_PATH)\r
52 @Makefiles\NmakeSubdirs.bat all $**\r
53\r
54install: $(LIB_PATH) $(BIN_PATH)\r
55 @echo.\r
56 @echo ######################\r
57 @echo # Install to $(SYS_LIB_PATH)\r
58 @echo # Install to $(SYS_BIN_PATH)\r
59 @echo ######################\r
60 @-xcopy $(LIB_PATH)\*.lib $(SYS_LIB_PATH) /I /D /E /F /Y > NUL 2>&1\r
61 @-xcopy $(BIN_PATH)\*.exe $(SYS_BIN_PATH) /I /D /E /F /Y > NUL 2>&1\r
64b2609f 62 @-xcopy $(BIN_PATH)\*.bat $(SYS_BIN_PATH) /I /D /E /F /Y > NUL 2>&1\r
c69f724d 63\r
64.PHONY: clean\r
65clean:\r
66 @Makefiles\NmakeSubdirs.bat clean $(LIBRARIES) $(APPLICATIONS)\r
67\r
68.PHONY: cleanall\r
69cleanall:\r
70 @Makefiles\NmakeSubdirs.bat cleanall $(LIBRARIES) $(APPLICATIONS)\r
71 @del /f /q $(BIN_PATH)\*.pdb $(BIN_PATH)\*.ilk\r
72\r
73!INCLUDE Makefiles\ms.rule\r
74\r