logger, implementation and test

This commit is contained in:
2020-10-29 14:30:55 +01:00
parent 08c4907526
commit e5a77ccc00
6 changed files with 224 additions and 45 deletions

View File

@ -1,11 +1,14 @@
CFLAGS=-I../cube/User/Inc
CFLAGS=-I../cube/User/Inc -DTEST
test: ringbuffer.o test.o
test: ringbuffer.o logger.o test.o
gcc -o $@ -lcunit $^
ringbuffer.o: ../cube/User/Src/ringbuffer.c
gcc -c -o $@ $(CFLAGS) $^
logger.o: ../cube/User/Src/logger.c
gcc -c -o $@ $(CFLAGS) $^
test.o: test.c
gcc -c -o $@ $(CFLAGS) $^