]> git.proxmox.com Git - mirror_edk2.git/blob - BaseTools/Source/C/Makefile
BaseTools: Add DevicePath support for PCD values
[mirror_edk2.git] / BaseTools / Source / C / Makefile
1 ## @file
2 # Windows makefile for C tools build.
3 #
4 # Copyright (c) 2009 - 2017, 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 HOST_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 DevicePath
37
38 all: libs apps install
39
40 libs: $(LIBRARIES)
41 @echo.
42 @echo ######################
43 @echo # Build libraries
44 @echo ######################
45 @if not exist $(LIB_PATH) mkdir $(LIB_PATH)
46 @Makefiles\NmakeSubdirs.bat all $**
47
48 apps: $(APPLICATIONS)
49 @echo.
50 @echo ######################
51 @echo # Build executables
52 @echo ######################
53 @if not exist $(BIN_PATH) mkdir $(BIN_PATH)
54 @Makefiles\NmakeSubdirs.bat all $**
55
56 install: $(LIB_PATH) $(BIN_PATH)
57 @echo.
58 @echo ######################
59 @echo # Install to $(SYS_LIB_PATH)
60 @echo # Install to $(SYS_BIN_PATH)
61 @echo ######################
62 @-xcopy $(LIB_PATH)\*.lib $(SYS_LIB_PATH) /I /D /E /F /Y > NUL 2>&1
63 @-xcopy $(BIN_PATH)\*.exe $(SYS_BIN_PATH) /I /D /E /F /Y > NUL 2>&1
64 @-xcopy $(BIN_PATH)\*.bat $(SYS_BIN_PATH) /I /D /E /F /Y > NUL 2>&1
65
66 .PHONY: clean
67 clean:
68 @Makefiles\NmakeSubdirs.bat clean $(LIBRARIES) $(APPLICATIONS)
69
70 .PHONY: cleanall
71 cleanall:
72 @Makefiles\NmakeSubdirs.bat cleanall $(LIBRARIES) $(APPLICATIONS)
73
74 !INCLUDE Makefiles\ms.rule
75