Add lib folder

This commit is contained in:
jimmy 2024-04-20 09:36:16 +12:00
parent 81d6df812d
commit 234001628a
1 changed files with 3 additions and 2 deletions

View File

@ -7,13 +7,14 @@ OBJCOPY=avr-objcopy
CFLAGS=-Wall -g -O -mmcu=${MCU} -DF_CPU=${F_CPU} -I. -std=gnu++11
SRC=$(wildcard src/*.cpp)
LIB=$(wildcard lib/*/src/*.cpp)
default: clean build flash
build:
mkdir -p bin
${CC} ${CFLAGS} -o bin/main.bin ${SRC} -w
${CC} ${CFLAGS} -o bin/main.elf ${SRC} -w
${CC} ${CFLAGS} -o bin/main.bin ${SRC} ${LIB} -w
${CC} ${CFLAGS} -o bin/main.elf ${SRC} ${LIB} -w
${OBJCOPY} -j .text -j .data -O ihex bin/main.bin bin/main.hex
flash: