2016-07-28 10:22:37 +02:00
|
|
|
#
|
|
|
|
# LUFA Library
|
|
|
|
# Copyright (C) Dean Camera, 2015.
|
|
|
|
#
|
|
|
|
# dean [at] fourwalledcubicle [dot] com
|
|
|
|
# www.lufa-lib.org
|
|
|
|
#
|
|
|
|
# --------------------------------------
|
|
|
|
# LUFA Project Makefile.
|
|
|
|
# --------------------------------------
|
|
|
|
|
|
|
|
# Run "make help" for target help.
|
|
|
|
|
|
|
|
MCU = atmega32u4
|
|
|
|
ARCH = AVR8
|
2016-08-17 08:33:57 +02:00
|
|
|
#BOARD = USBKEY
|
|
|
|
F_CPU = 16000000
|
2016-07-28 10:22:37 +02:00
|
|
|
F_USB = $(F_CPU)
|
|
|
|
OPTIMIZATION = s
|
2016-08-23 09:32:19 +02:00
|
|
|
TARGET = main
|
|
|
|
SRC = $(TARGET).c Descriptors.c uart/uart.c command_ctrl.c $(LUFA_SRC_USB) $(LUFA_SRC_USBCLASS)
|
2016-08-17 08:33:57 +02:00
|
|
|
LUFA_PATH = ../LUFA/LUFA
|
2016-07-28 12:33:35 +02:00
|
|
|
CC_FLAGS = -DUSE_LUFA_CONFIG_HEADER -IConfig/ -Iuart/
|
2016-07-28 10:22:37 +02:00
|
|
|
LD_FLAGS =
|
2016-08-17 08:33:57 +02:00
|
|
|
PROGRAMMER = dfu-programmer
|
2016-07-28 10:22:37 +02:00
|
|
|
|
|
|
|
# Default target
|
|
|
|
all:
|
|
|
|
|
2016-08-17 08:33:57 +02:00
|
|
|
program:
|
|
|
|
$(PROGRAMMER) $(MCU) erase
|
|
|
|
$(PROGRAMMER) $(MCU) flash $(TARGET).hex
|
|
|
|
$(PROGRAMMER) $(MCU) reset
|
|
|
|
|
2016-07-28 10:22:37 +02:00
|
|
|
# Include LUFA build script makefiles
|
|
|
|
include $(LUFA_PATH)/Build/lufa_core.mk
|
|
|
|
include $(LUFA_PATH)/Build/lufa_sources.mk
|
|
|
|
include $(LUFA_PATH)/Build/lufa_build.mk
|
|
|
|
include $(LUFA_PATH)/Build/lufa_cppcheck.mk
|
|
|
|
include $(LUFA_PATH)/Build/lufa_doxygen.mk
|
|
|
|
include $(LUFA_PATH)/Build/lufa_dfu.mk
|
|
|
|
include $(LUFA_PATH)/Build/lufa_hid.mk
|
|
|
|
include $(LUFA_PATH)/Build/lufa_avrdude.mk
|
|
|
|
include $(LUFA_PATH)/Build/lufa_atprogram.mk
|