Add lib folder
This commit is contained in:
parent
81d6df812d
commit
234001628a
5
makefile
5
makefile
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue