]> git.gir.st - tmk_keyboard.git/blob - tmk_core/protocol/lufa/LUFA-120730/LUFA/Build/HID_EEPROM_Loader/makefile
Merge commit 'a074364c3731d66b56d988c8a6c960a83ea0e0a1' as 'tmk_core'
[tmk_keyboard.git] / tmk_core / protocol / lufa / LUFA-120730 / LUFA / Build / HID_EEPROM_Loader / makefile
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
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
24 # Default target
25 all:
26
27 # Determine the AVR sub-architecture of the build main application object file
28 FIND_AVR_SUBARCH = avr$(shell avr-objdump -f $(TARGET).o | grep architecture | cut -d':' -f3 | cut -d',' -f1)
29
30 # Create a linkable object file with the input binary EEPROM data stored in the FLASH section
31 InputEEData.o: InputEEData.bin $(TARGET).o $(MAKEFILE_LIST)
32 @echo $(MSG_OBJCPY_CMD) Converting \"$<\" to a object file \"$@\"
33 avr-objcopy -I binary -O elf32-avr -B $(call FIND_AVR_SUBARCH) --rename-section .data=.progmem.data,contents,alloc,readonly,data $< $@
34
35 # Include LUFA build script makefiles
36 include $(LUFA_PATH)/Build/lufa_core.mk
37 include $(LUFA_PATH)/Build/lufa_build.mk
38 include $(LUFA_PATH)/Build/lufa_cppcheck.mk
39 include $(LUFA_PATH)/Build/lufa_doxygen.mk
40 include $(LUFA_PATH)/Build/lufa_hid.mk
Imprint / Impressum