| 1 | ## @file\r |
| 2 | # Windows makefile for C tools build.\r |
| 3 | #\r |
| 4 | # Copyright (c) 2009 - 2017, Intel Corporation. All rights reserved.<BR>\r |
| 5 | # This program and the accompanying materials\r |
| 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 |
| 13 | HOST_ARCH = IA32\r |
| 14 | \r |
| 15 | !INCLUDE Makefiles\ms.common\r |
| 16 | \r |
| 17 | LIBRARIES = Common\r |
| 18 | APPLICATIONS = \\r |
| 19 | BootSectImage \\r |
| 20 | BrotliCompress \\r |
| 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 | DevicePath\r |
| 37 | \r |
| 38 | all: libs apps install\r |
| 39 | \r |
| 40 | libs: $(LIBRARIES)\r |
| 41 | @echo.\r |
| 42 | @echo ######################\r |
| 43 | @echo # Build libraries\r |
| 44 | @echo ######################\r |
| 45 | @if not exist $(LIB_PATH) mkdir $(LIB_PATH)\r |
| 46 | @Makefiles\NmakeSubdirs.bat all $**\r |
| 47 | \r |
| 48 | apps: $(APPLICATIONS)\r |
| 49 | @echo.\r |
| 50 | @echo ######################\r |
| 51 | @echo # Build executables\r |
| 52 | @echo ######################\r |
| 53 | @if not exist $(BIN_PATH) mkdir $(BIN_PATH)\r |
| 54 | @Makefiles\NmakeSubdirs.bat all $**\r |
| 55 | \r |
| 56 | install: $(LIB_PATH) $(BIN_PATH)\r |
| 57 | @echo.\r |
| 58 | @echo ######################\r |
| 59 | @echo # Install to $(SYS_LIB_PATH)\r |
| 60 | @echo # Install to $(SYS_BIN_PATH)\r |
| 61 | @echo ######################\r |
| 62 | @-xcopy $(LIB_PATH)\*.lib $(SYS_LIB_PATH) /I /D /E /F /Y > NUL 2>&1\r |
| 63 | @-xcopy $(BIN_PATH)\*.exe $(SYS_BIN_PATH) /I /D /E /F /Y > NUL 2>&1\r |
| 64 | @-xcopy $(BIN_PATH)\*.bat $(SYS_BIN_PATH) /I /D /E /F /Y > NUL 2>&1\r |
| 65 | \r |
| 66 | .PHONY: clean\r |
| 67 | clean:\r |
| 68 | @Makefiles\NmakeSubdirs.bat clean $(LIBRARIES) $(APPLICATIONS)\r |
| 69 | \r |
| 70 | .PHONY: cleanall\r |
| 71 | cleanall:\r |
| 72 | @Makefiles\NmakeSubdirs.bat cleanall $(LIBRARIES) $(APPLICATIONS)\r |
| 73 | \r |
| 74 | !INCLUDE Makefiles\ms.rule\r |
| 75 | \r |