mirror of
https://codeberg.org/eel4746_piano/avr_piano.git
synced 2024-11-22 09:10:30 -05:00
update makefile for upcoming lcd code
This commit is contained in:
parent
8f258e4e02
commit
661b58dfd0
16
Makefile
16
Makefile
@ -4,10 +4,20 @@ OBJCOPY = avr-objcopy
|
|||||||
|
|
||||||
PORT ?= /dev/ttyACM0
|
PORT ?= /dev/ttyACM0
|
||||||
|
|
||||||
all:
|
all: notes lcd
|
||||||
|
|
||||||
|
notes:
|
||||||
${CC} ${CFLAGS} main.c
|
${CC} ${CFLAGS} main.c
|
||||||
${OBJCOPY} -j .text -j .data -O ihex a.out main.hex
|
${OBJCOPY} -j .text -j .data -O ihex a.out main.hex
|
||||||
rm -f a.out
|
rm -f a.out
|
||||||
|
|
||||||
flash: all
|
flash_notes: notes
|
||||||
avrdude -p atmega328p -c arduino -P /dev/ttyACM0 -b 115200 -U flash:w:main.hex:i
|
avrdude -p atmega328p -c arduino -P ${PORT} -b 115200 -U flash:w:main.hex:i
|
||||||
|
|
||||||
|
lcd:
|
||||||
|
${CC} ${CFLAGS} main.c
|
||||||
|
${OBJCOPY} -j .text -j .data -O ihex a.out main.hex
|
||||||
|
rm -f a.out
|
||||||
|
|
||||||
|
flash_lcd: notes
|
||||||
|
avrdude -p atmega328p -c arduino -P ${PORT} -b 115200 -U flash:w:main.hex:i
|
||||||
|
Loading…
Reference in New Issue
Block a user