blob: 58dbb8973d1f7edb5066f60cb43ee4acb471fc7d [file] [log] [blame]
Girish Pathakb26da3c2019-03-22 14:30:18 +00001#
2# Copyright (c) 2019, Arm Limited. All rights reserved.
3#
4# SPDX-License-Identifier: BSD-3-Clause
5#
6
7CC = cl.exe
8LD = link.exe
9
10FIPTOOL = fiptool.exe
11OBJECTS = fiptool.obj tbbr_config.obj win_posix.obj
12
13INC = -I. -I..\..\include\tools_share
14CFLAGS = $(CFLAGS) /nologo /Za /Zi /c /O2 /MT
15
16all: $(FIPTOOL)
17
18$(FIPTOOL): $(OBJECTS)
19 $(LD) /INCREMENTAL:NO /debug /nodefaultlib:libc.lib /out:$@ $(LIBS) $**
20
21.PHONY: clean realclean
22
23clean:
24 del /f /q $(OBJECTS) > nul
25
26realclean:
27 del /f /q $(OBJECTS) $(FIPTOOL) > nul
28
29.c.obj:
30 $(CC) -c $(CFLAGS) $(INC) $< -Fo$@