VirtualBox

source: vbox/trunk/src/VBox/Devices/EFI/FirmwareNew/BaseTools/Source/C/Makefile@ 108794

Last change on this file since 108794 was 108794, checked in by vboxsync, 2 weeks ago

Devices/EFI/FirmwareNew: Merge edk2-stable202502 from the vendor branch and make it build for the important platforms, bugref:4643

  • Property svn:eol-style set to native
File size: 2.1 KB
Line 
1## @file
2# Windows makefile for C tools build.
3#
4# Copyright (c) 2009 - 2018, Intel Corporation. All rights reserved.<BR>
5# SPDX-License-Identifier: BSD-2-Clause-Patent
6#
7!IFNDEF HOST_ARCH
8HOST_ARCH = IA32
9!ENDIF
10
11!INCLUDE Makefiles\ms.common
12
13LIBRARIES = Common
14APPLICATIONS = \
15 VfrCompile \
16 BrotliCompress \
17 EfiRom \
18 GenCrc32 \
19 GenFfs \
20 GenFv \
21 GenFw \
22 GenSec \
23 LzmaCompress \
24 TianoCompress \
25 VolInfo \
26 DevicePath
27
28all: libs apps install
29
30libs: $(LIBRARIES)
31 @echo.
32 @echo ######################
33 @echo # Build libraries
34 @echo ######################
35 @if not exist $(LIB_PATH) mkdir $(LIB_PATH)
36 @if defined PYTHON_COMMAND $(PYTHON_COMMAND) Makefiles\NmakeSubdirs.py all $**
37 @if not defined PYTHON_COMMAND $(PYTHON_HOME)\python.exe Makefiles\NmakeSubdirs.py all $**
38
39apps: $(APPLICATIONS)
40 @echo.
41 @echo ######################
42 @echo # Build executables
43 @echo ######################
44 @if not exist $(BIN_PATH) mkdir $(BIN_PATH)
45 @if defined PYTHON_COMMAND $(PYTHON_COMMAND) Makefiles\NmakeSubdirs.py all $**
46 @if not defined PYTHON_COMMAND $(PYTHON_HOME)\python.exe Makefiles\NmakeSubdirs.py all $**
47
48install: $(LIB_PATH) $(BIN_PATH)
49 @echo.
50 @echo ######################
51 @echo # Install to $(SYS_LIB_PATH)
52 @echo # Install to $(SYS_BIN_PATH)
53 @echo ######################
54 @-xcopy $(LIB_PATH)\*.lib $(SYS_LIB_PATH) /I /D /E /F /Y > NUL 2>&1
55 @-xcopy $(BIN_PATH)\*.exe $(SYS_BIN_PATH) /I /D /E /F /Y > NUL 2>&1
56 @-xcopy $(BIN_PATH)\*.bat $(SYS_BIN_PATH) /I /D /E /F /Y > NUL 2>&1
57
58.PHONY: clean
59clean:
60 @if defined PYTHON_COMMAND $(PYTHON_COMMAND) Makefiles\NmakeSubdirs.py clean $(LIBRARIES) $(APPLICATIONS)
61 @if not defined PYTHON_COMMAND $(PYTHON_HOME)\python.exe Makefiles\NmakeSubdirs.py clean $(LIBRARIES) $(APPLICATIONS)
62
63.PHONY: cleanall
64cleanall:
65 @if defined PYTHON_COMMAND $(PYTHON_COMMAND) Makefiles\NmakeSubdirs.py cleanall $(LIBRARIES) $(APPLICATIONS)
66 @if not defined PYTHON_COMMAND $(PYTHON_HOME)\python.exe Makefiles\NmakeSubdirs.py cleanall $(LIBRARIES) $(APPLICATIONS)
67# Next line protects the libs pseudo target from inadvertent GNU make activity
68 if exist libs RMDIR /S /Q libs
69
70!INCLUDE Makefiles\ms.rule
71
Note: See TracBrowser for help on using the repository browser.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette