diff --git a/Makefile b/Makefile index 17df02d..f674c9e 100644 --- a/Makefile +++ b/Makefile @@ -4,10 +4,20 @@ OBJCOPY = avr-objcopy PORT ?= /dev/ttyACM0 -all: +all: notes lcd + +notes: ${CC} ${CFLAGS} main.c ${OBJCOPY} -j .text -j .data -O ihex a.out main.hex rm -f a.out -flash: all - avrdude -p atmega328p -c arduino -P /dev/ttyACM0 -b 115200 -U flash:w:main.hex:i +flash_notes: notes + 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