blob: 38638338bfc5a94fd797a3d4ebf4e39ff6a827fb (
plain)
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
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
|
include ./make.pkgs
#-------------------------- dirs
DIRS = bin lib include man share dist
#-------------------------- cvs stuff
CVSFILES = admin \
compilers \
BUILD.txt \
copyright \
ds9 \
macosx \
make.include \
make.pkgs \
mods \
LICENSE.txt \
tests \
tkmacosx \
tksao \
tkwin \
unix \
win
#-------------------------- main
.NOTPARALLEL :
.PHONY : all dirs ds9 tclcheckdns tcliis tclsignal tclxml tclzvfs xpa
.PHONY : tkblt tkcon tkhtml1 tkimg tkmpeg tksao tktable
.PHONY : ast funtools
all : saods9
dirs :
@echo ""
@echo "*** Cores $(JOBS) ***"
@echo ""
@echo "*** Install $@ ***"
@for d in $(DIRS); do if [ ! -d $$d ]; then mkdir $$d; fi done
#-------------------------- ds9
ds9 : scrub ds9/$(OS)/Makefile
@echo ""
@echo "*** Installing ds9 ***"
$(MAKE) -C ds9/$(OS) -j $(JOBS)
debug : scrub ds9/$(OS)/Makefile
@echo ""
@echo "*** Installing ds9 ***"
$(MAKE) -C ds9/$(OS) -j $(JOBS) debug
ds9/$(OS)/Makefile :
@echo ""
@echo "*** Configure ds9 ***"
cd ds9/$(OS); \
./configure \
$(WITHTK) \
--prefix $(ROOT) --exec-prefix $(ROOT) \
--enable-symbols
#-------------------------- tclcheckdns
tclcheckdns : tclcheckdns/Makefile
@echo ""
@echo "*** Install tclcheckdns ***"
$(MAKE) -C tclcheckdns -j $(JOBS) install
tclcheckdns/Makefile :
@echo ""
@echo "*** Configure tclcheckdns ***"
cd tclcheckdns; \
./configure \
$(WITHTCL) \
--prefix $(ROOT) --exec-prefix $(ROOT) \
--disable-shared --enable-symbols \
$(CACHE)
#-------------------------- tcliis
tcliis : tcliis/Makefile
@echo ""
@echo "*** Install tcliis ***"
$(MAKE) -C tcliis -j $(JOBS) install
tcliis/Makefile :
@echo ""
@echo "*** Configure tcliis ***"
cd tcliis; \
./configure \
$(WITHTCL) \
--prefix $(ROOT) --exec-prefix $(ROOT) \
--disable-shared --enable-symbols \
$(CACHE)
#-------------------------- tclsignal
tclsignal: tclsignal/Makefile
@echo ""
@echo "*** Install tclsignal ***"
$(MAKE) -C tclsignal install
tclsignal/Makefile :
@echo ""
@echo "*** Configure tclsignal ***"
cd tclsignal; \
./configure \
$(WITHTCL) \
--prefix $(ROOT) --exec-prefix $(ROOT) \
--disable-shared --enable-symbols \
$(CACHE)
#-------------------------- tclxml
# no parallel
tclxml : tclxml/Makefile
@echo ""
@echo "*** Install tclxml ***"
$(MAKE) -C tclxml install
tclxml/Makefile :
@echo ""
@echo "*** Configure tclxml ***"
cd tclxml; \
./configure \
$(WITHTCL) \
$(TCLXMLFLAGS) \
--prefix $(ROOT) --exec-prefix $(ROOT) \
--disable-shared --enable-symbols \
$(CACHE)
#-------------------------- tclzvfs
tclzvfs : tclzvfs/Makefile
@echo ""
@echo "*** Install tclzvfs ***"
$(MAKE) -C tclzvfs install
tclzvfs/Makefile :
@echo ""
@echo "*** Configure tclzvfs ***"
cd tclzvfs; \
./configure \
$(WITHTCL) \
--prefix $(ROOT) --exec-prefix $(ROOT) \
--disable-shared --enable-symbols \
$(CACHE)
#-------------------------- xpa
# no config.cache
xpa : xpa/Makefile
@echo ""
@echo "*** Install xpa ***"
$(MAKE) -C xpa -j $(JOBS) install
xpa/Makefile :
@echo ""
@echo "*** Configure xpa ***"
cd xpa; \
./configure \
$(CONFIGFLAGS) $(TARGET) $(XPAFLAGS) \
$(WITHTCL) \
--prefix $(ROOT) --exec-prefix $(ROOT) \
--disable-shared --enable-symbols \
--with-x=disabled
#-------------------------- tkblt
tkblt : tkblt/Makefile
@echo ""
@echo "*** Install tkblt ***"
$(MAKE) -C tkblt -j $(JOBS) install
tkblt/Makefile :
@echo ""
@echo "*** Configure tkblt ***"
cd tkblt; \
./configure \
$(WITHTK) \
--prefix $(ROOT) --exec-prefix $(ROOT) \
--disable-shared --enable-symbols \
$(CACHE)
#-------------------------- tkcon
tkcon :
@echo ""
@echo "*** Install $@ ***"
$(RM) -r lib/tkcon$(TKCONVER)
mkdir lib/tkcon$(TKCONVER)
cp tkcon/*.tcl lib/tkcon$(TKCONVER)
#-------------------------- tkhtml1
# no parallel
# make sure htmltokens.c does not get regenerated (windows)
tkhtml1 : tkhtml1/Makefile
@echo ""
@echo "*** Install tkhtml1 ***"
touch tkhtml1/src/htmltokens.c
$(MAKE) -C tkhtml1 install
tkhtml1/Makefile :
@echo ""
@echo "*** Configure tkhtml1 ***"
cd tkhtml1; \
./configure \
$(WITHTK) \
--prefix $(ROOT) --exec-prefix $(ROOT) \
--disable-shared --enable-symbols \
$(CACHE)
#-------------------------- tkimg
tkimg : tkimg/Makefile
@echo ""
@echo "*** Install tkimg ***"
$(MAKE) -C tkimg -j $(JOBS) install
# no config.cache
tkimg/Makefile :
@echo ""
@echo "*** Configure tkimg ***"
cd tkimg; \
./configure \
CFLAGS='-DPNG_NO_WRITE_gAMA' \
$(WITHTK) $(TKIMGFLAGS) \
--prefix $(ROOT) --exec-prefix $(ROOT) \
--disable-shared --enable-symbols
#-------------------------- tkmpeg
tkmpeg : tkmpeg/Makefile
@echo ""
@echo "*** Install tkmpeg ***"
$(MAKE) -C tkmpeg -j $(JOBS) install
tkmpeg/Makefile :
@echo ""
@echo "*** Configure tkmpeg ***"
cd tkmpeg; \
./configure \
$(WITHTK) \
--prefix $(ROOT) --exec-prefix $(ROOT) \
--disable-shared --enable-symbols \
$(CACHE)
#-------------------------- tksao
tksao : ast funtools tksao/Makefile
@echo ""
@echo "*** Install tksao ***"
$(MAKE) -C tksao -j $(JOBS) install
tksao/Makefile :
@echo ""
@echo "*** Configure tksao ***"
cd tksao; \
./configure \
$(WITHTK) \
--prefix $(ROOT) --exec-prefix $(ROOT) \
--disable-shared --enable-symbols \
$(CACHE)
#-------------------------- ast
ast : ast/Makefile ast/ast.h ast/.libs/libast.a ast/.libs/libast_err.a ast/.libs/libast_pal.a
ast/Makefile :
@echo ""
@echo "*** Configure ast ***"
cd ast; \
./configure \
$(ASTFLAGS) \
--without-pthreads --enable-shared=no \
star_cv_cnf_trail_type=long star_cv_cnf_f2c_compatible=no \
$(CONFIGFLAGS) \
--prefix $(ROOT) --exec-prefix $(ROOT) \
--disable-shared
cd ast; touch configure.ac aclocal.m4 configure Makefile.am Makefile.in
ast/ast.h :
@echo ""
@echo "*** Install ast/ast.h ***"
$(MAKE) -C ast -j ast.h
$(MAKE) -C ast -j $(JOBS) libast.la
$(MAKE) -C ast -j $(JOBS) libast_err.la
$(MAKE) -C ast -j $(JOBS) libast_pal.la
cp ast/ast.h $(ROOT)/include/.
cp ast/grf.h $(ROOT)/include/.
cp ast/grf3d.h $(ROOT)/include/.
cp ast/.libs/libast.a $(ROOT)/lib/.
cp ast/.libs/libast_err.a $(ROOT)/lib/.
cp ast/.libs/libast_pal.a $(ROOT)/lib/.
ast/.libs/libast.a :
@echo ""
@echo "*** Install ast/ast.h ***"
$(MAKE) -C ast -j ast.h
cp ast/ast.h $(ROOT)/include/.
cp ast/grf.h $(ROOT)/include/.
cp ast/grf3d.h $(ROOT)/include/.
ast/.libs/libast_err.a :
@echo ""
@echo "*** Install ast/libast_err.a ***"
$(MAKE) -C ast -j $(JOBS) libast_err.la
cp ast/.libs/libast_err.a $(ROOT)/lib/.
ast/.libs/libast_pal.a :
@echo ""
@echo "*** Install ast/libast_pal.a ***"
$(MAKE) -C ast -j $(JOBS) libast_pal.la
cp ast/.libs/libast_pal.a $(ROOT)/lib/.
#-------------------------- funtools
funtools : funtools/libfuntools.a
# no parallel
funtools/libfuntools.a : funtools/Makefile
@echo ""
@echo "*** Install funtools ***"
$(MAKE) -C funtools lib
cp funtools/funtools.h $(ROOT)/include/.
cp funtools/filter/*.h $(ROOT)/include/.
cp funtools/util/*.h $(ROOT)/include/.
cp funtools/fitsy/*.h $(ROOT)/include/.
cp funtools/libfuntools.a $(ROOT)/lib/.
funtools/Makefile : funtools/configure
@echo ""
@echo "*** Configure funtools ***"
cd funtools; \
./configure \
--with-zlib=../lib --with-wcslib=../lib \
$(CONFIGFLAGS) $(TARGET) \
--prefix $(ROOT) --exec-prefix $(ROOT) \
--disable-shared
funtools/configure :
cd funtools; \
./mkconfigure
#-------------------------- tktable
# no parallel
tktable : tktable/Makefile
@echo ""
@echo "*** Install tktable ***"
$(MAKE) -C tktable install
tktable/Makefile :
@echo ""
@echo "*** Configure tktable ***"
cd tktable; \
./configure \
$(WITHTK) \
--prefix $(ROOT) --exec-prefix $(ROOT) \
--disable-shared --enable-symbols \
$(CACHE)
#-------------------------- language
.PHONY : language
language:
cd ds9; \
grep 'msgcat::mc' library/*.tcl | tclsh8.6 util/mergedict.tcl da iso8859-1; \
grep 'msgcat::mc' library/*.tcl | tclsh8.6 util/mergedict.tcl de iso8859-1; \
grep 'msgcat::mc' library/*.tcl | tclsh8.6 util/mergedict.tcl es iso8859-1; \
grep 'msgcat::mc' library/*.tcl | tclsh8.6 util/mergedict.tcl fr iso8859-1; \
grep 'msgcat::mc' library/*.tcl | tclsh8.6 util/mergedict.tcl pt iso8859-1; \
grep 'msgcat::mc' library/*.tcl | tclsh8.6 util/mergedict.tcl cs iso8859-2; \
grep 'msgcat::mc' library/*.tcl | tclsh8.6 util/mergedict.tcl ja euc-jp; \
grep 'msgcat::mc' library/*.tcl | tclsh8.6 util/mergedict.tcl zh big5
#-------------------------- scrub
.PHONY : scrub
scrub :
find . -name "*[~#]" -exec rm {} \;
#-------------------------- clean
.PHONY : clean
.PHONY : dirsclean ds9clean localclean
.PHONY : tclclean tclcheckdnsclean tcliisclean tclsignalclean
.PHONY : tclxmlclean tclzvfsclean
.PHONY : tkclean tkbltclean tkhtml1clean tkimgclean
.PHONY : tkmpegclean tksaoclean astclean funtoolsclean tktableclean xpaclean
clean : dirsclean tclclean tkclean \
tclcheckdnsclean tcliisclean tclsignalclean \
tclzvfsclean tclxmlclean xpaclean \
tkbltclean tktableclean tkimgclean \
tkmpegclean tkhtml1clean \
tk$(OS)clean \
tksaoclean astclean funtoolsclean ds9clean \
localclean
dirsclean :
@for d in $(DIRS); do rm -rf $$d; done
ds9clean :
$(MAKE) -C ds9/$(OS) clean
localclean :
-rm -f core *~ *#
tclclean :
$(MAKE) -C tcl$(TCLVER)/$(OS) clean
tclcheckdnsclean :
$(MAKE) -C tclcheckdns clean
tcliisclean :
$(MAKE) -C tcliis clean
tclsignalclean :
$(MAKE) -C tclsignal clean
tclxmlclean:
$(MAKE) -C tclxml clean
tclzvfsclean:
$(MAKE) -C tclzvfs clean
tkclean :
$(MAKE) -C tk$(TCLVER)/$(OS) clean
tkbltclean:
$(MAKE) -C tkblt clean
tkhtml1clean:
$(MAKE) -C tkhtml1 clean
tkimgclean:
rm -fr tkimg/Img/*
rm -fr lib/Img1.*
$(MAKE) -C tkimg clean
tkmpegclean:
$(MAKE) -C tkmpeg clean
tksaoclean :
$(MAKE) -C tksao clean
astclean :
$(MAKE) -C ast clean
funtoolsclean :
$(MAKE) -C funtools clean
tktableclean:
$(MAKE) -C tktable clean
xpaclean :
$(MAKE) -C xpa clean
#-------------------------- distclean
.PHONY : dirsdistclean ds9distclean localdistclean
.PHONY : tcldistclean tclcheckdnsdistclean tcliisdistclean tclsignaldistclean
.PHONY : tclxmldistclean tclzvfsdistclean
.PHONY : tkdistclean tkbltdistclean tkhtml1distclean tkimgdistclean
.PHONY : tkmpegdistclean
.PHONY : tksaodistclean astdistclean funtoolsdistclean
.PHONY : tktabledistclean xpadistclean
distclean : tcldistclean tkdistclean \
tclcheckdnsdistclean tcliisdistclean tclsignaldistclean \
tclzvfsdistclean tclxmldistclean xpadistclean \
tkbltdistclean tktabledistclean tkimgdistclean \
tkmpegdistclean tkhtml1distclean \
tk$(OS)distclean \
tksaodistclean astdistclean funtoolsdistclean ds9distclean \
dirsdistclean localdistclean
dirsdistclean:
@for d in $(DIRS); do rm -rf $$d; done
ds9distclean :
$(MAKE) -C ds9/$(OS) distclean
localdistclean : localclean
-rm -f config.log config.status config.cache Makefile
tcldistclean :
$(MAKE) -C tcl$(TCLVER)/$(OS) distclean
tclcheckdnsdistclean :
$(MAKE) -C tclcheckdns distclean
tcliisdistclean :
$(MAKE) -C tcliis distclean
tclsignaldistclean :
$(MAKE) -C tclsignal distclean
tclxmldistclean:
$(MAKE) -C tclxml distclean
tclzvfsdistclean:
$(MAKE) -C tclzvfs distclean
tkdistclean :
$(MAKE) -C tk$(TCLVER)/$(OS) distclean
tkbltdistclean:
$(MAKE) -C tkblt distclean
tkhtml1distclean:
$(MAKE) -C tkhtml1 distclean
tkimgdistclean:
rm -fr tkimg/Img/*
rm -fr lib/Img1.*
$(MAKE) -C tkimg distclean
tkmpegdistclean:
$(MAKE) -C tkmpeg distclean
tksaodistclean :
$(MAKE) -C tksao distclean
astdistclean :
$(MAKE) -C ast distclean
funtoolsdistclean :
$(MAKE) -C funtools distclean
tktabledistclean:
$(MAKE) -C tktable distclean
xpadistclean :
$(MAKE) -C xpa distclean
#-------------------------- cvs
.PHONY : commit update
commit : scrub
cvs commit -m "" $(CVSFILES)
update : scrub
cvs update $(CVSFILES)
|