]> git.proxmox.com Git - mirror_edk2.git/blob - BaseTools/Source/C/Makefile
BaseTools: Update windows and linux run scripts file to use Python3
[mirror_edk2.git] / BaseTools / Source / C / Makefile
1 ## @file
2 # Windows makefile for C tools build.
3 #
4 # Copyright (c) 2009 - 2018, 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 VfrCompile \
20 BrotliCompress \
21 EfiRom \
22 GenCrc32 \
23 GenFfs \
24 GenFv \
25 GenFw \
26 GenSec \
27 LzmaCompress \
28 Split \
29 TianoCompress \
30 VolInfo \
31 DevicePath
32
33 all: libs apps install
34
35 libs: $(LIBRARIES)
36 @echo.
37 @echo ######################
38 @echo # Build libraries
39 @echo ######################
40 @if not exist $(LIB_PATH) mkdir $(LIB_PATH)
41 @$(PYTHON) Makefiles\NmakeSubdirs.py all $**
42
43 apps: $(APPLICATIONS)
44 @echo.
45 @echo ######################
46 @echo # Build executables
47 @echo ######################
48 @if not exist $(BIN_PATH) mkdir $(BIN_PATH)
49 @$(PYTHON) Makefiles\NmakeSubdirs.py all $**
50
51 install: $(LIB_PATH) $(BIN_PATH)
52 @echo.
53 @echo ######################
54 @echo # Install to $(SYS_LIB_PATH)
55 @echo # Install to $(SYS_BIN_PATH)
56 @echo ######################
57 @-xcopy $(LIB_PATH)\*.lib $(SYS_LIB_PATH) /I /D /E /F /Y > NUL 2>&1
58 @-xcopy $(BIN_PATH)\*.exe $(SYS_BIN_PATH) /I /D /E /F /Y > NUL 2>&1
59 @-xcopy $(BIN_PATH)\*.bat $(SYS_BIN_PATH) /I /D /E /F /Y > NUL 2>&1
60
61 .PHONY: clean
62 clean:
63 @$(PYTHON) Makefiles\NmakeSubdirs.py clean $(LIBRARIES) $(APPLICATIONS)
64
65 .PHONY: cleanall
66 cleanall:
67 @$(PYTHON) Makefiles\NmakeSubdirs.py cleanall $(LIBRARIES) $(APPLICATIONS)
68
69 !INCLUDE Makefiles\ms.rule
70