ringbuffer and tests
This commit is contained in:
17
tests/testRingbuffer/Makefile
Normal file
17
tests/testRingbuffer/Makefile
Normal file
@ -0,0 +1,17 @@
|
||||
CFLAGS=-I../../cube/User/Inc
|
||||
|
||||
test: ringbuffer.o test.o
|
||||
gcc -o $@ -lcunit $^
|
||||
./test
|
||||
|
||||
ringbuffer.o: ../../cube/User/Src/ringbuffer.c
|
||||
gcc -c -o $@ $(CFLAGS) $^
|
||||
|
||||
test.o: test.c
|
||||
gcc -c -o $@ $(CFLAGS) $^
|
||||
|
||||
|
||||
.PHONY: clean
|
||||
clean:
|
||||
-rm *.o test
|
||||
|
Reference in New Issue
Block a user