1 #lufa makefile abomination
10 SRC
= autocode.c config.c main.c ..
/common
/comm.c Descriptors.c
$(LUFA_SRC_USB
) $(LUFA_SRC_USBCLASS
)
12 CC_FLAGS
= -DUSE_LUFA_CONFIG_HEADER
-I.
-I..
/common
-DCONFIG_MAC
=${CONFIG_MAC}
18 # Include LUFA build script makefiles
19 include $(LUFA_PATH
)/Build
/lufa_core.mk
20 include $(LUFA_PATH
)/Build
/lufa_sources.mk
21 include $(LUFA_PATH
)/Build
/lufa_build.mk
22 include $(LUFA_PATH
)/Build
/lufa_cppcheck.mk
23 include $(LUFA_PATH
)/Build
/lufa_doxygen.mk
24 include $(LUFA_PATH
)/Build
/lufa_dfu.mk
25 include $(LUFA_PATH
)/Build
/lufa_hid.mk
26 include $(LUFA_PATH
)/Build
/lufa_avrdude.mk
27 include $(LUFA_PATH
)/Build
/lufa_atprogram.mk
30 dfu-programmer
$(MCU
) erase
31 dfu-programmer
$(MCU
) flash
$(TARGET
).hex
34 avrdude
-c avrispmkII
-P usb
-p m8u2
-v
-U flash
:w
:$(TARGET
).hex
37 avrdude
-c dragon_isp
-P usb
-p m8u2
-v
-U flash
:w
:$(TARGET
).hex