-
Notifications
You must be signed in to change notification settings - Fork 35
/
Makefile
48 lines (34 loc) · 1.16 KB
/
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
EXE := concurrent.exe ref.exe transaction.exe echo.exe \
dyn_wind.exe generator.exe promises.exe reify_reflect.exe \
MVar_test.exe chameneos.exe eratosthenes.exe pipes.exe loop.exe \
fringe.exe algorithmic_differentiation.exe dynamic_state.exe
all: $(EXE)
concurrent.exe: sched.mli sched.ml concurrent.ml
dune build concurrent.exe
ref.exe: state.ml ref.ml
dune build ref.exe
echo.exe: aio/aio.mli aio/aio.ml aio/echo.ml
dune build aio/echo.exe
MVar_test.exe: mvar/MVar_test.ml
dune build mvar/MVar_test.exe
chameneos.exe: mvar/chameneos.ml
dune build mvar/chameneos.exe
chameneos_systhr.exe: mvar/chameneos_systhr.ml
dune build mvar/chameneos_systhr.exe
chameneos_lwt.exe: mvar/chameneos_lwt.ml
dune build mvar/chameneos_lwt.exe
chameneos_monad.exe: mvar/chameneos_monad.ml
dune build mvar/chameneos_monad.exe
chameneos-ghc.exe: mvar/chameneos.hs
ghc -o mvar/chameneos-ghc.exe -cpp -XBangPatterns -XScopedTypeVariables \
-XGeneralizedNewtypeDeriving mvar/chameneos.hs
callback:
dune build callbacks/callback
%.exe: %.ml
dune build $@
clean:
dune clean
rm -f mvar/*.exe mvar/*.o mvar/*.hi mvar/dune-project
rm -f *.exe
rm -rf aio/dune-project
.PHONY: clean