mirror of
https://github.com/logos-blockchain/logos-blockchain-pocs.git
synced 2026-01-03 21:53:08 +00:00
* Implement github workflow for natively building the witness generator in linux, windows and macos. * Add release publishing.
18 lines
380 B
Makefile
18 lines
380 B
Makefile
CC = g++
|
|
CFLAGS = -std=c++11 -O3 -I. -I/opt/homebrew/include -include gmp_patch.macos.hpp
|
|
LDFLAGS = -L/opt/homebrew/lib -lgmp
|
|
|
|
DEPS_HPP = circom.hpp calcwit.hpp fr.hpp pol.cpp
|
|
DEPS_O = main.o calcwit.o fr.o pol.o
|
|
|
|
all: pol
|
|
|
|
%.o: %.cpp $(DEPS_HPP)
|
|
$(CC) -Wno-address-of-packed-member -c $< $(CFLAGS) -o $@
|
|
|
|
pol: $(DEPS_O)
|
|
$(CC) -o pol $(DEPS_O) $(LDFLAGS)
|
|
|
|
clean:
|
|
rm -f *.o pol
|