forked from yixuanzi/lightning_circuit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
26 lines (19 loc) · 858 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
OPTFLAGS = -march=native -mtune=native -O2
CXXFLAGS += -g -Wall -Wextra -Wno-unused-parameter -std=c++11 -fPIC -Wno-unused-variable
CXXFLAGS += -I $(DEPINST)/include -I $(DEPINST)/include/libsnark -DUSE_ASM -DCURVE_ALT_BN128
LDFLAGS += -flto
DEPSRC=../zkSNARK-toy/depsrc
DEPINST=../zkSNARK-toy/depinst
LDLIBS += -L $(DEPINST)/lib -Wl,-rpath $(DEPINST)/lib -L . -lsnark -lgmpxx -lgmp
# apt-get install libboost-program-options-1.60
# apt-get install libboost-all-dev
LDLIBS += -lboost_system
test:
$(CXX) -o test.o src/test.cpp -c $(CXXFLAGS)
$(CXX) -o test test.o $(CXXFLAGS) $(LDFLAGS) $(LDLIBS)
zktrias:
$(CXX) -o zktrias.o src/zkTrias/zktrias.cpp -c $(CXXFLAGS)
$(CXX) -o zktrias zktrias.o $(CXXFLAGS) $(LDFLAGS) $(LDLIBS)
#$(CXX) -o libzktrias.so zktrias.o -shared $(CXXFLAGS) $(LDFLAGS) $(LDLIBS)
clean:
$(RM) test.o test zktrias.o zktrias