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