From 086b15bc7c1a2a29548bee1042699596be83fdce Mon Sep 17 00:00:00 2001 From: 3c7 <3c7@posteo.de> Date: Thu, 4 Jan 2024 20:55:37 +0100 Subject: [PATCH 1/2] Implementing Makefile for easier manual build process --- Makefile | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..64758d1 --- /dev/null +++ b/Makefile @@ -0,0 +1,16 @@ +target/release/yari: libyari + cd yari-cli && cargo build -r + +libyari: yara + cd yari-sys && cargo build -r + +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 + +clean: + cargo clean + @cd yari-sys/yara 2> /dev/null && make clean + From 854aa6be5db45103d0e82bafd2d8276bea0967fd Mon Sep 17 00:00:00 2001 From: 3c7 <3c7@posteo.de> Date: Sat, 6 Jan 2024 18:25:42 +0100 Subject: [PATCH 2/2] Updated filenames --- Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 64758d1..c1177eb 100644 --- a/Makefile +++ b/Makefile @@ -1,16 +1,16 @@ target/release/yari: libyari cd yari-cli && cargo build -r -libyari: yara +libyari: yari-sys/yara/yara cd yari-sys && cargo build -r -yara: yari-sys/yara/bootstrap.sh +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 -