-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
executable file
·42 lines (31 loc) · 872 Bytes
/
Makefile
File metadata and controls
executable file
·42 lines (31 loc) · 872 Bytes
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
HC = ghc
WARN = -Wall \
-fno-warn-unused-do-bind
#-fwarn-name-shadowing \
#-fwarn-incomplete-patterns
CMD = --make
INC = -isoe/SOE/src -i./folklore -i./Lindenmayer
OUTDIR = bin
LM = Lindenmayer
LMDRAW = $(LM)/lindendraw
LMDRAWOBJ = $(LM)/Common.hs \
$(LM)/Config.hs \
$(LM)/System.hs \
$(LM)/Model.hs \
$(LM)/Graphics.hs \
$(LM)/lindendraw.hs
$(LMDRAW): $(LMDRAWOBJ)
$(HC) $(WARN) $(CMD) $(INC) $(LMDRAW)
$(OUTDIR)/lindendraw: $(LMDRAW)
cp $(LMDRAW) $(OUTDIR)
lindendraw: $(OUTDIR)/lindendraw
FOLK = folklore
$(FOLK)/sierpinski: $(FOLK)/sierpinski.hs \
$(FOLK)/Sierpinski.hs
$(HC) $(WARN) $(CMD) $(INC) $(FOLK)/sierpinski
sierpinski: $(FOLK)/sierpinski
cp $(FOLK)/sierpinski $(OUTDIR)
clean:
rm -f Lindenmayer/*.hi
rm -f Lindenmayer/*.o
rm -f bin/*