Fix: returned CMake support alongside make

This commit is contained in:
2022-03-19 20:42:38 +01:00
parent 934cbc2441
commit eefcd3af81
4 changed files with 27 additions and 5 deletions

View File

@@ -6,11 +6,11 @@ OBJCOPY=avr-objcopy
CFLAGS=-std=c99 -Wall -g -Os -mcall-prologues -mmcu=${MCU} -DF_CPU=${F_CPU} -I/usr/lib/avr/include/
TARGET=main
SRCS=main.c PT6302.c PT6302.h
all:
${CC} ${CFLAGS} -o ${TARGET}.bin ${SRCS}
${OBJCOPY} -j .text -j .data -O ihex ${TARGET}.bin ${TARGET}.hex
${OBJCOPY} -j .text -j .data -O ihex ${TARGET}.bin ${TARGET}.hex
flash:
avrdude -p ${MCU} -c usbasp -U flash:w:${TARGET}.hex:i -F -P usb