upload
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.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.

makefile 1.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. #
  2. # LUFA Library
  3. # Copyright (C) Dean Camera, 2014.
  4. #
  5. # dean [at] fourwalledcubicle [dot] com
  6. # www.lufa-lib.org
  7. #
  8. # --------------------------------------
  9. # LUFA Project Makefile.
  10. # --------------------------------------
  11. # Run "make help" for target help.
  12. MCU = at90usb1287
  13. ARCH = AVR8
  14. F_CPU = 1000000
  15. F_USB = $(F_CPU)
  16. OPTIMIZATION = s
  17. TARGET = HID_EEPROM_Loader
  18. SRC = $(TARGET).c
  19. LUFA_PATH = ../../../LUFA
  20. CC_FLAGS =
  21. LD_FLAGS =
  22. OBJECT_FILES = InputEEData.o
  23. # Default target
  24. all:
  25. # Determine the AVR sub-architecture of the build main application object file
  26. FIND_AVR_SUBARCH = avr$(shell avr-objdump -f $(TARGET).o | grep architecture | cut -d':' -f3 | cut -d',' -f1)
  27. # Create a linkable object file with the input binary EEPROM data stored in the FLASH section
  28. InputEEData.o: InputEEData.bin $(TARGET).o $(MAKEFILE_LIST)
  29. @echo $(MSG_OBJCPY_CMD) Converting \"$<\" to a object file \"$@\"
  30. avr-objcopy -I binary -O elf32-avr -B $(call FIND_AVR_SUBARCH) --rename-section .data=.progmem.data,contents,alloc,readonly,data $< $@
  31. # Include LUFA build script makefiles
  32. include $(LUFA_PATH)/Build/lufa_core.mk
  33. include $(LUFA_PATH)/Build/lufa_build.mk
  34. include $(LUFA_PATH)/Build/lufa_cppcheck.mk
  35. include $(LUFA_PATH)/Build/lufa_doxygen.mk
  36. include $(LUFA_PATH)/Build/lufa_hid.mk