/
Makefile
168 lines (145 loc) · 3.74 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
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
HC_SPEC_FLAGS= -package WashNGo
HCLOADFLAGS= $(OPT) $(HC_SPEC_FLAGS)
#OPT= -O
OPT=
HCFLAGS= $(OPT) $(HC_SPEC_FLAGS) $(HINCLUDES) $(HCEXTRAFLAGS)
HINCLUDES=
LINK.o= $(HC) $(HCLOADFLAGS)
FILES= Makefile $(HS_FILES)
HS_FILES= \
CalcHistory.hs \
CalcFix.hs \
Calculator.hs \
Counter.hs \
CounterControl.hs \
CounterWithBoundedLog.hs \
DiskImages.hs \
ForeignReport.hs \
GuessNumber.hs \
GuessNumberCookie.hs \
GuessNumberNoCheating.hs \
HelloWorld.hs \
Item.hs \
Login.hs \
Manager.hs \
Multiplication.hs \
RepBase.hs \
Report2.hs \
Score.hs \
SendFile.hs \
Submit.hs \
TimeTable.hs \
TinyShop.hs \
TinyShopXX.hs \
Tutorial.hs \
UpDownCounter.hs \
Upload.hs \
UseAT.hs \
UseCGI4.hs \
UseGraphics.hs \
Vote.hs \
ex1.hs ex2-2.hs ex2-3.hs ex3-1.hs ex3-2-a.hs ex3-2-b.hs
OTHER_FILES= \
GraphicsEditor.hs \
MANAGER.hs \
ReportForAuthor.hs \
EXAMPLES= \
CalcHistory CalcFix Calculator Counter HelloWorld \
Multiplication UpDownCounter UseAT UseCGI4 UseGraphics \
GuessNumberCookie GuessNumber GuessNumberNoCheating TimeTable \
SendFile Tutorial Upload Vote TinyShop TinyShopXX \
ex1 ex2-2 ex2-3 ex3-1 ex3-2-a ex3-2-b
# GraphicsEditor
all: $(EXAMPLES)
include $(TOP)/mk/config.mk
include $(TOP)/mk/common.mk
WASH-CGI-Examples-$(VERSION).tgz: $(FILES)
$(TAR) cvhfz $@ $(FILES)
install: all
$(SSH) $(WWWHOST) mkdir -p $(CGIDIR); \
for f in $(EXAMPLES); \
do \
$(SCP) -q $$f $(WWWHOST):$(CGIDIR)/$$f.cgi; \
$(SSH) $(WWWHOST) chmod 755 $(CGIDIR)/$$f.cgi; \
done
install-example-sources:
for f in $(EXAMPLES); \
do \
$(SCP) -q $$f.hs $(WWWHOST):$(WWWDIR); \
$(SSH) $(WWWHOST) chmod 644 $(WWWDIR)/$$f.hs; \
done
Manager: Manager.o Item.o RepBase.o Report2.o Submit.o ForeignReport.o
$(LINK.o) $^ -o $@ -package text
MANAGER: MANAGER.o Item.o RepBase.o Report2.o Submit.o ForeignReport.o
$(LINK.o) $^ -o $@ -package text
Manager.o : Manager.hs
$(HC) $(HCFLAGS) -c $< -o $@
MANAGER.o : MANAGER.hs
$(HC) $(HCFLAGS) -c $< -o $@
Report2.o : Report2.hs
$(HC) $(HCFLAGS) -c $< -o $@
Submit.o : Submit.hs
$(HC) $(HCFLAGS) -c $< -o $@
Item.o : Item.hs
$(HC) $(HCFLAGS) -c $< -o $@
GuessNumber: GuessNumber.o Score.o
GuessNumberNoCheating: GuessNumberNoCheating.o Score.o
GuessNumberCookie: GuessNumberCookie.o Score.o
TinyShop: TinyShop.o DiskImages.o
$(LINK.o) $^ -o $@ -package text
TinyShopXX: TinyShopXX.o DiskImages.o
$(LINK.o) $^ -o $@ -package text
clean::
$(RM) -f *.hi *.o
veryclean:: clean
$(RM) -f $(EXAMPLES)
depend::
$(HC) -M $(HCFLAGS) $(HS_FILES)
include $(TOP)/mk/common-goals.mk
# DO NOT DELETE: Beginning of Haskell dependencies
Calculator.o : Calculator.hs
Counter.o : Counter.hs
DiskImages.o : DiskImages.hs
ForeignReport.o : ForeignReport.hs
ForeignReport.o : ./RepBase.hi
ForeignReport.o : ./Item.hi
GuessNumber.o : GuessNumber.hs
GuessNumber.o : ./Score.hi
GuessNumberCookie.o : GuessNumberCookie.hs
GuessNumberNoCheating.o : GuessNumberNoCheating.hs
GuessNumberNoCheating.o : ./Score.hi
HelloWorld.o : HelloWorld.hs
Item.o : Item.hs
Login.o : Login.hs
Manager.o : Manager.hs
Manager.o : ./Submit.hi
Multiplication.o : Multiplication.hs
RepBase.o : RepBase.hs
RepBase.o : Item.hi
Report2.o : Report2.hs
Report2.o : RepBase.hi
Score.o : Score.hs
SendFile.o : SendFile.hs
Submit.o : Submit.hs
Submit.o : ForeignReport.hi
Submit.o : Report2.hi
Submit.o : Item.hi
TimeTable.o : TimeTable.hs
TinyShop.o : TinyShop.hs
TinyShop.o : DiskImages.hi
TinyShopXX.o : TinyShopXX.hs
TinyShopXX.o : DiskImages.hi
Tutorial.o : Tutorial.hs
UpDownCounter.o : UpDownCounter.hs
Upload.o : Upload.hs
UseAT.o : UseAT.hs
UseCGI4.o : UseCGI4.hs
UseGraphics.o : UseGraphics.hs
Vote.o : Vote.hs
ex1.o : ex1.hs
ex2-2.o : ex2-2.hs
ex2-3.o : ex2-3.hs
ex3-1.o : ex3-1.hs
ex3-2-a.o : ex3-2-a.hs
ex3-2-b.o : ex3-2-b.hs
# DO NOT DELETE: End of Haskell dependencies