-
Notifications
You must be signed in to change notification settings - Fork 3
/
Makefile
298 lines (232 loc) · 6.77 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
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
# Don't edit Makefile! Use conf-* for configuration.
SHELL=/bin/sh
default: it
auto-ccld.sh: \
conf-cc conf-ld warn-auto.sh
( cat warn-auto.sh; \
echo CC=\'`head -1 conf-cc`\'; \
echo LD=\'`head -1 conf-ld`\' \
) > auto-ccld.sh
caldate.0: \
caldate.3
nroff -man caldate.3 > caldate.0
caldate_fmjd.o: \
compile caldate_fmjd.c caldate.h
./compile caldate_fmjd.c
caldate_fmt.o: \
compile caldate_fmt.c caldate.h
./compile caldate_fmt.c
caldate_mjd.0: \
caldate_mjd.3
nroff -man caldate_mjd.3 > caldate_mjd.0
caldate_mjd.o: \
compile caldate_mjd.c caldate.h
./compile caldate_mjd.c
caldate_norm.o: \
compile caldate_norm.c caldate.h
./compile caldate_norm.c
caldate_scan.o: \
compile caldate_scan.c caldate.h
./compile caldate_scan.c
caldate_ster.o: \
compile caldate_ster.c caldate.h
./compile caldate_ster.c
caltime.0: \
caltime.3
nroff -man caltime.3 > caltime.0
caltime_fmt.o: \
compile caltime_fmt.c caldate.h caltime.h
./compile caltime_fmt.c
caltime_scan.o: \
compile caltime_scan.c caltime.h caldate.h
./compile caltime_scan.c
caltime_tai.0: \
caltime_tai.3
nroff -man caltime_tai.3 > caltime_tai.0
caltime_tai.o: \
compile caltime_tai.c tai.h uint64.h leapsecs.h caldate.h caltime.h
./compile caltime_tai.c
caltime_utc.o: \
compile caltime_utc.c tai.h uint64.h leapsecs.h caldate.h caltime.h
./compile caltime_utc.c
check: \
load check.o libtai.a
./load check libtai.a
check.o: \
compile check.c tai.h uint64.h leapsecs.h caltime.h caldate.h
./compile check.c
compile: \
make-compile warn-auto.sh systype
( cat warn-auto.sh; ./make-compile "`cat systype`" ) > \
compile
chmod 755 compile
easter: \
load easter.o libtai.a
./load easter libtai.a
easter.o: \
compile easter.c caldate.h
./compile easter.c
find-systype: \
find-systype.sh auto-ccld.sh
cat auto-ccld.sh find-systype.sh > find-systype
chmod 755 find-systype
it: \
man libtai.a leapsecs check easter yearcal nowutc
leapsecs: \
load leapsecs.o libtai.a
./load leapsecs libtai.a
leapsecs.0: \
leapsecs.3
nroff -man leapsecs.3 > leapsecs.0
leapsecs.o: \
compile leapsecs.c tai.h uint64.h leapsecs.h caldate.h
./compile leapsecs.c
leapsecs_add.o: \
compile leapsecs_add.c leapsecs.h tai.h uint64.h
./compile leapsecs_add.c
leapsecs_init.o: \
compile leapsecs_init.c leapsecs.h
./compile leapsecs_init.c
leapsecs_read.o: \
compile leapsecs_read.c tai.h uint64.h leapsecs.h
./compile leapsecs_read.c
leapsecs_sub.o: \
compile leapsecs_sub.c leapsecs.h tai.h uint64.h
./compile leapsecs_sub.c
libtai.a: \
makelib tai_add.o tai_now.o tai_pack.o tai_sub.o tai_unpack.o \
taia_add.o taia_approx.o taia_fmtfrac.o taia_frac.o taia_half.o \
taia_less.o taia_now.o taia_pack.o taia_sub.o taia_tai.o \
taia_unpack.o caldate_fmt.o caldate_scan.o caldate_fmjd.o \
caldate_mjd.o caldate_norm.o caldate_ster.o leapsecs_read.o \
leapsecs_init.o leapsecs_add.o leapsecs_sub.o caltime_fmt.o \
caltime_scan.o caltime_tai.o caltime_utc.o
./makelib libtai.a tai_add.o tai_now.o tai_pack.o \
tai_sub.o tai_unpack.o taia_add.o taia_approx.o \
taia_fmtfrac.o taia_frac.o taia_half.o taia_less.o \
taia_now.o taia_pack.o taia_sub.o taia_tai.o taia_unpack.o \
caldate_fmt.o caldate_scan.o caldate_fmjd.o caldate_mjd.o \
caldate_norm.o caldate_ster.o leapsecs_read.o \
leapsecs_init.o leapsecs_add.o leapsecs_sub.o caltime_fmt.o \
caltime_scan.o caltime_tai.o caltime_utc.o
load: \
make-load warn-auto.sh systype
( cat warn-auto.sh; ./make-load "`cat systype`" ) > load
chmod 755 load
make-compile: \
make-compile.sh auto-ccld.sh
cat auto-ccld.sh make-compile.sh > make-compile
chmod 755 make-compile
make-load: \
make-load.sh auto-ccld.sh
cat auto-ccld.sh make-load.sh > make-load
chmod 755 make-load
make-makelib: \
make-makelib.sh auto-ccld.sh
cat auto-ccld.sh make-makelib.sh > make-makelib
chmod 755 make-makelib
makelib: \
make-makelib warn-auto.sh systype
( cat warn-auto.sh; ./make-makelib "`cat systype`" ) > \
makelib
chmod 755 makelib
man: \
tai.0 tai_now.0 tai_pack.0 taia.0 taia_now.0 taia_pack.0 caldate.0 \
caldate_mjd.0 caltime.0 caltime_tai.0 leapsecs.0
nowutc: \
load nowutc.o libtai.a
./load nowutc libtai.a
nowutc.o: \
compile nowutc.c leapsecs.h tai.h uint64.h taia.h caltime.h caldate.h
./compile nowutc.c
shar: \
FILES BLURB README INSTALL TODO THANKS CHANGES FILES VERSION Makefile \
leapsecs.txt leapsecs.dat leapsecs.c check.in check.out check.c \
easter.c yearcal.c nowutc.c caldate.3 caldate_mjd.3 caldate.h \
caldate_fmt.c caldate_scan.c caldate_mjd.c caldate_fmjd.c \
caldate_norm.c caldate_ster.c tai.3 tai_now.3 tai_pack.3 tai.h \
tai_add.c tai_now.c tai_pack.c tai_sub.c tai_unpack.c leapsecs.3 \
leapsecs.h leapsecs_add.c leapsecs_sub.c leapsecs_init.c \
leapsecs_read.c caltime.3 caltime_tai.3 caltime.h caltime_fmt.c \
caltime_scan.c caltime_tai.c caltime_utc.c taia.3 taia_now.3 \
taia_pack.3 taia.h taia_add.c taia_approx.c taia_fmtfrac.c \
taia_frac.c taia_half.c taia_less.c taia_now.c taia_pack.c taia_sub.c \
taia_tai.c taia_unpack.c uint64.h conf-cc conf-ld find-systype.sh \
make-compile.sh make-load.sh make-makelib.sh trycpp.c warn-auto.sh
shar -m `cat FILES` > shar
chmod 400 shar
systype: \
find-systype trycpp.c
./find-systype > systype
tai.0: \
tai.3
nroff -man tai.3 > tai.0
tai_add.o: \
compile tai_add.c tai.h uint64.h
./compile tai_add.c
tai_now.0: \
tai_now.3
nroff -man tai_now.3 > tai_now.0
tai_now.o: \
compile tai_now.c tai.h uint64.h
./compile tai_now.c
tai_pack.0: \
tai_pack.3
nroff -man tai_pack.3 > tai_pack.0
tai_pack.o: \
compile tai_pack.c tai.h uint64.h
./compile tai_pack.c
tai_sub.o: \
compile tai_sub.c tai.h uint64.h
./compile tai_sub.c
tai_unpack.o: \
compile tai_unpack.c tai.h uint64.h
./compile tai_unpack.c
taia.0: \
taia.3
nroff -man taia.3 > taia.0
taia_add.o: \
compile taia_add.c taia.h tai.h uint64.h
./compile taia_add.c
taia_approx.o: \
compile taia_approx.c taia.h tai.h uint64.h
./compile taia_approx.c
taia_fmtfrac.o: \
compile taia_fmtfrac.c taia.h tai.h uint64.h
./compile taia_fmtfrac.c
taia_frac.o: \
compile taia_frac.c taia.h tai.h uint64.h
./compile taia_frac.c
taia_half.o: \
compile taia_half.c taia.h tai.h uint64.h
./compile taia_half.c
taia_less.o: \
compile taia_less.c taia.h tai.h uint64.h
./compile taia_less.c
taia_now.0: \
taia_now.3
nroff -man taia_now.3 > taia_now.0
taia_now.o: \
compile taia_now.c taia.h tai.h uint64.h
./compile taia_now.c
taia_pack.0: \
taia_pack.3
nroff -man taia_pack.3 > taia_pack.0
taia_pack.o: \
compile taia_pack.c taia.h tai.h uint64.h
./compile taia_pack.c
taia_sub.o: \
compile taia_sub.c taia.h tai.h uint64.h
./compile taia_sub.c
taia_tai.o: \
compile taia_tai.c taia.h tai.h uint64.h
./compile taia_tai.c
taia_unpack.o: \
compile taia_unpack.c taia.h tai.h uint64.h
./compile taia_unpack.c
yearcal: \
load yearcal.o libtai.a
./load yearcal libtai.a
yearcal.o: \
compile yearcal.c caldate.h
./compile yearcal.c