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@ ENABLE64BIT = @ENABLE64BIT@ TARGET = @TARGET@ CONFIGFLAGS =CC=$(TARGET)-gcc AR=$(TARGET)-ar ASTFLAGS = CFLAGS=-DCMINPACK_NO_DLL XPAFLAGS = CFLAGS=-DSTATIC_BUILD TCLXMLFLAGS = --with-xml-static=yes TLSFLAGS ="CFLAGS=-DNO_IDEA=1 -DNO_RC5=1" --with-ssl-dir=$(prefix)/openssl include ./make.include WITHTCL = --with-tcl=$(prefix)/tcl$(TCL_VERSION)/win $(ENABLE64BIT) WITHTK = --with-tk=$(prefix)/tk$(TCL_VERSION)/win $(WITHTCL) CACHE = --config-cache --cache-file=$(prefix)/config.cache #--------------------------defines DS9APP =SAOImageDS9\ $(DS9_VERSION) #--------------------------build .PHONY : saods9 tcl tk tkwin libxml2 zlib openssl saods9 : dirs tcl tk \ libxml2 zlib openssl \ tcliis tls 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 \ $(ENABLE64BIT) \ --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 "*** $@ ***" $(CONFIGFLAGS) $(MAKE) -e -C libxml2/win32 -j $(JOBS) -f Makefile.mingw dep $(CONFIGFLAGS) $(MAKE) -e -C libxml2/win32 -j $(JOBS) -f Makefile.mingw libxmla cp -p libxml2/win32/bin.mingw/libxml2.a $(libdir) cp -rp libxml2/include $(includedir)/libxml2 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" # 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 openssl : openssl/Makefile @echo "" @echo "*** $@ ***" $(MAKE) -C openssl -j $(JOBS) openssl/Makefile: @echo "" @echo "*** $@ ***" cd openssl; \ export CROSS_COMPILE=$(TARGET)-; \ ./Configure mingw64 --prefix=$(prefix) shared no-asm #--------------------------clean .PHONY : tclclean tkclean tkosclean libxml2clean zlibclean opensslclean tclclean : @echo "" @echo "*** tclclean ***" $(MAKE) -C tcl$(TCL_VERSION)/win clean tkclean : @echo "" @echo "*** $@ ***" $(MAKE) -C tk$(TCL_VERSION)/win clean tkosclean : libxml2clean zlibclean opensslclean @echo "" @echo "*** $@ ***" $(MAKE) -C tkwin clean libxml2clean : @echo "" @echo "*** $@ ***" $(MAKE) -C libxml2/win32 -f Makefile.mingw clean zlibclean : @echo "" @echo "*** $@ ***" $(MAKE) -C zlib clean opensslclean: @echo "" @echo "*** $@ ***" $(MAKE) -C openssl clean #--------------------------distclean .PHONY : tcldistclean tkdistclean tkosdistclean .PHONY : libxml2distclean zlibdistclean openssldistclean tcldistclean : @echo "" @echo "*** $@ ***" $(MAKE) -C tcl$(TCL_VERSION)/win distclean tkdistclean : @echo "" @echo "*** $@ ***" $(MAKE) -C tk$(TCL_VERSION)/win distclean tkosdistclean : libxml2distclean zlibdistclean openssldistclean @echo "" @echo "*** $@ ***" $(MAKE) -C tkwin distclean libxml2distclean : @echo "" @echo "*** $@ ***" $(MAKE) -C libxml2/win32 -f Makefile.mingw distclean zlibdistclean : @echo "" @echo "*** $@ ***" $(MAKE) -C zlib distclean rm -f zlib/Makefile openssldistclean : @echo "" @echo "*** $@ ***" $(MAKE) -C openssl clean rm -f openssl/Makefile #--------------------------distribution .PHONY : dist dist : $(RM) -f dist/$(DS9APP)\ Install.* /cygdrive/c/Program\ Files\ \(x86\)/WinZip/wzzip -p -r dist/$(DS9APP)\ Install.zip bin/SAOImageDS9 /cygdrive/c/Program\ Files\ \(x86\)/WinZip\ Self-Extractor/WINZIPSE.EXE dist/$(DS9APP)\ Install.zip -d "C:\SAOImageDS9" -i ds9/win/ds9.ico -le -overwrite -runasuser -c cscript install.vbs