BaseTools: Add Brotli algorithm tool
[mirror_edk2.git] / BaseTools / Source / C / Makefile
CommitLineData
c69f724d 1## @file\r
2# Windows makefile for C tools build.\r
3#\r
b69fd59e 4# Copyright (c) 2009 - 2014, 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
87d97b6a 20 BrotliCompress \\r
c69f724d 21 EfiLdrImage \\r
22 EfiRom \\r
23 GenBootSector \\r
24 GenCrc32 \\r
25 GenFfs \\r
26 GenFv \\r
27 GenFw \\r
28 GenPage \\r
29 GenSec \\r
30 GenVtf \\r
31 LzmaCompress \\r
32 Split \\r
33 TianoCompress \\r
34 VolInfo \\r
35 VfrCompile\r
36\r
37all: libs apps install\r
38\r
39libs: $(LIBRARIES)\r
40 @echo.\r
41 @echo ######################\r
42 @echo # Build libraries\r
43 @echo ######################\r
44 @if not exist $(LIB_PATH) mkdir $(LIB_PATH)\r
45 @Makefiles\NmakeSubdirs.bat all $**\r
46\r
47apps: $(APPLICATIONS)\r
48 @echo.\r
49 @echo ######################\r
50 @echo # Build executables\r
51 @echo ######################\r
52 @if not exist $(BIN_PATH) mkdir $(BIN_PATH)\r
53 @Makefiles\NmakeSubdirs.bat all $**\r
54\r
55install: $(LIB_PATH) $(BIN_PATH)\r
56 @echo.\r
57 @echo ######################\r
58 @echo # Install to $(SYS_LIB_PATH)\r
59 @echo # Install to $(SYS_BIN_PATH)\r
60 @echo ######################\r
61 @-xcopy $(LIB_PATH)\*.lib $(SYS_LIB_PATH) /I /D /E /F /Y > NUL 2>&1\r
62 @-xcopy $(BIN_PATH)\*.exe $(SYS_BIN_PATH) /I /D /E /F /Y > NUL 2>&1\r
64b2609f 63 @-xcopy $(BIN_PATH)\*.bat $(SYS_BIN_PATH) /I /D /E /F /Y > NUL 2>&1\r
c69f724d 64\r
65.PHONY: clean\r
66clean:\r
67 @Makefiles\NmakeSubdirs.bat clean $(LIBRARIES) $(APPLICATIONS)\r
68\r
69.PHONY: cleanall\r
70cleanall:\r
71 @Makefiles\NmakeSubdirs.bat cleanall $(LIBRARIES) $(APPLICATIONS)\r
c69f724d 72\r
73!INCLUDE Makefiles\ms.rule\r
74\r