summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorGirish Pathak <girish.pathak@arm.com>2019-03-22 14:30:18 +0000
committerGirish Pathak <girish.pathak@arm.com>2019-07-02 14:12:01 +0100
commit7e771a9bc46ac29c259027c724d0b5d15c716bc3 (patch)
tree46f327ad84417f258e64b6b7674a6829324dbcf6 /tools
parent39c92b6271f4bde4e84f2459dbc18228cedd7825 (diff)
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>
Diffstat (limited to 'tools')
-rw-r--r--tools/fiptool/Makefile.msvc30
1 files changed, 30 insertions, 0 deletions
diff --git a/tools/fiptool/Makefile.msvc b/tools/fiptool/Makefile.msvc
new file mode 100644
index 00000000..58dbb897
--- /dev/null
+++ b/tools/fiptool/Makefile.msvc
@@ -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$@