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.

makefile 1.3KB

12345678910111213141516171819202122232425262728293031323334353637383940
  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. # LUFA Project Makefile.
  10. # --------------------------------------
  11. MCU = at90usb1287
  12. ARCH = AVR8
  13. F_CPU = 1000000
  14. F_USB = $(F_CPU)
  15. OPTIMIZATION = s
  16. TARGET = HID_EEPROM_Loader
  17. SRC = $(TARGET).c
  18. LUFA_PATH = ../../../LUFA
  19. CC_FLAGS =
  20. LD_FLAGS =
  21. OBJECT_FILES = InputEEData.o
  22. # Default target
  23. all:
  24. # Determine the AVR sub-architecture of the build main application object file
  25. FIND_AVR_SUBARCH = avr$(shell avr-objdump -f $(TARGET).o | grep architecture | cut -d':' -f3 | cut -d',' -f1)
  26. # Create a linkable object file with the input binary EEPROM data stored in the FLASH section
  27. InputEEData.o: InputEEData.bin $(TARGET).o $(MAKEFILE_LIST)
  28. @echo $(MSG_OBJCPY_CMD) Converting \"$<\" to a object file \"$@\"
  29. avr-objcopy -I binary -O elf32-avr -B $(call FIND_AVR_SUBARCH) --rename-section .data=.progmem.data,contents,alloc,readonly,data $< $@
  30. # Include LUFA build script makefiles
  31. include $(LUFA_PATH)/Build/lufa_core.mk
  32. include $(LUFA_PATH)/Build/lufa_build.mk
  33. include $(LUFA_PATH)/Build/lufa_cppcheck.mk
  34. include $(LUFA_PATH)/Build/lufa_doxygen.mk
  35. include $(LUFA_PATH)/Build/lufa_hid.mk