blob: 5013c6e915b7a9d1e4d5b64b0655ae8e400d8803 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
MESH1D_TEST_OBJ != ./scripts/gen-deps --sources "tests/simple_mesh1d/sim.c"
TEST_PROGS += build/tests/simple_mesh1d/sim
build/tests/simple_mesh1d/test.inc: tests/simple_mesh1d/test.c
riscv64-unknown-elf-gcc -O2 -Wall -Wextra -ffreestanding -nostdlib \
-march=rv64i -mabi=lp64 \
-fno-delete-null-pointer-checks \
-o build/tests/simple_mesh1d/test \
tests/simple_mesh1d/test.c
riscv64-unknown-elf-objcopy -Obinary \
build/tests/simple_mesh1d/test \
build/tests/simple_mesh1d/test.bin
xxd -i build/tests/simple_mesh1d/test.bin \
> build/tests/simple_mesh1d/test.inc
build/tests/simple_mesh1d/sim.o: build/tests/simple_mesh1d/test.inc
build/tests/simple_mesh1d/sim: $(MESH1D_TEST_OBJ) $(OBJS)
$(COMPILE) $(MESH1D_TEST_OBJ) $(OBJS) -o $@
|