diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..c1177eb --- /dev/null +++ b/Makefile @@ -0,0 +1,16 @@ +target/release/yari: libyari + cd yari-cli && cargo build -r + +libyari: yari-sys/yara/yara + cd yari-sys && cargo build -r + +yari-sys/yara/yara: yari-sys/yara/bootstrap.sh + cd yari-sys/yara && ./bootstrap.sh && CFLAGS="-fPIC ${CFLAGS}" ./configure --enable-debug --disable-shared --enable-static --enable-cuckoo --enable-magic --enable-dotnet --with-crypto && make clean && make + +yari-sys/yara/bootstrap.sh: + git submodule update --init --force + +.PHONY: clean +clean: + cargo clean + @cd yari-sys/yara 2> /dev/null && make clean