1
0

makefile 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. #
  2. # LUFA Library
  3. # Copyright (C) Dean Camera, 2018.
  4. #
  5. # dean [at] fourwalledcubicle [dot] com
  6. # www.lufa-lib.org
  7. #
  8. # ---------------------------------------
  9. # Makefile for the LUFA library itself.
  10. # ---------------------------------------
  11. LUFA_VERSION_NUM := $(shell grep LUFA_VERSION_STRING Version.h | cut -d'"' -f2)
  12. # Default target - no default action when attempting to build the core directly
  13. all:
  14. # Display the LUFA version of this library copy
  15. version:
  16. @echo "LUFA $(LUFA_VERSION_NUM)"
  17. LUFA_PATH := .
  18. ARCH := {AVR8,UC3,XMEGA}
  19. DOXYGEN_OVERRIDE_PARAMS := QUIET=YES PROJECT_NUMBER=$(LUFA_VERSION_NUM)
  20. # Remove all object and associated files from the LUFA library core
  21. clean:
  22. rm -f $(LUFA_SRC_ALL_FILES:%.c=%.o)
  23. rm -f $(LUFA_SRC_ALL_FILES:%.c=%.d)
  24. rm -f $(LUFA_SRC_ALL_FILES:%.c=%.lst)
  25. # Include LUFA-specific DMBS extension modules
  26. DMBS_LUFA_PATH ?= $(LUFA_PATH)/Build/LUFA
  27. include $(DMBS_LUFA_PATH)/lufa-sources.mk
  28. # Include common DMBS build system modules
  29. DMBS_PATH ?= $(LUFA_PATH)/Build/DMBS/DMBS
  30. include $(DMBS_PATH)/core.mk
  31. include $(DMBS_PATH)/doxygen.mk
  32. .PHONY: all version