-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
33 lines (27 loc) · 1003 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
27
28
29
30
31
32
33
all: gmp dotnet
gmp:
g++ -std=c++11 -Ofast --shared src/csBigIntegerLib.cpp src/BigIntegerGMP.cpp -lgmp -lgmpxx -o build/csbiginteger_gmp.so -fPIC
dotnet:
dotnet build src/dotnet/ -c Release
cp src/dotnet/bin/Release/netstandard2.0/csbiginteger_dotnet.dll build/
mono --aot -O=all build/csbiginteger_dotnet.dll
g++ -std=c++11 -Ofast --shared src/BigIntegerMono.cpp src/csBigIntegerLib.cpp `pkg-config --cflags --libs mono-2` -o build/csbiginteger_mono.so -fPIC
vendor:
@echo "trying to install GNU lgmp library (debian-based systems)"
sudo apt-get install libgmp-dev
@echo "trying to configure libgtest on tests/"
(cd tests/libgtest && mkdir -p build && cd build && cmake .. && make)
test:
@echo "Performing basic tests now"
@echo
(cd tests && make test)
@echo
@echo "Generating coverage (see tests/reports/)"
@echo
#(cd tests && make test-coverage)
@echo
@echo "Performing hard tests now... this will take a while!"
@echo
#(cd tests && make test-hard)
clean:
rm build/*.so