
* move to just * fuzzbench * shell check * version * rme * fixer * fixing * libpng friends * pwd * ps * ps * no fail fast.. for now * windows * l * no powershell * a * fk * fixer * a * Revert "fixer" This reverts commit 76ae72d68686ead01ef914b658c5d8dac5aaee32. * plzplz * aaaa * aa * aa * use absolute path, use LIBAFL_CC and LIBAFL_CXX * why tabs???? * this job is not fun * aa * tmate debug * disable cacheing * del * deldelg * rename * aaaa * lol * aaa * lol * lol * 2nd tmate ... * a * lol * lll * shell ck * please i'm about to cry --------- Co-authored-by: Your Name <you@example.com> Co-authored-by: Romain Malmain <romain.malmain@pm.me>
57 lines
1.1 KiB
Makefile
57 lines
1.1 KiB
Makefile
FUZZER_NAME := 'libfuzzer_windows_asan'
|
|
PROJECT_DIR := absolute_path(".")
|
|
PROFILE := env("PROFILE", "release")
|
|
PROFILE_DIR := if PROFILE == "release" { "release" } else if PROFILE == "dev" { "debug" } else { "debug" }
|
|
CARGO_TARGET_DIR := env("CARGO_TARGET_DIR", "target")
|
|
LIBAFL_CXX := CARGO_TARGET_DIR / PROFILE_DIR / "libafl_cxx"
|
|
|
|
set shell := ["cmd.exe", "/c"]
|
|
|
|
alias cc := cxx
|
|
|
|
[windows]
|
|
cxx:
|
|
cargo build --profile {{PROFILE}}
|
|
|
|
[linux]
|
|
[macos]
|
|
cxx:
|
|
echo "Unsupported on this platform"
|
|
|
|
[linux]
|
|
[macos]
|
|
cxx:
|
|
cargo build --profile {{PROFILE}}
|
|
|
|
[windows]
|
|
fuzzer: cxx
|
|
.\target\{{PROFILE}}\libafl_cxx .\harness.cpp -o {{FUZZER_NAME}}.exe
|
|
|
|
[linux]
|
|
[macos]
|
|
fuzzer:
|
|
echo "Unsupported on this platform"
|
|
|
|
|
|
[windows]
|
|
test: fuzzer
|
|
start {{FUZZER_NAME}}.exe
|
|
start {{FUZZER_NAME}}.exe
|
|
ping -n 10 127.0.0.1>NUL && taskkill /im {{FUZZER_NAME}}.exe /F
|
|
dir /a-d crashes && (echo Files exist) || (exit /b 1337)
|
|
|
|
[linux]
|
|
[macos]
|
|
test:
|
|
echo "Unsupported on this platform"
|
|
|
|
|
|
[windows]
|
|
clean:
|
|
del ./{{FUZZER_NAME}}
|
|
cargo clean
|
|
|
|
[linux]
|
|
[macos]
|
|
clean:
|
|
echo "Unsupported on this platform"
|