Keyboard firmwares for Atmel AVR and Cortex-M
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. #
  2. # LUFA Library
  3. # Copyright (C) Dean Camera, 2012.
  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. EXCLUDE_FROM_EXPORT := Documentation DoxygenPages CodeTemplates Build *.conf *.tar *.o *.d *.lss *.lst *.hex *.elf *.hex *.eep *.map *.bin
  13. all:
  14. export_tar:
  15. @echo Exporting LUFA library to a TAR archive...
  16. @tar -cf LUFA_$(LUFA_VERSION_NUM).tar --directory=. $(EXCLUDE_FROM_EXPORT:%=--exclude=%) *
  17. @tar -cf LUFA_$(LUFA_VERSION_NUM)_Code_Templates.tar CodeTemplates
  18. @echo Export LUFA_$(LUFA_VERSION_NUM).tar complete.
  19. version:
  20. @echo "LUFA $(LUFA_VERSION_NUM)"
  21. # Check if this is being included from a legacy or non LUFA build system makefile
  22. ifneq ($(LUFA_PATH),)
  23. LUFA_ROOT_PATH = $(patsubst %/,%,$(LUFA_PATH))/LUFA/
  24. include $(patsubst %/,%,$(LUFA_PATH))/LUFA/Build/lufa.sources.in
  25. else
  26. LUFA_BUILD_MODULES += MASTER
  27. LUFA_BUILD_TARGETS += export_tar version
  28. LUFA_PATH = .
  29. ARCH = {AVR8,UC3,XMEGA}
  30. DOXYGEN_OVERRIDE_PARAMS = QUIET=YES PROJECT_NUMBER=$(LUFA_VERSION_NUM)
  31. clean:
  32. rm -f $(LUFA_SRC_ALL_FILES:%.c=%.o)
  33. rm -f $(LUFA_SRC_ALL_FILES:%.c=%.d)
  34. rm -f $(LUFA_SRC_ALL_FILES:%.c=%.lst)
  35. include Build/lufa_core.mk
  36. include Build/lufa_sources.mk
  37. include Build/lufa_doxygen.mk
  38. endif
  39. .PHONY: all export_tar version clean