Skip to content

Commit

Permalink
Merge pull request #71 from 3c7/feature/makefile
Browse files Browse the repository at this point in the history
Implementing Makefile for easier manual build process
  • Loading branch information
MatejKastak authored Jan 8, 2024
2 parents 54cadf6 + 854aa6b commit 65ab2d7
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 65ab2d7

Please sign in to comment.