-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
123 lines (107 loc) · 2.34 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
LEX = alex
HAPPY = happy
GHC = ghc
GHC_FLAGS = -package std -package lang -O -fvia-C -O2-for-C
.PHONY: depend clean
.SUFFIXES: .o .hs .hi .x .y
.o.hi:
@:
.hs.o:
$(GHC) -c $< $(GHC_FLAGS)
.x.hs:
$(LEX) $<
.y.hs:
$(HAPPY) $<
ALEX_INPUT = GMLLexer.x
HAPPY_INPUT = GMLParser.y
SRCS = Alex.hs \
GMLSyn.hs \
GML.hs \
Eval.hs \
Utils.hs \
Point.hs \
Vector.hs \
Matrix.hs \
Object.hs \
Intersect.hs \
Surface.hs \
Render.hs \
Light.hs \
Simplify.hs
ALL_SRCS = $(SRCS) $(ALEX_INPUT:.x=.hs) $(HAPPY_INPUT:.y=.hs)
OBJS = $(ALL_SRCS:.hs=.o)
depend: $(ALL_SRCS)
ghc -M $(GHC_FLAGS) $(ALL_SRCS)
gml: $(ALEX_INPUT) $(HAPPY_INPUT) $(OBJS)
@rm -f $@
$(GHC) -o $@ $(GHC_FLAGS) $(OBJS)
@strip $@
clean:
@rm -f *.o *.hi *.hi-boot
gmlprof:: GHC_FLAGS += -prof -auto-all
gmlprof:: gml
# DO NOT DELETE: Beginning of Haskell dependencies
Alex.o : Alex.hs
GMLSyn.o : GMLSyn.hs
GML.o : GML.hs
GML.o : ./Eval.hi
GML.o : ./GMLParser.hi
GML.o : ./GMLLexer.hi
Eval.o : Eval.hs
Eval.o : ./Render.hi
Eval.o : ./Object.hi
Eval.o : ./GMLSyn.hi
Eval.o : ./Light.hi
Eval.o : ./Utils.hi
Eval.o : ./Point.hi
Utils.o : Utils.hs
Point.o : Point.hs
Vector.o : Vector.hs
Vector.o : ./Point.hi
Matrix.o : Matrix.hs
Matrix.o : ./Vector.hi
Matrix.o : ./Point.hi
Matrix.o : ./Utils.hi
Object.o : Object.hs
Object.o : ./Matrix.hi
Object.o : ./Vector.hi
Object.o : ./Point.hi
Intersect.o : Intersect.hs
Intersect.o : ./Object.hi
Intersect.o : ./Utils.hi
Intersect.o : ./Simplify.hi
Intersect.o : ./Matrix.hi
Intersect.o : ./Vector.hi
Intersect.o : ./Point.hi
Surface.o : Surface.hs
Surface.o : ./Object.hi
Surface.o : ./Point.hi
Render.o : Render.hs
Render.o : ./Simplify.hi
Render.o : ./Intersect.hi
Render.o : ./Surface.hi
Render.o : ./Object.hi
Render.o : ./Matrix.hi
Render.o : ./Vector.hi
Render.o : ./Light.hi
Render.o : ./Point.hi
Render.o : ./Utils.hi
Light.o : Light.hs
Light.o : ./Intersect.hi
Light.o : ./Object.hi
Light.o : ./Vector.hi
Light.o : ./Point.hi
Light.o : ./Utils.hi
Simplify.o : Simplify.hs
Simplify.o : ./Utils.hi
Simplify.o : ./Object.hi
Simplify.o : ./Matrix.hi
Simplify.o : ./Vector.hi
Simplify.o : ./Point.hi
GMLLexer.o : GMLLexer.hs
GMLLexer.o : ./GMLSyn.hi
GMLLexer.o : ./Alex.hi
GMLParser.o : GMLParser.hs
GMLParser.o : ./GMLLexer.hi
GMLParser.o : ./GMLSyn.hi
# DO NOT DELETE: End of Haskell dependencies