diff --git a/Makefile b/Makefile index 0a802b9..5634dfb 100644 --- a/Makefile +++ b/Makefile @@ -13,9 +13,14 @@ CC:=clang CARGO?=cargo DOCKER?=docker -.PHONY: build clean dist +.PHONY: build build_base build_sancov clean dist -build: +build: build_base build_sancov + +build_base: + RUSTFLAGS="" $(CARGO) build --release --lib + +build_sancov: RUSTFLAGS="$(RUSTFLAGS)" $(CARGO) build --target x86_64-unknown-linux-gnu --release --lib test/self_test: test/self_test.c @@ -28,5 +33,6 @@ dist: mkdir -pv dist && \ IMAGE=`$(DOCKER) build -q -f ubuntu2004.Dockerfile .` && \ CONTAINER=`$(DOCKER) create $$IMAGE` && \ - $(DOCKER) cp $$CONTAINER:/app/target/x86_64-unknown-linux-gnu/release/libsolfuzz_agave.so dist/ && \ + $(DOCKER) cp $$CONTAINER:/app/target/x86_64-unknown-linux-gnu/release/libsolfuzz_agave.so dist/libsolfuzz_agave_sancov.so && \ + $(DOCKER) cp $$CONTAINER:/app/target/release/libsolfuzz_agave.so dist/libsolfuzz_agave.so && \ $(DOCKER) rm $$CONTAINER