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