Girish Pathak | b26da3c | 2019-03-22 14:30:18 +0000 | [diff] [blame] | 1 | #
|
| 2 | # Copyright (c) 2019, 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 | FIPTOOL = fiptool.exe
|
| 11 | OBJECTS = fiptool.obj tbbr_config.obj win_posix.obj
|
| 12 |
|
| 13 | INC = -I. -I..\..\include\tools_share
|
| 14 | CFLAGS = $(CFLAGS) /nologo /Za /Zi /c /O2 /MT
|
| 15 |
|
| 16 | all: $(FIPTOOL)
|
| 17 |
|
| 18 | $(FIPTOOL): $(OBJECTS)
|
| 19 | $(LD) /INCREMENTAL:NO /debug /nodefaultlib:libc.lib /out:$@ $(LIBS) $**
|
| 20 |
|
| 21 | .PHONY: clean realclean
|
| 22 |
|
| 23 | clean:
|
| 24 | del /f /q $(OBJECTS) > nul
|
| 25 |
|
| 26 | realclean:
|
| 27 | del /f /q $(OBJECTS) $(FIPTOOL) > nul
|
| 28 |
|
| 29 | .c.obj:
|
| 30 | $(CC) -c $(CFLAGS) $(INC) $< -Fo$@
|