blob: b540e317f136aa018d0f04c1aacdb3d9fe55da28 (
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
|
prefix = @prefix@
exec_prefix = @exec_prefix@
bindir = @bindir@
libdir = $(exec_prefix)/lib
#libdir = @libdir@
includedir = @includedir@
datarootdir = @datarootdir@
datadir = @datadir@
mandir = @mandir@
OS = @OS@
ARCH = @ARCH@
TKFLAGS = @TKFLAGS@
SSLCONFIG = @SSLCONFIG@
JOBS = @CORES@
include ./make.include
WITHTCL = --with-tcl=$(prefix)/tcl$(TCL_VERSION)/unix
WITHTK = --with-tk=$(prefix)/tk$(TCL_VERSION)/unix $(WITHTCL)
CACHE = --config-cache --cache-file=$(prefix)/config.cache
#--------------------------build
.PHONY : saods9 tcl tk
saods9 : dirs tcl tk \
openssl \
tcliis tclsignal \
tclzipfs tls tclxml xpa \
tkblt tktable tkimg \
tkmpeg tkagif tkhtml1 tkcon \
tksao ds9
tcl : tcl$(TCL_VERSION)/unix/Makefile
@echo ""
@echo "*** $@ ***"
$(MAKE) -C tcl$(TCL_VERSION)/unix -j $(JOBS) install
tcl$(TCL_VERSION)/unix/Makefile :
@echo ""
@echo "*** $@ ***"
cd tcl$(TCL_VERSION)/unix; \
./configure \
$(PREFIX) \
--disable-shared --enable-symbols \
$(CACHE)
tk : tk$(TCL_VERSION)/unix/Makefile
@echo ""
@echo "*** $@ ***"
$(MAKE) -C tk$(TCL_VERSION)/unix -j $(JOBS) install
tk$(TCL_VERSION)/unix/Makefile :
@echo ""
@echo "*** $@ ***"
cd tk$(TCL_VERSION)/unix; \
./configure \
$(TKFLAGS) \
$(PREFIX) \
--disable-shared --enable-symbols \
$(CACHE)
#-------------------------- tclzipfs
tclzipfs: tclzipfs/Makefile
@echo ""
@echo "*** $@ ***"
$(MAKE) -C tclzipfs install
tclzipfs/Makefile :
@echo ""
@echo "*** $@ ***"
cd tclzipfs; \
./configure \
$(WITHTCL) \
$(PREFIX) \
$(STD) \
$(CACHE)
#-------------------------- tclsignal
tclsignal: tclsignal/Makefile
@echo ""
@echo "*** $@ ***"
$(MAKE) -C tclsignal install
tclsignal/Makefile :
@echo ""
@echo "*** $@ ***"
cd tclsignal; \
./configure \
$(WITHTCL) \
$(PREFIX) \
$(STD) \
$(CACHE)
#--------------------------clean
.PHONY : tclclean tkclean osclean tclzipfsclean tclsignalclean
tclclean :
@echo ""
@echo "*** tclclean ***"
$(MAKE) -C tcl$(TCL_VERSION)/unix clean
tkclean :
@echo ""
@echo "*** $@ ***"
$(MAKE) -C tk$(TCL_VERSION)/unix clean
osclean : tclzipfsclean tclsignalclean
tclzipfsclean:
@echo ""
@echo "*** $@ ***"
$(MAKE) -C tclzipfs clean
tclsignalclean :
@echo ""
@echo "*** $@ ***"
$(MAKE) -C tclsignal clean
#--------------------------distclean
.PHONY : tcldistclean tkdistclean
.PHONY : osdistclean tclzipfsdistclean tclsignaldistclean
tcldistclean :
@echo ""
@echo "*** $@ ***"
$(MAKE) -C tcl$(TCL_VERSION)/unix distclean
tkdistclean :
@echo ""
@echo "*** $@ ***"
$(MAKE) -C tk$(TCL_VERSION)/unix distclean
osdistclean : tclzipfsdistclean tclsignaldistclean
tclzipfsdistclean:
@echo ""
@echo "*** $@ ***"
$(MAKE) -C tclzipfs distclean
rm -f tclzipfs/tclzipfsConfig.sh
tclsignaldistclean :
@echo ""
@echo "*** $@ ***"
$(MAKE) -C tclsignal distclean
rm -f tclsignal/tclsignalConfig.sh
#--------------------------distribution
.PHONY : dist
dist :
cd bin; tar cvf - ds9* | gzip > $(prefix)/dist/ds9.$(ARCH).$(DS9_VERSION).tar.gz
cd bin; tar cvf - xpa* | gzip > $(prefix)/dist/xpa.$(ARCH).$(XPA_VERSION).tar.gz
|