1# 2# Copyright (c) 2019-2020, Arm Limited. All rights reserved. 3# 4# SPDX-License-Identifier: BSD-3-Clause 5# 6 7CC = cl.exe 8LD = link.exe 9 10# FIPTOOLPATH and FIPTOOL are passed from the main makefile. 11 12OBJECTS = $(FIPTOOLPATH)\fiptool.obj \ 13 $(FIPTOOLPATH)\tbbr_config.obj \ 14 $(FIPTOOLPATH)\win_posix.obj 15 16INC = -I$(FIPTOOLPATH) -Iinclude\tools_share 17 18CFLAGS = $(CFLAGS) /nologo /Za /Zi /c /O2 /MT 19 20all: $(FIPTOOL) 21 22$(FIPTOOL): $(OBJECTS) 23 $(LD) /nologo /INCREMENTAL:NO /debug /nodefaultlib:libc.lib /out:$@ $(LIBS) $** 24 25.PHONY: clean realclean 26 27clean: 28 -@del /f /q $(OBJECTS) > nul 29 -@del /f /q $(FIPTOOLPATH)\*.pdb > nul 30 31realclean: 32 -@del /f /q $(OBJECTS) > nul 33 -@del /f /q $(FIPTOOLPATH)\*.pdb > nul 34 -@del /f /q $(FIPTOOL) > nul 35 36.c.obj: 37 $(CC) -c $(CFLAGS) $(INC) $< -Fo$@ 38