r_core 0.1.0

Rust bindings for radare2's r_core
Documentation
1
2
3
4
5
6
7
8
9
10
11
R2LIB=r_core

CFLAGS+=$(shell pkg-config --cflags $(R2LIB))
R2INC=$(shell pkg-config --variable=includedir $(R2LIB))

all:
	@bindgen -h > /dev/null 2>&1 || cargo install bindgen
	bindgen $(R2INC)/libr/$(R2LIB).h -- $(CFLAGS) > src/lib.rs
	#bindgen $(R2INC)/libr/r_cons.h -- $(CFLAGS) > src/lib_cons.rs
	cargo build
	cargo run