Romain Malmain cb471a9282
Move to just (binary_only / full_system) (#2949)
* just port for binary only / systemmode fuzzers

* introduce just libraries, with pre-initialized variables and common recipes

---------

Co-authored-by: Dongjia "toka" Zhang <tokazerkje@outlook.com>
2025-02-13 12:42:38 +01:00

30 lines
635 B
Makefile

import "../../just/libafl.just"
FUZZER_NAME := ""
clean:
cargo clean
format:
cargo fmt -- --emit=files
demo: format
cargo build -p noaslr_demo --profile {{PROFILE}}
run_demo: demo
cargo run -p noaslr_demo
build: format
cargo build -p noaslr --profile {{PROFILE}}
buildlib: format
cargo build -p libnoaslr --profile {{PROFILE}}
run: demo
cargo run -p noaslr --profile {{PROFILE}} -- {{BUILD_DIR}}/demo -- -f /proc/self/maps -- test
runlib: demo buildlib
LD_PRELOAD={{BUILD_DIR}}/libnoaslr.so cargo run -p noaslr_demo --profile {{PROFILE}} -- -f /proc/self/maps -- test
all: demo build buildlib