1 #----------------------------------------------------------------------------
4 # make all = Make software.
6 # make clean = Clean out built project files.
8 # make coff = Convert ELF to AVR COFF.
10 # make extcoff = Convert ELF to AVR Extended COFF.
12 # make program = Download the hex file to the device.
13 # Please customize your programmer settings(PROGRAM_CMD)
15 # make teensy = Download the hex file to the device, using teensy_loader_cli.
16 # (must have teensy_loader_cli installed).
18 # make dfu = Download the hex file to the device, using dfu-programmer (must
19 # have dfu-programmer installed).
21 # make flip = Download the hex file to the device, using Atmel FLIP (must
22 # have Atmel FLIP installed).
24 # make dfu-ee = Download the eeprom file to the device, using dfu-programmer
25 # (must have dfu-programmer installed).
27 # make flip-ee = Download the eeprom file to the device, using Atmel FLIP
28 # (must have Atmel FLIP installed).
30 # make debug = Start either simulavr or avarice as specified for debugging,
31 # with avr-gdb or avr-insight as the front end for debugging.
33 # make filename.s = Just compile filename.c into the assembler code only.
35 # make filename.i = Create a preprocessed source file for use in submitting
36 # bug reports to the GCC project.
38 # To rebuild project do "make clean" then "make all".
39 #----------------------------------------------------------------------------
41 # Target file name (without extension).
44 # Directory keyboard dependent files exist
51 # Processor frequency.
52 # This will define a symbol, F_CPU, in all source code files equal to the
53 # processor frequency in Hz. You can then use this symbol in your source code to
54 # calculate timings. Do NOT tack on a 'UL' at the end, this will be done
55 # automatically to create a 32-bit value in your source code.
57 # This will be an integer division of F_USB below, as it is sourced by
58 # F_USB after it has run through any CPU prescalers. Note that this value
59 # does not *change* the processor frequency - it should merely be updated to
60 # reflect the processor speed set externally so that the code can use accurate
67 ARDUINO_DIR = arduino-1.0.1/cores
74 # arduino/USBCore.cpp \
77 # arduino/HardwareSerial.cpp \
78 # arduino/IPAddress.cpp \
81 # arduino/WInterrupts.c \
82 # arduino/wiring_analog.c \
83 # arduino/wiring_pulse.c \
84 # arduino/wiring_shift.c
85 # arduino/wiring_digital.c \
86 # arduino/WString.cpp \
89 USB_HOST_DIR = ./USB_Host_Shield_2.0
98 hidusagetitlearrays.cpp \
99 hidescriptorparser.cpp \
115 SRC += NullSerial.cpp
116 SRC += $(USB_HOST_SRC)
117 SRC += $(ARDUINO_SRC)
119 OPT_DEFS = -DARDUINO=101 -DUSB_VID=0x2341 -DUSB_PID=0x8036
122 VPATH += $(TARGET_DIR)
123 VPATH += $(USB_HOST_DIR)
124 VPATH += $(ARDUINO_DIR)
126 VPATH += arduino-1.0.1/cores/arduino
128 VPATH += arduino-1.0.1/variants/leonardo
131 # Ad hoc workaround to override original arduino/USBAPI.h with our own USBAPI.h.
132 # Obsolete but needed in order to remove directory including the current input file from search list.
133 # Option -iquote can't replace -I- for this purpose.
138 PROGRAM_CMD = avrdude -patmega32u4 -cavr109 -P$(DEV) -b57600 -Uflash:w:$(TARGET).hex
141 include ../../rules.mk