mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-16 01:24:27 +00:00
tools/fiptool: Add Makefile.msvc to build on Windows.
This change adds nmake compatible Makefile.msvc file for building (nmake /FMakefile.msvc) fiptool on the Windows. Change-Id: Iccd1fe8da072edd09eb04b8622f27b3c4693b281 Signed-off-by: Girish Pathak <girish.pathak@arm.com>
This commit is contained in:
parent
39c92b6271
commit
7e771a9bc4
1 changed files with 30 additions and 0 deletions
30
tools/fiptool/Makefile.msvc
Normal file
30
tools/fiptool/Makefile.msvc
Normal file
|
@ -0,0 +1,30 @@
|
|||
#
|
||||
# Copyright (c) 2019, Arm Limited. All rights reserved.
|
||||
#
|
||||
# SPDX-License-Identifier: BSD-3-Clause
|
||||
#
|
||||
|
||||
CC = cl.exe
|
||||
LD = link.exe
|
||||
|
||||
FIPTOOL = fiptool.exe
|
||||
OBJECTS = fiptool.obj tbbr_config.obj win_posix.obj
|
||||
|
||||
INC = -I. -I..\..\include\tools_share
|
||||
CFLAGS = $(CFLAGS) /nologo /Za /Zi /c /O2 /MT
|
||||
|
||||
all: $(FIPTOOL)
|
||||
|
||||
$(FIPTOOL): $(OBJECTS)
|
||||
$(LD) /INCREMENTAL:NO /debug /nodefaultlib:libc.lib /out:$@ $(LIBS) $**
|
||||
|
||||
.PHONY: clean realclean
|
||||
|
||||
clean:
|
||||
del /f /q $(OBJECTS) > nul
|
||||
|
||||
realclean:
|
||||
del /f /q $(OBJECTS) $(FIPTOOL) > nul
|
||||
|
||||
.c.obj:
|
||||
$(CC) -c $(CFLAGS) $(INC) $< -Fo$@
|
Loading…
Add table
Reference in a new issue