tools/fiptool: Add Makefile.msvc to build on Windows.
authorGirish Pathak <girish.pathak@arm.com>
Fri, 22 Mar 2019 14:30:18 +0000 (14:30 +0000)
committerGirish Pathak <girish.pathak@arm.com>
Tue, 2 Jul 2019 13:12:01 +0000 (14:12 +0100)
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>
tools/fiptool/Makefile.msvc [new file with mode: 0644]

diff --git a/tools/fiptool/Makefile.msvc b/tools/fiptool/Makefile.msvc
new file mode 100644 (file)
index 0000000..58dbb89
--- /dev/null
@@ -0,0 +1,30 @@
+#\r
+# Copyright (c) 2019, Arm Limited. All rights reserved.\r
+#\r
+# SPDX-License-Identifier: BSD-3-Clause\r
+#\r
+\r
+CC = cl.exe\r
+LD = link.exe\r
+\r
+FIPTOOL = fiptool.exe\r
+OBJECTS = fiptool.obj tbbr_config.obj win_posix.obj\r
+\r
+INC = -I. -I..\..\include\tools_share\r
+CFLAGS = $(CFLAGS) /nologo /Za /Zi /c /O2 /MT\r
+\r
+all: $(FIPTOOL)\r
+\r
+$(FIPTOOL): $(OBJECTS)\r
+       $(LD) /INCREMENTAL:NO /debug /nodefaultlib:libc.lib /out:$@ $(LIBS) $**\r
+\r
+.PHONY: clean realclean\r
+\r
+clean:\r
+       del /f /q $(OBJECTS) > nul\r
+\r
+realclean:\r
+       del /f /q $(OBJECTS) $(FIPTOOL) > nul\r
+\r
+.c.obj:\r
+       $(CC) -c $(CFLAGS) $(INC) $< -Fo$@\r