diff options
| author | Kimplul <kimi.h.kuparinen@gmail.com> | 2025-02-23 01:32:47 +0200 |
|---|---|---|
| committer | Kimplul <kimi.h.kuparinen@gmail.com> | 2025-02-23 01:32:47 +0200 |
| commit | 00ea50354b38c6cd9ebb08c8141f48dd5392cd23 (patch) | |
| tree | 3fd3435d30f0a32518a8dfe8ecc6c843f0e4c16f /tests/simple_torus3d/source.mk | |
| parent | 1a02154274b4925692ee0ad07d0bb8468ca9d69c (diff) | |
| download | gran-00ea50354b38c6cd9ebb08c8141f48dd5392cd23.tar.gz gran-00ea50354b38c6cd9ebb08c8141f48dd5392cd23.zip | |
initial torus stuff
+ Not quite deadlock free for 2D/3D for whatever reason
Diffstat (limited to 'tests/simple_torus3d/source.mk')
| -rw-r--r-- | tests/simple_torus3d/source.mk | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/simple_torus3d/source.mk b/tests/simple_torus3d/source.mk new file mode 100644 index 0000000..e045a3c --- /dev/null +++ b/tests/simple_torus3d/source.mk @@ -0,0 +1,18 @@ +TORUS3D_TEST_OBJ != ./scripts/gen-deps --sources "tests/simple_torus3d/sim.c" +TEST_PROGS += build/tests/simple_torus3d/sim + +build/tests/simple_torus3d/test.inc: tests/simple_torus3d/test.c + riscv64-unknown-elf-gcc -O2 -Wall -Wextra -ffreestanding -nostdlib \ + -march=rv64i -mabi=lp64 \ + -o build/tests/simple_torus3d/test \ + tests/simple_torus3d/test.c + riscv64-unknown-elf-objcopy -Obinary \ + build/tests/simple_torus3d/test \ + build/tests/simple_torus3d/test.bin + xxd -i build/tests/simple_torus3d/test.bin \ + > build/tests/simple_torus3d/test.inc + +build/tests/simple_torus3d/sim.o: build/tests/simple_torus3d/test.inc + +build/tests/simple_torus3d/sim: $(TORUS3D_TEST_OBJ) $(OBJS) + $(COMPILE) $(TORUS3D_TEST_OBJ) $(OBJS) -o $@ |
