diff options
| author | Kimplul <kimi.h.kuparinen@gmail.com> | 2025-02-24 21:31:46 +0200 |
|---|---|---|
| committer | Kimplul <kimi.h.kuparinen@gmail.com> | 2025-02-24 21:31:46 +0200 |
| commit | e991095180f774e3582329447c291a11499989ba (patch) | |
| tree | 0708d2308a229b932a84d8ae803b31d296f9fc0f /tests/simple_mesh3d/source.mk | |
| parent | 238116c1cf08b93335abd493df110a669786553e (diff) | |
| download | gran-e991095180f774e3582329447c291a11499989ba.tar.gz gran-e991095180f774e3582329447c291a11499989ba.zip | |
overhaul meshes
+ Previous name was grid
Diffstat (limited to 'tests/simple_mesh3d/source.mk')
| -rw-r--r-- | tests/simple_mesh3d/source.mk | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/simple_mesh3d/source.mk b/tests/simple_mesh3d/source.mk new file mode 100644 index 0000000..30aea2c --- /dev/null +++ b/tests/simple_mesh3d/source.mk @@ -0,0 +1,18 @@ +MESH3D_TEST_OBJ != ./scripts/gen-deps --sources "tests/simple_mesh3d/sim.c" +TEST_PROGS += build/tests/simple_mesh3d/sim + +build/tests/simple_mesh3d/test.inc: tests/simple_mesh3d/test.c + riscv64-unknown-elf-gcc -O2 -Wall -Wextra -ffreestanding -nostdlib \ + -march=rv64i -mabi=lp64 \ + -o build/tests/simple_mesh3d/test \ + tests/simple_mesh3d/test.c + riscv64-unknown-elf-objcopy -Obinary \ + build/tests/simple_mesh3d/test \ + build/tests/simple_mesh3d/test.bin + xxd -i build/tests/simple_mesh3d/test.bin \ + > build/tests/simple_mesh3d/test.inc + +build/tests/simple_mesh3d/sim.o: build/tests/simple_mesh3d/test.inc + +build/tests/simple_mesh3d/sim: $(MESH3D_TEST_OBJ) $(OBJS) + $(COMPILE) $(MESH3D_TEST_OBJ) $(OBJS) -o $@ |
