-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
20 lines (18 loc) · 622 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
all: c rust
c:
gcc -o mpmt1c mpmt1.c -lpthread
python:
echo 'Execute `python3 mpmt1.py`'
go:
go build -o mpmt1go mpmt1.go
scala:
scalac mpmt1.scala
haskell:
ghc -threaded -rtsopts -o mpmt1hs mpmt1.hs
zigwasm:
zig build-exe mpmt1.zig -femit-bin=mpmt1zig.wasm -target wasm32-wasi --shared-memory -mcpu=mvp+atomics+bulk_memory --import-memory --export=wasi_thread_start --export-memory -fno-single-threaded
fortran:
gfortran mpmt1.f08 -o mpmt1f08 -fopenmp
clean:
/bin/rm -f *~ *.o mpmt1c mpmt1go *.class *.tasty *.dump *.beam mpmt1hs mpmt1.hi mpmt1pas mpmt1cpp *.cmi *.cmo *.wasm mpmt1f08
cd rust && cargo clean