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