-
Notifications
You must be signed in to change notification settings - Fork 160
/
Makefile
51 lines (43 loc) · 1.84 KB
/
Makefile
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
ELF32 = $(wildcard src/elf/_32/*.rs)
ELF = $(wildcard src/elf/*.rs)
ELF64 = $(wildcard src/elf/_64/*.rs)
MACH = $(wildcard src/mach/*.rs)
PE = $(wildcard src/pe/*.rs)
SRC = $(wildcard src/*.rs) $(ELF) $(ELF64) $(ELF32) $(MACH) $(PE)
ARTIFACTS = $(addprefix target/debug/, libgoblin.rlib libgoblin.so)
$(ARTIFACTS): $(SRC)
cargo rustc -- -Z incremental=target/
doc:
cargo doc
clean:
cargo clean
test:
RUST_BACKTRACE=1 cargo test
example:
cargo run --example=rdr -- /bin/ls
api:
cargo build
cargo build --no-default-features
cargo build --no-default-features --features="alloc"
cargo build --no-default-features --features="std"
cargo build --no-default-features --features="endian_fd"
cargo build --no-default-features --features="endian_fd std"
cargo build --no-default-features --features="elf32"
cargo build --no-default-features --features="elf32 elf64"
cargo build --no-default-features --features="elf32 elf64 std"
cargo build --no-default-features --features="elf32 elf64 endian_fd"
cargo build --no-default-features --features="elf32 elf64 endian_fd std"
cargo build --no-default-features --features="elf32 elf64 alloc"
cargo build --no-default-features --features="archive std"
cargo build --no-default-features --features="mach64"
cargo build --no-default-features --features="mach64 std"
cargo build --no-default-features --features="mach32"
cargo build --no-default-features --features="mach32 std"
cargo build --no-default-features --features="mach64 mach32"
cargo build --no-default-features --features="mach64 mach32 std"
cargo build --no-default-features --features="pe32"
cargo build --no-default-features --features="pe32 std"
cargo build --no-default-features --features="pe32 pe64"
cargo build --no-default-features --features="pe32 pe64 std"
cargo build --no-default-features --features="archive"
.PHONY: clean test example doc