Makefile.msvc 797 B

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