This repository has been archived by the owner on Dec 23, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: use relative paths to tfhe-rs
Use relative paths to tfhe-rs instead of environment variables.
- Loading branch information
1 parent
c038c4b
commit 45fd69c
Showing
2 changed files
with
8 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,15 @@ | ||
ROOT_DIR:=$(shell dirname $(realpath $(firstword $(MAKEFILE_LIST)))) | ||
TFHE_RS_FOLDER=${ROOT_DIR}/tfhe-rs/ | ||
CGO_CFLAGS="-I${TFHE_RS_FOLDER}/target/release/" | ||
CGO_LDFLAGS="-L${TFHE_RS_FOLDER}/target/release/" | ||
|
||
.PHONY: build | ||
build: build-tfhe-rs-capi | ||
cd fhevm && CGO_CFLAGS=${CGO_CFLAGS} CGO_LDFLAGS=${CGO_LDFLAGS} go build . | ||
cd fhevm && go build . | ||
|
||
.PHONY: test | ||
test: build-tfhe-rs-capi | ||
cd fhevm && CGO_CFLAGS=${CGO_CFLAGS} CGO_LDFLAGS=${CGO_LDFLAGS} go test -v . | ||
cd fhevm && go test -v . | ||
|
||
.PHONY: build-tfhe-rs-capi | ||
build-tfhe-rs-capi: | ||
cd tfhe-rs && make build_c_api_experimental_deterministic_fft | ||
|
||
.PHONY: clean | ||
clean: | ||
cd tfhe-rs && cargo clean |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters