blob: 61c70e0396cfc6b217851b634987e33164641061 (
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
|
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@
EXEEXT = @EXEEXT@
JOBS = @CORES@
CONFIGFLAGS = CC=i686-w64-mingw32-gcc AR=i686-w64-mingw32-ar
ASTFLAGS = CFLAGS=-DCMINPACK_NO_DLL
XPAFLAGS = CFLAGS=-DSTATIC_BUILD
TCLXMLFLAGS = --with-xml-static=yes
TARGET = --build=x86_64-unknown-mingw32
include ./make.include
WITHTCL = --with-tcl=$(prefix)/tcl$(TCL_VERSION)/win
WITHTK = --with-tk=$(prefix)/tk$(TCL_VERSION)/win $(WITHTCL)
CACHE = --config-cache --cache-file=$(prefix)/config.cache
#--------------------------defines
DS9APP =SAOImage\ DS9\ $(DS9_VERSION)
#--------------------------build
.PHONY : saods9 tcl tk tkwin libxml2 libxslt zlib
saods9 : dirs tcl tk \
libxml2 libxslt zlib \
tcliis tclxml xpa \
tkblt tktable tkimg \
tkmpeg tkhtml1 tkcon \
tkwin \
tksao ds9
# posix- tclcheckdns tclsignal
# no symbols
tcl : tcl$(TCL_VERSION)/win/Makefile
@echo ""
@echo "*** $@ ***"
$(MAKE) -C tcl$(TCL_VERSION)/win -j $(JOBS)
$(MAKE) -C tcl$(TCL_VERSION)/win install
tcl$(TCL_VERSION)/win/Makefile :
@echo ""
@echo "*** $@ ***"
cd tcl$(TCL_VERSION)/win; \
./configure \
--prefix $(prefix) --exec-prefix $(exec_prefix) --libdir $(libdir) \
--disable-shared \
--config-cache --cache-file=$(prefix)/config.cache
tk : tk$(TCL_VERSION)/win/Makefile
@echo ""
@echo "*** $@ ***"
$(MAKE) -C tk$(TCL_VERSION)/win -j $(JOBS) install
tk$(TCL_VERSION)/win/Makefile :
@echo ""
@echo "*** $@ ***"
cd tk$(TCL_VERSION)/win; \
./configure \
$(WITHTCL) \
$(TKFLAGS) \
--prefix $(prefix) --exec-prefix $(exec_prefix) --libdir $(libdir) \
--disable-shared --enable-symbols
tkwin: tkwin/Makefile
@echo ""
@echo "*** $@ ***"
$(MAKE) -C tkwin install
tkwin/Makefile :
@echo ""
@echo "*** $@ ***"
cd tkwin; \
./configure \
$(WITHTK) \
--prefix $(prefix) --exec-prefix $(exec_prefix) \
--disable-shared --enable-symbols \
--config-cache --cache-file=$(prefix)/config.cache
libxml2 : libxml2/win32/config.mingw
@echo ""
@echo "*** $@ ***"
$(MAKE) -C libxml2/win32 -j $(JOBS) -f Makefile.mingw dep
$(MAKE) -C libxml2/win32 -j $(JOBS) -f Makefile.mingw libxmla
$(MAKE) -C libxml2/win32 -j $(JOBS) -f Makefile.mingw install-libsa
cp libxml2/win32/xml2-config $(bindir)
libxml2/win32/config.mingw :
@echo ""
@echo "*** $@ ***"
cd libxml2/win32; \
cscript configure.js trio=no threads=no ftp=yes http=yes html=yes c14n=yes catalog=yes docb=yes xpath=yes xptr=yes xinclude=yes iconv=no icu=no iso8859x=no zlib=no lzma=no xml_debug=yes mem_debug=yes run_debug=no regexps=yes modules=no tree=yes reader=yes writer=yes walker=yes pattern=yes push=yes valid=yes sax1=yes legacy=yes output=yes schemas=yes schematron=yes python=no compiler=mingw static=yes prefix="..\.." bindir="..\..\bin" incdir="..\..\include" libdir="..\..\lib"
libxslt : libxslt/win32/config.mingw
@echo ""
@echo "*** $@ ***"
$(MAKE) -C libxslt/win32 -j $(JOBS) -f Makefile.mingw dep
$(MAKE) -C libxslt/win32 -j $(JOBS) -f Makefile.mingw libxslta
$(MAKE) -C libxslt/win32 -j $(JOBS) -f Makefile.mingw libexslta
$(MAKE) -C libxslt/win32 -j $(JOBS) -f Makefile.mingw install-libsa
cp libxslt/win32/xslt-config $(bindir)
libxslt/win32/config.mingw :
@echo ""
@echo "*** $@ ***"
cd libxslt/win32; \
cscript configure.js trio=no xslt_debug=yes mem_debug=no debugger=yes iconv=no zlib=no crypto=yes modules=no locale=yes compiler=mingw static=yes prefix="..\.." bindir="..\..\bin" incdir="..\..\include" libdir="..\..\lib"
# must force Makefile
zlib : zlib_Makefile
@echo ""
@echo "*** $@ ***"
$(MAKE) -C zlib -j $(JOBS) install
zlib_Makefile :
@echo ""
@echo "*** $@ ***"
cd zlib; \
$(CONFIGFLAGS) CFLAGS=-DSTATIC_BUILD=1 ./configure \
--prefix $(prefix) -eprefix $(exec_prefix) --libdir $(libdir) \
--static
#--------------------------clean
.PHONY : tkwinclean libxml2clean libxsltclean zlibclean
tkwinclean : libxml2clean libxsltclean zlibclean
@echo ""
@echo "*** $@ ***"
$(MAKE) -C tkwin clean
libxml2clean :
@echo ""
@echo "*** $@ ***"
$(MAKE) -C libxml2/win32 -f Makefile.mingw clean
libxsltclean :
@echo ""
@echo "*** $@ ***"
$(MAKE) -C libxslt/win32 -f Makefile.mingw clean
zlibclean :
@echo ""
@echo "*** $@ ***"
$(MAKE) -C zlib clean
#--------------------------distclean
.PHONY : tkwindistclean libxml2distclean libxsltdistclean zlibdistclean
tkwindistclean : libxml2distclean libxsltdistclean zlibdistclean
@echo ""
@echo "*** $@ ***"
$(MAKE) -C tkwin distclean
libxml2distclean :
@echo ""
@echo "*** $@ ***"
$(MAKE) -C libxml2/win32 -f Makefile.mingw distclean
libxsltdistclean :
@echo ""
@echo "*** $@ ***"
$(MAKE) -C libxslt/win32 -f Makefile.mingw distclean
zlibdistclean :
@echo ""
@echo "*** $@ ***"
$(MAKE) -C zlib distclean
rm -f zlib/Makefile
#--------------------------distribution
.PHONY : dist
dist :
$(RM) -f dist/$(DS9APP)\ Install.*
/cygdrive/c/Program\ Files\ \(x86\)/WinZip/wzzip -p -r dist/$(DS9APP)\ Install.zip bin/ds9app
/cygdrive/c/Program\ Files\ \(x86\)/WinZip\ Self-Extractor/WINZIPSE.EXE dist/$(DS9APP)\ Install.zip -d "C:\SAOImage DS9" -i ds9/win/ds9.ico -le -overwrite -runasuser -c cscript install.vbs
|