-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
50 lines (35 loc) · 862 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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
HC = ghc
FLAGS = -dynamic -O2 -threaded -Wall -Werror -rtsopts
APP1 = 3d-in-2d
SRC1 = 3d-in-2d.hs
APP2 = curves
SRC2 = curves.hs
APP3 = lorenz-attractor
SRC3 = lorenz-attractor.hs
APP4 = random-points-on-sphere
SRC4 = random-points-on-sphere.hs
APP5 = bezier-surface
SRC5 = bezier-surface.hs
APP6 = random-points-on-plane
SRC6 = random-points-on-plane.hs
all: $(APP1) $(APP2) $(APP3) $(APP4) $(APP5) $(APP6)
$(APP1): $(SRC1)
$(HC) $(FLAGS) --make $< -o $@
strip $@
$(APP2): $(SRC2)
$(HC) $(FLAGS) --make $< -o $@
strip $@
$(APP3): $(SRC3)
$(HC) $(FLAGS) --make $< -o $@
strip $@
$(APP4): $(SRC4)
$(HC) $(FLAGS) --make $< -o $@
strip $@
$(APP5): $(SRC5)
$(HC) $(FLAGS) --make $< -o $@
strip $@
$(APP6): $(SRC6)
$(HC) $(FLAGS) --make $< -o $@
strip $@
clean:
rm *.o *.hi $(APP1) $(APP2) $(APP3) $(APP4) $(APP5) $(APP6)