update makefile for upcoming lcd code

This commit is contained in:
Vineet K 2024-04-17 13:59:33 -04:00 committed by Shokara Kou
parent 8f258e4e02
commit 661b58dfd0

View File

@ -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