-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathMakefile
More file actions
31 lines (23 loc) · 970 Bytes
/
Makefile
File metadata and controls
31 lines (23 loc) · 970 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
.PHONY: all clean lint test
LIBPOKEREADER := reader_core/target/armv6k-nintendo-3ds/release/libpokereader.a
R_SRCS := $(shell find reader_core/src -name '*.rs')
C_SRCS := $(shell find 3gx/sources -name '*.c')
H_SRCS := $(shell find 3gx/includes -name '*.h')
all: out/default.3gx
$(LIBPOKEREADER): $(R_SRCS)
cargo +nightly-2024-03-21 build --release -Z build-std=core,alloc --target armv6k-nintendo-3ds --manifest-path reader_core/Cargo.toml
out/default.3gx: $(LIBPOKEREADER) $(C_SRCS) $(H_SRCS)
make clean -C 3gx
make -C 3gx
mkdir -p out
cp 3gx/build/3gx.3gx out/default.3gx
clean:
cargo clean --manifest-path reader_core/Cargo.toml
make clean -C 3gx
rm -rf out
format:
cargo +nightly fmt --all --manifest-path reader_core/Cargo.toml
lint:
cargo +nightly-2024-03-21 clippy --release -Z build-std=core,alloc --target armv6k-nintendo-3ds --manifest-path reader_core/Cargo.toml
test:
cargo +nightly-2024-03-21 test --manifest-path reader_core/Cargo.toml