test stuff
This commit is contained in:
@ -1,17 +1,20 @@
|
||||
CFLAGS=-I../../cube/User/Inc
|
||||
CFLAGS=-I../cube/User/Inc
|
||||
|
||||
test: ringbuffer.o test.o
|
||||
gcc -o $@ -lcunit $^
|
||||
./test
|
||||
|
||||
ringbuffer.o: ../../cube/User/Src/ringbuffer.c
|
||||
ringbuffer.o: ../cube/User/Src/ringbuffer.c
|
||||
gcc -c -o $@ $(CFLAGS) $^
|
||||
|
||||
test.o: test.c
|
||||
gcc -c -o $@ $(CFLAGS) $^
|
||||
|
||||
|
||||
.PHONY: run
|
||||
run: test
|
||||
./test
|
||||
|
||||
.PHONY: clean
|
||||
clean:
|
||||
-rm *.o test
|
||||
rm -f *.o test
|
||||
|
1
tools/startBuildEnv.ps1
Normal file
1
tools/startBuildEnv.ps1
Normal file
@ -0,0 +1 @@
|
||||
docker run -it --rm -v ${PWD}:/mnt wollud1969/build-env-arm-none-eabi:1.1.0 bash
|
1
tools/startTestEnv.ps1
Normal file
1
tools/startTestEnv.ps1
Normal file
@ -0,0 +1 @@
|
||||
docker run -it --rm -v ${PWD}:/work wollud1969/build-env-c:1.2.0 bash
|
Reference in New Issue
Block a user