File:  [Local Repository] / imach / src / Makefile
Revision 1.89: download - view: text, annotated - select for diffs
Tue Mar 15 18:40:36 2022 UTC (2 years, 3 months ago) by brouard
Branches: MAIN
CVS tags: HEAD
Summary:IMaCh-0.99r24

    1: #Version has to be set in ../CMakeLists.txt too.
    2: #VERSION=0.98r6
    3: #VERSION=$(shell echo `grep IMACH_VERSION__ version.h | echo 'titi'`)
    4: VERSION=$(shell echo `grep IMACH_VERSION__ version.h | awk 'BEGIN { FS = "[ \t\n\"]+" }  { print $$3 }'`)
    5: OSTYPE = $(shell echo $$OSTYPE)
    6: # DRIVEG is for VirtualBox Windows 64bit 
    7: DRIVEG=f:
    8: #DIRG is the corresponding build directory for Virtual Windows
    9: DIRG=\imach\cvs\imach\build
   10: COPYRIGHT=Copyright (C)  2002-2019 INED-EUROREVES-Institut de longevite-Japan Society for the Promotion of Science (Grant-in-Aid for Scientific Research 25293121) - Intel Software 2016-19
   11: IMACHSETUPVERSION=icl
   12: # This is for Windows only
   13: #IMACHSETUPVERSION=mvc
   14: 
   15: #       Linux
   16: # make _linux=1 imachopt
   17: # make _linux=1 imach
   18: # make _linux=1 imachrpm
   19: # cd to build/gnulinux ; cmake ../..; cpack -D CPACK_RPM_PACKAGE_DEBUG=1 -D CPACK_RPM_SPEC_INSTALL_POST="/bin/true" -G RPM
   20: # make _linux32onosx=1 imachopt
   21: # make _linux64onosx=1 imachopt
   22: 
   23: #       OS/X
   24: # make _macosx=1 imachdmg
   25: # make _intel64onosx=1 imachopt
   26: # make _intel32onosx=1 imachopt
   27: # make _intelUNBonosx=1 imachdmg # Not implemented (not useful)
   28: # make _macosx=1 imach
   29: # make _macosx=1 imachopt
   30: #  valgrind  --dsymutil=yes --leak-check=full --show-leak-kinds=all --track-origins=yes ~/Documents/imachcvs/imach/src/imach-1.129cvsmac radlc-1.129.imach
   31: 
   32: #        Windows
   33: # sudo xlcem make _windowsonosx=1 imachICL32-setup 
   34: # sudo xlcem make _windowsonosx=1 imachICL64-setup
   35: # and then
   36: # On Emacs make _windowonosx=1 imachICL-set (and not imachICL-setup)
   37: 
   38: # make _windowsonosx=1 imachICL-setup (touch setup.iss.in) #binary should have been compiled on Windows with Intel
   39: # make _windowsonosx=1 imachICL64-setup (touch setup.iss.in) #binary should have been compiled on Windows with Intel
   40: # make _windowsonosx=1 imachICL32-setup (touch setup.iss.in) #binary should have been compiled on Windows with Intel
   41: # make _windowsonosx=1 imachMVC-setup (touch setup.iss.in) #binary should have been compiled on Windows with cl
   42: # make _windowsonosx=1 imachMVC-noreg-setup
   43: #
   44: #        Windows cross-compiled mw64
   45: # make _mw64onsox=1 imachcyg-setup
   46: #
   47: # make _windows=1 imachcyg
   48: # make _windows=1 imachcyg-setup (touch setup.iss.in)
   49: # make _windows=1 imachcyg-noreg-setup
   50: #
   51: # make _windowsonlinux=1 imachcyg-setup (touch setup.iss.in)
   52: # make _windowsonlinux=1 imachcyg-noreg-setup
   53: #
   54: # make _windowscl=1 imachclopt
   55: 
   56: #
   57: # sortie dans Output/setup.exe
   58: # ln -s /cygdrive/c/Program\ Files/Inno\ Setup\ 4/Compil32.exe /usr/local/bin/Compil32
   59: ##SETUPCOMP=  "C:\Program Files\Inno Setup 3\Compil32.exe"
   60: #TESTFILE=$$HOME/Documents/Recherches/REVES/SAITO/Tokyo2014/adlc-test-mac/adecode-1.142c.imach
   61: #TESTFILE=$(HOME)/Documents/Recherches/REVES/carol/carol-june2014/educadlmwt24.imach
   62: #TESTFILE=$(HOME)/Documents/Recherches/REVES/Biaspar/biaspar-wopowell.imach
   63: #TESTFILE=$(HOME)/Documents/Recherches/REVES/Biaspar/rbiaspar-098p.imach
   64: #TESTFILE=$(HOME)/Documents/Recherches/REVES/Aaron/brouard/results/COVARAITE_94/rmypar24pis1cov1-age.imach
   65: #TESTFILE=$(HOME)/Documents/Recherches/REVES/Flavia/rADL0w_V1V2b.imach
   66: #TESTFILE=$(HOME)/Documents/Recherches/REVES/Yao/rrtest3b.imach
   67: #TESTFILE=$(HOME)//Documents/Recherches/REVES/Flavia/Flavia-nov-2015/rtest3c.imach
   68: #TESTFILE=/mnt/tugault/Documents/Recherches/REVES/Yao/rhrs-yao-test-back.imach
   69: #TESTFILE=/mnt/tugault/Documents/Recherches/REVES/Flavia/Flavia-nov-2015/rtest3bb.imach
   70: #TESTFILE=$(HOME)/Documents/Recherches/REVES/Flavia/Flavia-nov-2015/rtest3bb.imach
   71: #TESTFILE=$(HOME)/Documents/Recherches/REVES/SAITO/saito-12-feb-2016/rHRS_relig_import_M_NB.imach
   72: #TESTFILE=$(HOME)/Documents/Recherches/REVES/Biaspar/biaspar-0.98r-powellf1f3linmnb-zeroes.imach
   73: #TESTFILE=$(HOME)/Documents/Recherches/REVES/Yao/Yao-19-jan-2016/r2V4V3V5.imach
   74: #TESTFILE=$(HOME)/Documents/Recherches/REVES/Yao/Yao-19-jan-2016/r2b4V4V3V5.imach
   75: #TESTFILE=$(HOME)/Documents/Recherches/REVES/Yao/Yao-19-jan-2016/Vn1b.imach
   76: #TESTFILE=$(HOME)/Documents/Recherches/REVES/SAITO/Saito-PAA-2018/rrLvngArrgJapan-two-1b.imach
   77: #TESTFILE=$(HOME)/Documents/Recherches/HRS/RAND_HRS/imachb.imach
   78: TESTFILE=$(HOME)/Documents/Recherches/HRS/RAND_HRS/imachb-r18.imach
   79: #TESTFILE=$(HOME)/Documents/Recherches/REVES/Yao/Yao-19-jan-2016/rrrV4V3V5-suite6.imach
   80: #TESTFILE=$(HOME)/Documents/Recherches/REVES/SAITO/Tokyo2014/adlc-test-mac/adecode-1.142c.imach
   81: #TESTFILE=$(HOME)/Documents/Recherches/REVES/SAITO/Tokyo2014/adlc_test_magei4/radlc_often.imach
   82: #CC= gcc -v
   83: CC=$(GCC)
   84: GCC= gcc
   85: 
   86: ifdef _macosx
   87: # Mac OS/X version
   88: LFLAGS= -g -lm 
   89: #CFLAGS= -g -DDEBUG 
   90: CFLAGS= -g 
   91: LFLAGSOPT= -O3 -lm 
   92: CFLAGSOPT= -O3 
   93: CP= cp
   94: CROSSCOMPILATION= -DCROSS=0
   95: UNIX2DOS= echo "Unix2dos " 
   96: DSYMUTIL= dsymutil
   97: STRIP= strip
   98: BINVERSION=OSX
   99: # Don'know how to launch imach098.pmsp in batch to create package file imach098Panther.pkg
  100: # ./createdmg.sh imach imach098panther ./imach098Panther
  101: # ./createdmg.sh imach imach098leopard ./imach098Leopard
  102: # and directory ./imach098Panther contains package file imach098Panther.pkg
  103: #./create-dmg --window-size 500 300 --background ~/Projects/eclipse-osx-repackager/build/background.gif --icon-size 96 --volname "Hyper Foo" --icon "Applications" 380 205 --icon "Eclipse OS X Repackager" 110 205 test2.dmg /Users/andreyvit/Projects/eclipse-osx-repackager/temp/Eclipse\ OS\ X\ Repackager\ r10/
  104: # ./create-dmg --volname "IMaCh 0.98j" imach098j.dmg imach098Leopard
  105: endif
  106: 
  107: ifdef _windows
  108: CC=c:\MinGW\bin\Mingw32-gcc
  109: 
  110: # Windows cygwin version
  111: LFLAGS= -g -mno-cygwin
  112: CFLAGS= -g -mno-cygwin
  113: LFLAGSOPT= -O3 -mno-cygwin
  114: CFLAGSOPT= -O3 -mno-cygwin
  115: UNIX2DOS= unix2dos
  116: CP= copy
  117: BINVERSION=CYGWIN
  118: #SETUPCOMP= Compil32 
  119: ##SETUPCOMP=start /wait "C:\Program\ Files\\Compil32.exe"
  120: # cygwin SETUPCOMP=  "C:\Program Files\Inno Setup 4\Compil32.exe"
  121: SETUPCOMP= "C:////Program Files////Inno Setup 4////Compil32.exe"
  122: endif
  123: 
  124: ifdef _windowsonlinux
  125: GCC=/usr/bin/i586-pc-mingw32-gcc
  126: LFLAGS= -g
  127: CFLAGS= -g
  128: LFLAGSOPT= -O3 -lm
  129: CFLAGSOPT= -O3
  130: CROSSCOMPILATION= -DCROSS=1
  131: CP= cp
  132: UNIX2DOS= unix2dos
  133: SETUPCOMP= wine "C:////Program Files////Inno Setup 4////Compil32.exe"
  134: BINVERSION=WINDOWSonLINUX
  135: endif
  136: 
  137: ifdef _windowsonosx
  138: #GCC=/usr/local/i386-mingw32-4.3.0/bin/i386-mingw32-gcc
  139: #GCC=/usr/local/cross-tools/bin/i686-w64-mingw32-gcc
  140: GCC=/usr/local/gcc-4.8.0-qt-4.8.4-for-mingw32/win32-gcc/bin/i586-mingw32-gcc-4.8.0
  141: STRIP=/usr/local/gcc-4.8.0-qt-4.8.4-for-mingw32/win32-gcc/bin/i586-mingw32-strip
  142: LFLAGS= -g
  143: CFLAGS= -g
  144: LFLAGSOPT= -O3 -s
  145: CFLAGSOPT= -O3
  146: CROSSCOMPILATION= -DCROSS=1
  147: UNIX2DOS= unix2dos
  148: SETUPCOMP= ~/bin/InnoSetup5Playonmac
  149: CP= cp
  150: BINVERSION=WIN32onOSX
  151: endif
  152: 
  153: ifdef _mw64onosx
  154: GCC=/usr/local/mingw-w64-bin_i686-darwin_20130622/bin/x86_64-w64-mingw32-gcc-4.9.0
  155: STRIP=/usr/local/mingw-w64-bin_i686-darwin_20130622/bin/x86_64-w64-mingw32-strip
  156: LFLAGS= -g
  157: CFLAGS= -g
  158: LFLAGSOPT= -O3 -lm -s
  159: CFLAGSOPT= -O3
  160: CROSSCOMPILATION= -DCROSS=1
  161: UNIX2DOS= unix2dos
  162: SETUPCOMP= ~/bin/InnoSetup5Playonmac
  163: CP= cp
  164: BINVERSION=w64-mingw32-x86-64-bin
  165: endif
  166: 
  167: ifdef _windowscl
  168: rem "C:\Program Files\Microsoft Visual Studio 10.0\VC\bin\vcvas32.bat"
  169: endif
  170: 
  171: # make _intel64onosx=1 imachopt
  172: #source /opt/intel/bin/iccvars.sh intel64
  173: ifdef _intel64onosx
  174: GCC=/opt/intel/bin/icc
  175: CFLAGS= -m64 -g -std=c99
  176: LFLAGS= -g -m64
  177: #CFLAGSOPT= -O3 -m64 -g -std=c99 -no-prec-div idem
  178: #CFLAGSOPT= -O3 -m64 -g -std=c99 -xSSSE3_ATOM 402
  179: CFLAGSOPT= -O3 -m64 -g -std=c99
  180: CROSSCOMPILATION= -DCROSS=0
  181: IGNORE :=$(shell bash -c "source /opt/intel/bin/iccvars.sh intel64; env | sed 's/=/:=/' | sed 's/^/export /' > makeenv")
  182: include makeenv
  183: #lipo -create -arch i386 HelloWorld_32 -arch x86_64 HelloWorld_64 -output HelloWorld
  184: LFLAGSOPT= -O3 -m64
  185: UNIX2DOS= unix2dos
  186: SETUPCOMP= ~/bin/InnoSetup5Playonmac
  187: CP= cp
  188: BINVERSION=osx-intel-x86-64-bin
  189: #imach_64$(VERSION)
  190: #
  191: endif
  192: 
  193: ifdef _intel32onosx
  194: GCC=/opt/intel/bin/icc
  195: CFLAGS= -m32 -g -std=c99
  196: LFLAGS= -g -m32
  197: CFLAGSOPT= -O3 -m32 -g -std=c99
  198: CROSSCOMPILATION= -DCROSS=0
  199: IGNORE :=$(shell bash -c "source /opt/intel/bin/iccvars.sh ia32; env | sed 's/=/:=/' | sed 's/^/export /' > makeenv")
  200: include makeenv
  201: #lipo -create -arch i386 HelloWorld_32 -arch x86_64 HelloWorld_64 -output HelloWorld
  202: #lipo -create -arch i386 imach_32$(VERSION) -arch x86_64 imach_64$(VERSION) -output imach$(VERSION)
  203: LFLAGSOPT= -O3 -m32
  204: UNIX2DOS= unix2dos
  205: SETUPCOMP= ~/bin/InnoSetup5Playonmac
  206: CP= cp
  207: BINVERSION=osx-intel-ia32-bin
  208: endif
  209: 
  210: ifdef _linux64onosx
  211: GCC=/usr/localold/gcc-4.8.1-for-linux64/bin/x86_64-pc-linux-gcc
  212: STRIP=/usr/localold/gcc-4.8.1-for-linux64/bin/x86_64-pc-linux-strip
  213: LFLAGS= -g
  214: CFLAGS= -g
  215: CROSSCOMPILATION= -DCROSS=1
  216: LFLAGSOPT= -O3 -lm -s
  217: CFLAGSOPT= -O3
  218: TAR= /sw/bin/gnutar
  219: UNIX2DOS= unix2dos
  220: SETUPCOMP= ~/bin/InnoSetup5Playonmac
  221: CP= cp
  222: BINVERSION=linux-x86-64-bin
  223: endif
  224: 
  225: ifdef _linux32onosx
  226: #GCC=/usr/local/i386-mingw32-4.3.0/bin/i386-mingw32-gcc
  227: #GCC=/usr/local/cross-tools/bin/i686-w64-mingw32-gcc
  228: GCC=/usr/localold/gcc-4.8.1-for-linux32/bin/i586-pc-linux-gcc
  229: STRIP=/usr/localold/gcc-4.8.1-for-linux32/bin/i586-pc-linux-strip
  230: LFLAGS= -g
  231: CFLAGS= -g
  232: LFLAGSOPT= -O3 -s -lm
  233: CFLAGSOPT= -O3
  234: CROSSCOMPILATION= -DCROSS=1
  235: TAR= /sw/bin/gnutar
  236: UNIX2DOS= unix2dos
  237: SETUPCOMP= ~/bin/InnoSetup5Playonmac
  238: CP= cp
  239: BINVERSION=linux-i586-bin
  240: endif
  241: 
  242: ifdef _linux
  243: #CFLAGS= -g -DUNIX -DDEBUGHESS
  244: #CFLAGS= -g -DDEBUG -DFIXMNBRAK
  245: #CFLAGS= -g -DDEBUG 
  246: CFLAGS= -g
  247: LFLAGS= -g -lm
  248: IGSL= -I/usr/include/gsl
  249: LGSL= -lgsl -lgslcblas
  250: INLOPT= -I/usr/local/include
  251: LNLOPT= -lm -L/usr/local/lib -lnlopt
  252: CFLAGSOPT= -O3 -g
  253: LFLAGSOPT= -O3 -g -lm
  254: CROSSCOMPILATION= -DCROSS=0
  255: UNIX2DOS= unix2dos
  256: SETUPCOMP= wine "C:////Program Files////Inno Setup 4////Compil32.exe"
  257: BINVERSION=LINUXnative
  258: CP= cp
  259: endif
  260: 
  261: SED= sed
  262: PACKAGE=imach
  263: PROGRAM=IMaCh
  264: 
  265: 
  266: TMPSETUPSCRIPT=setup.iss
  267: TMPNOREGSETUPSCRIPT=noreg-setup.iss
  268: TMPSCRIPTIN=setup.iss.in
  269: APPLICATION=IMaCh
  270: APPNAME=$(APPLICATION)-$(VERSION)
  271: APPCOMPILATIONMODE=$(IMACHSETUPVERSION)
  272: GNUPLOTVERSION=5.1
  273: LICENSE=Copying
  274: TMPSETUPEXE=imach-$(VERSION)-$(IMACHSETUPVERSION)-setup.exe
  275: TMPNOREGSETUPEXE=imach-$(VERSION)-$(IMACHSETUPVERSION)-noreg-setup.exe
  276: LICENSEFILE=$(LICENSE)
  277: INFOBEFOREFILE=README.txt
  278: 
  279: setup.iss: setup.iss.in
  280: 	$(SED) -e "s/@APPNAME@/$(APPNAME)/g; \
  281: 		s/@NOTINNOREG@//g; \
  282: 		s/@NOREG@//g; \
  283: 		s/@IMACHSETUPVERSION@/$(IMACHSETUPVERSION)/g; \
  284: 		s/@APPCOMPILATIONMODE@/$(APPCOMPILATIONMODE)/g; \
  285: 		s/@VERSION@/$(VERSION)/g; \
  286: 		s/@GNUPLOTVERSION@/$(GNUPLOTVERSION)/g; \
  287: 		s/@INFOBEFOREFILE@/$(INFOBEFOREFILE)/g; \
  288: 		s/@LICENSEFILE@/$(LICENSEFILE)/g; \
  289: 		s/@PACKAGE@/$(PACKAGE)/g; \
  290: 		s/@DICTLANG@/$(DICTLANG)/g; \
  291: 	   	s/@VERMAJOR@/$(VERMAJOR)/g; \
  292: 		s/@COPYRIGHT@/$(COPYRIGHT)/g;" \
  293: 		setup.iss.in > setup.iss
  294: 
  295: $(TMPNOREGSETUPSCRIPT): $(TMPSCRIPTIN)
  296: 	$(SED) -e "s/@APPNAME@/$(APPNAME)/g; \
  297: 		s/@NOTINNOREG@/\\;/g; \
  298: 		s/@NOREG@/noreg-/g; \
  299: 		s/@IMACHSETUPVERSION@/$(IMACHSETUPVERSION)/g; \
  300: 		s/@VERSION@/$(VERSION)/g; \
  301: 		s/@GNUPLOTVERSION@/$(GNUPLOTVERSION)/g; \
  302: 		s/@INFOBEFOREFILE@/$(INFOBEFOREFILE)/g; \
  303: 		s/@LICENSEFILE@/$(LICENSEFILE)/g; \
  304: 		s/@PACKAGE@/$(PACKAGE)/g; \
  305: 		s/@DICTLANG@/$(DICTLANG)/g; \
  306: 	   	s/@VERMAJOR@/$(VERMAJOR)/g; \
  307: 		s/@COPYRIGHT@/$(COPYRIGHT)/g;" \
  308: 		$(TMPSCRIPTIN) > $(TMPNOREGSETUPSCRIPT)
  309: #	$(UNIX2DOS) $(TMPNOREGSETUPSCRIPT)
  310: 
  311: $(TMPSETUPEXE): $(TMPSETUPSCRIPT)
  312: 	$(SETUPCOMP) /cc $(TMPSETUPSCRIPT)
  313: 
  314: #$(TMPNOREGSETUPEXE): $(TMPNOREGSETUPSCRIPT)
  315: #	$(SETUPCOMP) /cc $(TMPNOREGSETUPSCRIPT)
  316: 
  317: PARAM=mypar1
  318: 
  319: imachcyg-setup: imachcygopt.exe setup.iss
  320: 	touch setup.iss.in
  321: 	$(CP) imachcygopt.exe imach.exe
  322: 	$(CP) imachcygopt.exe imach$(VERSION)-$(BINVERSION).exe
  323: 	$(SETUPCOMP) /cc setup.iss
  324: 	cp Output/$(TMPSETUPEXE) imachcyg-setup
  325: 
  326: # imachcyg-noreg-setup : imachcygopt imachcygopt.o setup.iss.in noreg-setup.iss $(TMPNOREGSETUPEXE)
  327: imachcyg-noreg-setup: imachcygopt.exe noreg-setup.iss
  328: 	touch setup.iss.in
  329: 	$(CP) imachcygopt.exe imach.exe
  330: 	$(CP) imachcygopt.exe imach$(VERSION)-$(BINVERSION).exe
  331: 	$(SETUPCOMP) /cc $(TMPNOREGSETUPSCRIPT)
  332: 	cp Output/$(TMPNOREGSETUPEXE) imachcyg-noreg-setup
  333: # ICL compiler 64
  334: imachICL-build: imach.c
  335: 	icl /GS /W3 /Zc:wchar_t /O2  /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "UNICODE" /Qipo /Zc:forScope  /MT imach.c 
  336: #/GS /W3 /Gy /Zc:wchar_t /Zi /O2 /Fd"x64\Release\vc120.pdb" /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_LIB" /D "_UNICODE" /D "UNICODE" /Qipo /Zc:forScope /Oi /MT /Fa"x64\Release\" /EHsc /nologo /Fo"x64\Release\" /Qprof-dir "x64\Release\" /Fp"x64\Release\IMaCh-icl-x64-0.98q2.pch"
  337: #  /Users/nbrouard/Documents/imach/imach-gui/build/icl64/Release/imach.exe
  338: # both 32 and 64 executables should have been built on Windows with Intel compiler.
  339: 
  340: imachICL-set: ../build/icl64/Release/IMaCh-$(VERSION).exe ../build/icl32/Release/IMaCh-$(VERSION).exe setup.iss  setup.iss 
  341: 	pwd
  342: 	touch setup.iss.in
  343: 	$(SETUPCOMP) /cc setup.iss
  344: 	$(CP) Output/$(TMPSETUPEXE) imachICL-setup
  345: 
  346: # imachICL64-setup: IMaCh-icl64-$(VERSION).exe setup.iss
  347: # 	pwd
  348: # 	$(CP) IMaCh-icl64-$(VERSION).exe imach.exe
  349: # 	$(SETUPCOMP) /cc setup.iss
  350: # 	$(CP) Output/$(TMPSETUPEXE) imachICL64-setup
  351: 
  352: imachICL64-noreg-setup: IMaCh-icl64-$(VERSION).exe noreg-setup.iss
  353: 	touch setup.iss.in
  354: 	$(SETUPCOMP) /cc $(TMPNOREGSETUPSCRIPT)
  355: 	$(CP) Output/$(TMPSETUPEXE) imachICL64-noreg-setup
  356: 
  357: ../build/icl64/Release/IMaCh-$(VERSION).exe: imach.c ../distributions/windows/mybuildicl64.bat
  358: 	rm -rf ../build/icl64  && mkdir ../build/icl64
  359: 	cp ../distributions/windows/mybuildicl64.bat ../build/icl64/
  360: 	cd ../build/icl64
  361: 	VBoxManage --nologo guestcontrol "Windows7-64" run --exe "C:\Windows\System32\cmd.exe" \
  362:  --username brouard  --verbose --wait-stdout  --wait-stderr -- "C:\Windows\SysWOW64\cmd.exe" "/c" "$(DRIVEG)$(DIRG)\icl64\mybuildicl64.bat" "$(VERSION)" "$(DRIVEG)" "$(DIRG)"
  363: 
  364: #       VBoxManage --nologo guestcontrol "Windows7-64" run --exe "c:\\windows\\system32\\ipconfig.exe" --username brouard  --verbose  --wait-stdout  --wait-stderr -- "/all"
  365: #       VBoxManage --nologo guestcontrol "Windows7-64" run --exe "C:\Windows\SysWOW64\cmd.exe" --username brouard  --verbose  --wait-stdout  --wait-stderr -- "/c" "DIR"
  366: 
  367: #	VBoxManage --nologo guestcontrol "Windows7-64" run --exe "C:\Windows\SysWOW64\cmd.exe" --username brouard  --verbose  --wait-stdout  --wait-stderr -- "/c" "DIR" 
  368: #	VBoxManage --nologo guestcontrol "Windows7-64" run --exe "c:\\windows\\system32\\ipconfig.exe" --username brouard  --verbose  --wait-stdout  --wait-stderr -- "/all"
  369: #VBoxManage --nologo guestcontrol "Windows7-64" run --exe "C:\Windows\SysWOW64\cmd.exe" \
  370: #	--username brouard  --verbose  --wait-stdout  --wait-stderr -- "/c" "$(DRIVEG)$(DIRG)\icl64\mybuildicl64.bat" "$(VERSION)" "$(DRIVEG)" "$(DIRG)"
  371: 
  372: ../build/icl32/Release/IMaCh-$(VERSION).exe: imach.c ../distributions/windows/mybuildicl32.bat
  373: 	rm -rf ../build/icl32 && mkdir -p ../build/icl32
  374: 	cp ../distributions/windows/mybuildicl32.bat ../build/icl32/
  375: 	cd ../build/icl32
  376: 	VBoxManage --nologo guestcontrol "Windows7-64" run --exe "C:\Windows\System32\cmd.exe" \
  377:   --username brouard  --verbose --wait-stdout -- "C:\Windows\SysWOW64\cmd.exe" "/c" "$(DRIVEG)$(DIRG)\icl32\mybuildicl32.bat" "$(VERSION)" "$(DRIVEG)" "$(DIRG)"
  378: #	VBoxManage startvm "Windows7-64" --type headless
  379: #	VBoxManage list runningvms
  380: # 	sudo xlcem VBoxManage --nologo guestcontrol "Windows7-64" run --exe "C:\Windows\System32\cmd.exe" \
  381: # --username brouard  --verbose --wait-stdout -- "C:\Windows\SysWOW64\cmd.exe" "/c" "$(DRIVEG)$(DIRG)\icl32\mybuildicl32.bat" "$(VERSION)" "$(DRIVEG)" "$(DIRG)"
  382: 
  383: #VBoxManage --nologo guestcontrol "Windows7-64" run --exe "C:\Windows\SysWOW64\cmd.exe" \
  384: # --username brouard  --verbose  --wait-stdout -- "/c" "$(DRIVEG)$(DIRG)\icl32\mybuildicl32.bat" "$(VERSION)" "$(DRIVEG)" "$(DIRG)"
  385: 
  386: ../build/vs32/Release/IMaCh-$(VERSION).exe: imach.c mybuildvs32.bat
  387: 	rm -rf ../build/vs32 && mkdir -p ../build/vs32
  388: 	cp mybuildvs32.bat ../build/vs32/
  389: 	cd ../build/vs32
  390: 	VBoxManage --nologo guestcontrol "Windows7-64" run --exe "C:\Windows\System32\cmd.exe" \
  391: 	--username brouard  --verbose  --wait-stdout --  "C:\Windows\SysWOW64\cmd.exe" "/c" "g:\imach\imach-gui\build\vs32\mybuildvs32.bat" "$(VERSION)"
  392: # C:\Windows\SysWOW64\cmd.exe /E:ON /V:ON /K "g:\imach\imach-gui\build\icl32\mybuild.bat"
  393: #WORK	--username brouard  --verbose --wait-exit --wait-stdout -- "/c" "c:\users\brouard\mybuild.bat"
  394: #	--username brouard  --verbose --wait-exit --wait-stdout -- "/c" "g: && cd \imach\imach-gui\build\icl32 && mybuild.bat"
  395: #	--username brouard  --verbose --wait-exit --wait-stdout -- "/c" "g: && cd \imach\imach-gui\build\icl32-xp  &&" "C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\Tools\VsDevCmd.bat" "&&" "C:\Program Files (x86)\Intel\Composer XE 2015\bin\ipsxe-comp-vars.bat" "ia32" "vs2013" "&&" "msbuild imach-0.98q3.vcxproj /t:Build /p:Configuration=Release"
  396: #	--username brouard --wait-exit --wait-stdout -- "/c" "g: && cd \imach\imach-gui\build\icl32-xp\ &&C:\Windows\SysWOW64\cmd.exe /E:ON /V:ON /K ""C:\Program Files (x86)\Intel\Composer XE 2015\bin\ipsxe-comp-vars.bat" ia32 vs2013"&& msbuild imach.vcxproj >c:\users\brouard\totog.txt"
  397: #		--username brouard --wait-exit --wait-stdout -- "/c" "g: && dir >c:\users\brouard\totog.txt"
  398: #C:\Windows\SysWOW64\cmd.exe /E:ON /V:ON /K ""C:\Program Files (x86)\Intel\Composer XE 2015\bin\ipsxe-comp-vars.bat" ia32 vs2013"
  399: #C:\Windows\SysWOW64\cmd.exe /E:ON /V:ON /K ""C:\Program Files (x86)\Intel\Composer XE 2015\bin\ipsxe-comp-vars.bat" intel64 vs2013"
  400: 
  401: imachICL64-setup: ../build/icl64/Release/IMaCh-$(VERSION).exe setup.iss mybuildicl64.bat
  402: 
  403: imachICL32-setup: ../build/icl32/Release/IMaCh-$(VERSION).exe setup.iss ../distributions/windows/mybuildicl32.bat
  404: 
  405: imachVS32-setup: ../build/vs32/Release/IMaCh-$(VERSION).exe setup.iss mybuildvs32.bat
  406: 
  407: imachICL32-noreg-setup: IMaCh-icl32.exe noreg-setup.iss
  408: 	touch setup.iss.in
  409: 	$(CP) IMaCh-icl32.exe imach.exe
  410: 	$(SETUPCOMP) /cc $(TMPNOREGSETUPSCRIPT)
  411: 	$(CP) Output/$(TMPSETUPEXE) imachICL32-noreg-setup
  412: 
  413: imachMVC-setup: imachMVC.exe setup.iss
  414: 	touch setup.iss.in
  415: 	$(CP) imachMVC.exe imach.exe
  416: 	$(SETUPCOMP) /cc setup.iss
  417: 	$(CP) Output/$(TMPSETUPEXE) imachMVC-setup
  418: 
  419: # imachcyg-noreg-setup : imachcygopt imachcygopt.o setup.iss.in noreg-setup.iss $(TMPNOREGSETUPEXE)
  420: imachMVC-noreg-setup: imachMVC.exe noreg-setup.iss
  421: 	touch setup.iss.in
  422: 	$(CP) imachMVC.exe imach.exe
  423: 	$(SETUPCOMP) /cc $(TMPNOREGSETUPSCRIPT)
  424: 	$(CP) Output/$(TMPNOREGSETUPEXE) imachcyg-noreg-setup
  425: 
  426: simach : simach.o 
  427: 	$(CC) $(LFLAGS) $(LGSL) -o simach simach.o
  428: simach.o : simach.c 
  429: 	$(CC) $(CFLAGS) -DGSL -c simach.c
  430: 
  431: imachtest: imachtest.o 
  432: 	$(CC) $(LFLAGS) -o imachtest imachtest.o
  433: ifdef _macosx
  434: 	$(DSYMUTIL) imachtest
  435: endif
  436: 
  437: imach: imach.o 
  438: 	$(CC)  -o imach $(LFLAGS) imach.o
  439: ifdef _macosx
  440: 	$(DSYMUTIL) imach
  441: endif
  442: 
  443: imach.o : imach.c 
  444: 	 $(CC) $(CFLAGS) $(CROSSCOMPILATION)  -c $<
  445: #	 $(CC) $(CFLAGS) $(CROSSCOMPILATION)  -DDEBUGMEM -c $<
  446: #	 $(CC) $(CFLAGS) $(CROSSCOMPILATION) -DDEBUGBRENT -c imach.c
  447: 
  448: imach-0.98r: imach-0.98r.o 
  449: 	$(CC) $(LFLAGS) -o $@ $<
  450: ifdef _macosx
  451: 	$(DSYMUTIL) $@
  452: endif
  453: 
  454: # Horrible no f3<f1 test and direct test,  converges if close to maximum otherwise diverges
  455: #calls = 13 & 1760, -2 Log likelihood = 46537.411806825585
  456: imach-0.98r.o : imach-0.98r.c 
  457: 	 $(CC) $(CFLAGS) -DPOWELLNOF3INFF1TEST -DUNKNOWNSTATUSNOTCONTRIBUTING  -DDISPATCHINGKNOWNDEATHAFTERLASTWAVE $(CROSSCOMPILATION)  -c $<
  458: 
  459: #################
  460: imach-0.98r-powellsf1f3: imach-0.98r-powellsf1f3.o 
  461: 	$(CC) $(LFLAGS) -o $@ $<
  462: ifdef _macosx
  463: 	$(DSYMUTIL) $@
  464: endif
  465: 
  466: # test f3<f1 but direct test and no powell criteria which are NOPOWELLORIGINALNOMNBAKORIGINAL NOLINMINORIGINAL
  467: # diverges now from zeroes calls = 18 & 3163, -2 Log likelihood = 50929.075310962719
  468: # but converges if close to the maximum
  469: # calls = 13 & 1760, -2 Log likelihood = 46537.411806825585
  470: imach-0.98r-powellsf1f3.o : imach-0.98r.c 
  471: 	 $(CC) $(CFLAGS)  -DUNKNOWNSTATUSNOTCONTRIBUTING  -DDISPATCHINGKNOWNDEATHAFTERLASTWAVE  $(CROSSCOMPILATION) -o $@  -c $<
  472: #	 $(CC) $(CFLAGS)  -DUNKNOWNSTATUSNOTCONTRIBUTING  -DDISPATCHINGKNOWNDEATHAFTERLASTWAVE  $(CROSSCOMPILATION) -E -c $< | cppbeauty
  473: 
  474: ######
  475: imach-0.98r-powellf1f3: imach-0.98r-powellf1f3.o 
  476: 	$(CC) $(LFLAGS) -o $@ $<
  477: ifdef _macosx
  478: 	$(DSYMUTIL) $@
  479: endif
  480: 
  481: #Powell original but with mnbrak fix  -DUNKNOWNSTATUSNOTCONTRIBUTING -DDISPATCHINGKNOWNDEATHAFTERLASTWAVE
  482: #diverges from zeroes
  483: # calls = 13 & 1760, -2 Log likelihood = 46537.411806825585 Real minumum
  484: imach-0.98r-powellf1f3.o : imach-0.98r.c 
  485: 	 $(CC) $(CFLAGS) -DPOWELLORIGINAL -DLINMINORIGINAL -DUNKNOWNSTATUSNOTCONTRIBUTING  -DDISPATCHINGKNOWNDEATHAFTERLASTWAVE $(CROSSCOMPILATION) -o $@  -c $<
  486: imach-0.98r-powellf1f3.i : imach-0.98r.c 
  487: 	 $(CC) $(CFLAGS) -DPOWELLORIGINAL -DLINMINORIGINAL -DUNKNOWNSTATUSNOTCONTRIBUTING  -DDISPATCHINGKNOWNDEATHAFTERLASTWAVE $(CROSSCOMPILATION) -E   -c $<| cppbeauty
  488: #	 $(CC) $(CFLAGS) -DPOWELLORIGINAL -DLINMINORIGINAL  $(CROSSCOMPILATION) -E -o $@  -c $<
  489: 
  490: ######################
  491: imach-0.98r-powell: imach-0.98r-powell.o 
  492: 	$(CC) $(LFLAGS) -o $@ $<
  493: ifdef _macosx
  494: 	$(DSYMUTIL) $@
  495: endif
  496: 
  497: # Powell original means without -DPOWELLNOF3INFF1TEST (with F3<F1 test) 
  498: #calls = 33 & 4088, -2 Log likelihood = 46623.239341985027 reaches the maximum !
  499: #From zeroes doesn't reach the maximum calls = 34 & 4212, -2 Log likelihood = 46542.398769900567
  500: #calls = 34 & 4212, -2 Log likelihood = 46542.398769900567
  501: imach-0.98r-powell.o : imach-0.98r.c 
  502: 	 $(CC) $(CFLAGS) -DPOWELLORIGINAL -DLINMINORIGINAL -DMNBRAKORIGINAL  -DUNKNOWNSTATUSNOTCONTRIBUTING  -DDISPATCHINGKNOWNDEATHAFTERLASTWAVE $(CROSSCOMPILATION) -o $@  -c $<
  503: #	 $(CC) $(CFLAGS) -DPOWELLORIGINAL -DLINMINORIGINAL -DMNBRAKORIGINAL $(CROSSCOMPILATION) -E  -c $< | cppbeauty
  504: 
  505: imach-0.98r-powell.i : imach-0.98r.c 
  506: 	 $(CC) $(CFLAGS) -DPOWELLORIGINAL -DLINMINORIGINAL -DMNBRAKORIGINAL $(CROSSCOMPILATION) -E -o $@ -c $< 
  507: 
  508: ###############
  509: # powell test with f1f3 powell, linmin fix but no mnbrak fix
  510: imach-0.98r-powellf1f3lin: imach-0.98r-powellf1f3lin.o 
  511: 	$(CC) $(LFLAGS) -o $@ $<
  512: ifdef _macosx
  513: 	$(DSYMUTIL) $@
  514: endif
  515: 
  516: # ?calls = 41 & 4718, -2 Log likelihood = 46690.242656475864
  517: #calls = 33 & 4088, -2 Log likelihood = 46623.239341985027
  518: # from zeroes calls = 34 & 4212, -2 Log likelihood = 46542.398769900567
  519: imach-0.98r-powellf1f3lin.o : imach-0.98r.c 
  520: 	 $(CC) $(CFLAGS) -DPOWELLORIGINAL -DMNBRAKORIGINAL  -DUNKNOWNSTATUSNOTCONTRIBUTING  -DDISPATCHINGKNOWNDEATHAFTERLASTWAVE $(CROSSCOMPILATION) -o $@  -c $<
  521: 
  522: #############
  523: 
  524: 
  525: # directest with f3<f1 without mnbrak fix but linmin fix
  526: imach-0.98r-powellf1f3orilin: imach-0.98r-powellf1f3orilin.o 
  527: 	$(CC) $(LFLAGS) -o $@ $<
  528: ifdef _macosx
  529: 	$(DSYMUTIL) $@
  530: endif
  531: 
  532: #Maximum not reached but converge from zeroes
  533: #calls = 34 & 4212, -2 Log likelihood = 46542.398769900567
  534: imach-0.98r-powellf1f3orilin.o : imach-0.98r.c 
  535: 	 $(CC) $(CFLAGS)  -DMNBRAKORIGINAL -DUNKNOWNSTATUSNOTCONTRIBUTING  -DDISPATCHINGKNOWNDEATHAFTERLASTWAVE $(CROSSCOMPILATION) -o $@  -c $<
  536: 
  537: #######
  538: 
  539: # Powell test not direct, with mnbrak and linmin fixes
  540: imach-0.98r-powellf1f3linmnb: imach-0.98r-powellf1f3linmnb.o 
  541: 	$(CC) $(LFLAGS) -o $@ $<
  542: ifdef _macosx
  543: 	$(DSYMUTIL) $@
  544: endif
  545: 
  546: # worst, diverges from zeroes -DDEBUGMNBRAK
  547: #calls = 18 & 3163, -2 Log likelihood = 50929.075310962719
  548: 
  549: imach-0.98r-powellf1f3linmnb.o : imach-0.98r.c 
  550: 	 $(CC) $(CFLAGS) -DDEBUG -DPOWELLORIGINAL -DUNKNOWNSTATUSNOTCONTRIBUTING  -DDISPATCHINGKNOWNDEATHAFTERLASTWAVE $(CROSSCOMPILATION) -o $@  -c $<
  551: imach-0.98r-powellf1f3linmnb.i : imach-0.98r.c 
  552: 	 $(CC) $(CFLAGS) -DDEBUG -DPOWELLORIGINAL -DUNKNOWNSTATUSNOTCONTRIBUTING  -DDISPATCHINGKNOWNDEATHAFTERLASTWAVE $(CROSSCOMPILATION) -E -c $< | cppbeauty
  553: #########
  554: 
  555: # Powell test not direct, with mnbrak and linmin fixes
  556: imach-0.98r-powellf1f3linmnbiter: imach-0.98r-powellf1f3linmnbiter.o 
  557: 	$(CC) $(LFLAGS) -o $@ $<
  558: ifdef _macosx
  559: 	$(DSYMUTIL) $@
  560: endif
  561: 
  562: #
  563: #
  564: 
  565: imach-0.98r-powellf1f3linmnbiter.o : imach-0.98r.c 
  566: 	 $(CC) $(CFLAGS) -DDEBUG -DPOWELLORIGINAL -DUNKNOWNSTATUSNOTCONTRIBUTING  -DDISPATCHINGKNOWNDEATHAFTERLASTWAVE -DNODIRECTIONCHANGEDUNTILNITER $(CROSSCOMPILATION) -o $@  -c $<
  567: imach-0.98r-powellf1f3linmnbiter.i : imach-0.98r.c 
  568: 	 $(CC) $(CFLAGS) -DDEBUG -DPOWELLORIGINAL -DUNKNOWNSTATUSNOTCONTRIBUTING  -DDISPATCHINGKNOWNDEATHAFTERLASTWAVE -DNODIRECTIONCHANGEDUNTILNITER $(CROSSCOMPILATION) -E -c $< | cppbeauty
  569: #########
  570: 
  571: 
  572: imach-0.98r-powellf1f3ori: imach-0.98r-powellf1f3ori.o 
  573: 	$(CC) $(LFLAGS) -o $@ $<
  574: ifdef _macosx
  575: 	$(DSYMUTIL) $@
  576: endif
  577: 
  578: # Powell  with -DPOWELLNOF3INFF1TEST which is not Powell original!
  579: #calls = 41 & 4718, -2 Log likelihood = 46690.242656475864, doesn't reach the maximum
  580: imach-0.98r-powellf1f3ori.o : imach-0.98r.c 
  581: 	 $(CC) $(CFLAGS) -DPOWELLNOF3INFF1TEST -DPOWELLORIGINAL -DLINMINORIGINAL -DMNBRAKORIGINAL $(CROSSCOMPILATION) -o $@  -c $< 
  582: imach-0.98r-powellf1f3ori.i : imach-0.98r.c 
  583: 	 $(CC) $(CFLAGS) -DPOWELLNOF3INFF1TEST -DPOWELLORIGINAL -DLINMINORIGINAL -DMNBRAKORIGINAL $(CROSSCOMPILATION) -E -o $@  -c $<| cppbeauty
  584: 
  585: 
  586: 
  587: 
  588: 
  589: 
  590: imachtest.o : imach.c 
  591: 	 $(CC) $(CFLAGS) $(CROSSCOMPILATION) -DPOWELLORIGINAL -DNRCORIGINAL -DINFINITYORIGINAL -DDEBUGBRENT -o $@ -c $<
  592: 
  593: #	 $(CC) $(CFLAGS) $(CROSSCOMPILATION)  -DFIXMNBRAK -o imachtest.o -c imach.c
  594: 
  595: # http://msdn.microsoft.com/en-us/library/abx4dbyh%28v=vs.100%29.aspx
  596: imachcl: imach.c
  597: 	cl /O2 /MT /o imach.exe imach.c
  598: 
  599: imach097b : imach097b.o 
  600: 	$(CC) $(LFLAGS) -o imach097b imach097b.o
  601: imach097b.o : imach097b.c 
  602: 	$(CC) $(CFLAGS) -DPOWELL -c imach097b.c
  603: 
  604: 
  605: imachsimplified : imachsimplified.o 
  606: 	$(CC)  $(LFLAGSOPT) -o imachsimplified imachsimplified.o
  607: imachsimplified.o : imachsimplified.c 
  608: 	$(CC) $(CFLAGSOPT) -DPOWELL -c imachsimplified.c
  609: 
  610: imachgsl : imachgsl.o 
  611: 	$(CC) -o imachgsl imach.o  $(LFLAGS) $(LGSL) 
  612: imachgsl.o : imach.c 
  613: 	$(CC) $(CFLAGS) -DGSL $(IGSL) -c imach.c
  614: 
  615: imachNEWUOAopt : imachNEWUOAopt.o 
  616: 	$(CC) -o imachNEWUOAopt  imachNEWUOAopt.o  $(LFLAGS) -g $(LNLOPT) 
  617: imachNEWUOAopt.o : imach.c 
  618: 	$(CC) $(CFLAGS) -g -DNLOPT $(INLOPT) -DNEWUOA -o  imachNEWUOAopt.o -c imach.c
  619: 
  620: imachBOBYQAopt : imachBOBYQAopt.o 
  621: 	$(CC) -o imachBOBYQAopt imachBOBYQAopt.o  $(LFLAGS) $(LNLOPT) 
  622: imachBOBYQAopt.o : imach.c 
  623: 	$(CC) $(CFLAGS) -DNLOPT $(INLOPT) -DBOBYQA -o imachBOBYQAopt.o -c imach.c
  624: 
  625: # imachback : imachback.o
  626: # 	$(CC) $(LFLAGSOPT) -o imachback imachback.o
  627: 
  628: imachopt : imachopt.o 
  629: 	$(CC) $(LFLAGSOPT) -o imachopt imachopt.o
  630: 	ln -f imachopt imach
  631: 	$(CP) imachopt Output/imachopt$(VERSION)-$(BINVERSION)
  632: 	$(CP) -f imach ../bin
  633: ifdef _intel64onosx
  634: 	$(CP) imachopt Output/imachopt$(VERSION)-$(BINVERSION)
  635: endif
  636: ifdef _macosx
  637: 	$(STRIP) imach
  638: 	$(STRIP) imachopt
  639: endif
  640: ifdef _linux32onosx
  641: 	(cd .. && $(TAR) jcvf src/Output/imach-Linux-$(VERSION)-$(BINVERSION).tar.bz2 bin html/doc/biaspar.imach html/doc/data1.txt)
  642: endif
  643: ifdef _linux64onosx
  644: 	(cd .. && $(TAR) jcvf src/Output/imach-Linux-$(VERSION)-$(BINVERSION).tar.bz2 bin html/doc/biaspar.imach html/doc/data1.txt)
  645: endif
  646: 
  647: imachback: imachback.o 
  648: 	$(CC) $(LFLAGS) -DBACKCASTWO -o imachback imachback.o
  649: ifdef _macosx
  650: 	$(DSYMUTIL) imachback
  651: endif
  652: 
  653: imachback.o : imachback.c version.h
  654: 	$(CC)  $(CFLAGS) $(CROSSCOMPILATION)  -c $<
  655: 
  656: imachopt.o : imach.c version.h
  657: 	$(CC) $(CFLAGSOPT) $(CROSSCOMPILATION) -o imachopt.o -c imach.c
  658: #	$(CC) $(CFLAGSOPT) -DPOWELL -o imachopt.o -c imach.c
  659: 
  660: imachUB : imach32 imach64
  661: 	lipo -create -arch i386 imach_32 -arch x86_64 imach_64 -output imach$(VERSION)
  662: 
  663: imachrpm : imachopt.o 
  664: 	pwd
  665: 	(cd ../build && rm -r gnulinux && mkdir gnulinux && cd gnulinux ;\
  666: 	pwd ;\
  667: 	cmake ../..;\
  668: 	cmake --build . ; \
  669: 	echo $(OSTYPE);\
  670: 	cpack  --debug --verbose -D CPACK_RPM_PACKAGE_DEBUG=1 -G RPM;\
  671: 	cp  imach-$(VERSION)-*.rpm ../../src/Output/ ;)
  672: 
  673: imachsrcrpm : imachopt.o 
  674: 	pwd
  675: 	(cd ../build && rm -r gnulinux && mkdir gnulinux && cd gnulinux ;\
  676: 	pwd ;\
  677: 	cmake ../..;\
  678: 	cmake --build . ; \
  679: 	echo $(OSTYPE);\
  680: 	cpack --debug --verbose -D CPACK_RPM_PACKAGE_DEBUG=1 -G RPM --config ./CPackSourceConfig.cmake;\
  681: 	cp  imach-$(VERSION)-*.rpm ../../src/Output/ ;)
  682: 
  683: #imachdmg : imachopt.o create-dmg applet IMaChInfo.plist.in IMaChPkgInfo.in IMaCh.icns main.scpt.in IMaCh-ecrandemarrage.rsrc TXT.rtf
  684: #	$(CC) $(LFLAGSOPT) -o imach imachopt.o
  685: #	#hdiutil detach /Volumes/IMaCh\ $(VERSION)
  686: #	cp ../../distributions/osx/gnuplot_bin/gnuplot_2_6_5_OSX imach$(VERSION).app/Contents/Resources/bin/gnuplot;\
  687: 
  688: imachdmg : imachopt.o ../distributions/osx/create-dmg ../distributions/osx/createdmg4.sh ../distributions/osx/IMaChInfo.plist.in ../distributions/osx/IMaChPkgInfo.in ../distributions/osx/IMaCh.icns  ../distributions/osx/TXT.rtf
  689: 	pwd
  690: 	(cd ../build && rm -r osx && mkdir osx && cd osx ;\
  691: 	pwd ;\
  692: 	cmake ../..;\
  693: 	cmake --build . ; \
  694: 	echo $(OSTYPE);\
  695: 	rm -rf imach$(VERSION).app;\
  696: 	mkdir -p imach$(VERSION).app;\
  697: 	mkdir -p imach$(VERSION).app/Contents;\
  698: 	mkdir -p imach$(VERSION).app/Contents/MacOS;\
  699: 	cp ../../distributions/osx/imach imach$(VERSION).app/Contents/MacOS;\
  700: 	mkdir -p imach$(VERSION).app/Contents/Resources;\
  701: 	mkdir -p imach$(VERSION).app/Contents/Resources/Scripts;\
  702: 	mkdir -p imach$(VERSION).app/Contents/Resources/bin;\
  703: 	mkdir -p imach$(VERSION).app/Contents/Resources/lib;\
  704: 	mkdir -p imach$(VERSION).app/Contents/Resources/doc;\
  705: 	mkdir -p imach$(VERSION).app/Contents/Resources/tests;\
  706: 	mkdir -p imach$(VERSION).app/Contents/Resources/tests/data;\
  707: 	cp IMaCh-$(VERSION) imach$(VERSION).app/Contents/Resources/bin/imach;\
  708: 	cp ../../distributions/osx/gnuplot_bin/bin/gnuplot imach$(VERSION).app/Contents/Resources/bin/gnuplot;\
  709: 	cp ../../distributions/osx/gnuplot_bin/lib/* imach$(VERSION).app/Contents/Resources/lib;\
  710: 	mkdir -p imach$(VERSION).app/Contents/Resources/description.rtfd;\
  711: 	cp -p ../../distributions/osx/TXT.rtf imach$(VERSION).app/Contents/Resources/description.rtfd ;\
  712: 	$(SED) -e "s/@VERSION@/$(VERSION)/g;" ../../distributions/osx/IMaChInfo.plist.in  >imach$(VERSION).app/Contents/Info.plist ;\
  713: 	cp -p ../../distributions/osx/IMaChPkgInfo.in  imach$(VERSION).app/Contents/PkgInfo ;\
  714: 	cp -p ../../distributions/osx/IMaCh.icns  imach$(VERSION).app/Contents/Resources/IMaCh.icns ;\
  715: 	cp ../../html/doc/data1.txt  imach$(VERSION).app/Contents/Resources/doc ;\
  716: 	cp ../../html/doc/biaspar.log  imach$(VERSION).app/Contents/Resources/doc ;\
  717: 	cp ../../html/doc/biaspar.imach  imach$(VERSION).app/Contents/Resources/doc ;\
  718: 	cp ../../src/README.txt  imach$(VERSION).app/Contents/Resources/doc ;\
  719: 	cp ../../tests/testV1V2.imach  imach$(VERSION).app/Contents/Resources/tests ;\
  720: 	cp ../../tests/rtestV1V2.imach  imach$(VERSION).app/Contents/Resources/tests ;\
  721: 	cp ../../tests/testV2.imach  imach$(VERSION).app/Contents/Resources/tests ;\
  722: 	cp ../../tests/rtestV2.imach  imach$(VERSION).app/Contents/Resources/tests ;\
  723: 	cp ../../tests/data/data2.txt  imach$(VERSION).app/Contents/Resources/tests/data ;\
  724: 	rm -f imach$(VERSION).dmg ;\
  725: 	pwd ;\
  726: 	cp ../../distributions/osx/createdmg4.sh . ;\
  727: 	cp ../../distributions/osx/Background.png .;\
  728: 	pwd ;\
  729: 	./createdmg4.sh  --volname "IMaCh $(VERSION)" imach$(VERSION).dmg imach$(VERSION) ;\
  730: 	cp  imach$(VERSION).dmg ../../src/Output/ ;)
  731: #	./create-dmg --volname "IMaCh $(VERSION)" imach$(VERSION).dmg imach$(VERSION).app 
  732: #	./createdmg2.sh --volname "IMaCh $(VERSION)" imach$(VERSION).dmg imach$(VERSION)
  733: 
  734: md5:
  735: 	ls Output/* | xargs md5sum
  736: upload:
  737: #	rsync -v Output/imach-0.98r4-1.x86_64.rpm brouard@henry.ined.fr:/home/euroreves/html/imach/Download
  738: #	rsync -v Output/IMaCh-0.99a3-icl-setup.exe brouard@henry.ined.fr:/home/euroreves/html/imach/Download
  739: #	rsync -v Output/imach0.99a3.dmg brouard@henry.ined.fr:/home/euroreves/html/imach/Download
  740: #	rsync -v Output/IMaCh-0.98r7-icl-setup.exe brouard@henry.ined.fr:/home/euroreves/html/imach/Download
  741: #	rsync -v Output/imach0.98r7.dmg brouard@henry.ined.fr:/home/euroreves/html/imach/Download
  742: #	rsync -v Output/imach-0.99r9-icl-setup.exe brouard@henry.ined.fr:/home/euroreves/html/imach/Download
  743: #	rsync -v Output/imach0.99r9.dmg brouard@henry.ined.fr:/home/euroreves/html/imach/Download
  744: #	rsync -v Output/imach-0.99r19-icl-setup.exe brouard@henry.ined.fr:/home/euroreves/html/imach/Download
  745: #	rsync -v Output/imach0.99r19.dmg brouard@henry.ined.fr:/home/euroreves/html/imach/Download
  746: #	rsync -v Output/imach-0.99r21-icl-setup.exe brouard@henry.ined.fr:/home/euroreves/html/imach/Download
  747: #	rsync -v Output/imach0.99r21.dmg brouard@henry.ined.fr:/home/euroreves/html/imach/Download
  748: #	rsync -v Output/imach-0.99r22-icl-setup.exe brouard@henry.ined.fr:/home/euroreves/html/imach/Download
  749: #	rsync -v Output/imach0.99r22.dmg brouard@henry.ined.fr:/home/euroreves/html/imach/Download
  750: #	rsync -v Output/imach-0.99r23-icl-setup.exe brouard@henry.ined.fr:/home/euroreves/html/imach/Download
  751: #	rsync -v Output/imach0.99r23.dmg brouard@henry.ined.fr:/home/euroreves/html/imach/Download
  752: #	rsync -v Output/imach-0.99r24-icl-setup.exe brouard@henry.ined.fr:/home/euroreves/html/imach/Download
  753: #	rsync -v Output/imach0.99r24.dmg brouard@henry.ined.fr:/home/euroreves/html/imach/Download
  754: 	rsync -v Output/imach-0.99r24-1.x86_64.rpm brouard@henry.ined.fr:/home/euroreves/html/imach/Download
  755: #	rsync -v Output/imach-0.99r19-1.x86_64.rpm brouard@henry.ined.fr:/home/euroreves/html/imach/Download
  756: #	rsync -v Output/imach0.99r12-1.x86_64.rpm brouard@henry.ined.fr:/home/euroreves/html/imach/Download
  757: #	rsync -v Output/* brouard@henry.ined.fr:/home/euroreves/html/imach/Download
  758: 
  759: imachcyg : imachcyg.o
  760: 	$(CC) $(LFLAGS) -o imach imachcyg.o
  761: imachcyg.o : imach.c 
  762: 	$(CC) $(CFLAGS)  -c -o imachcyg.o imach.c
  763: imachcygopt.exe : imachcygopt.o
  764: 	$(CC) $(LFLAGSOPT) -o imachcygopt.exe imachcygopt.o
  765: imachcygopt.o : imach.c 
  766: 	$(CC) $(CFLAGSOPT) -c -o imachcygopt.o imach.c
  767: 
  768: imachw32.o : imach.c
  769: 	i386-mingw32-gcc -c imach.c -o imachw32.o
  770: imach.exe : imachw32.o 
  771: 	i386-mingw32-gcc  -mwindows -o imach.exe -lm imachw32.o
  772: 	i386-mingw32-strip imach.exe
  773: 
  774: valgrindtoto: valgrindtoto.c
  775: 	gcc -o valgrindtoto -DCROSS=0 -g valgrindtoto.c
  776: valgrindtototest: valgrindtoto
  777: 	valgrind  --dsymutil=yes --leak-check=full --show-leak-kinds=all --track-origins=yes ./valgrindtoto
  778: 
  779: valgrind-test :  imach $(TESTFILE) 
  780: 	valgrind  --dsymutil=yes --leak-check=full --show-leak-kinds=all --track-origins=yes ./imach $(TESTFILE)
  781: #	valgrind  --dsymutil=yes --leak-check=full --show-leak-kinds=all --track-origins=yes ./imach-0.98r-powellf1f3linmnb $(TESTFILE)
  782: # gdb -ex=r --args myprogram arg1 arg2
  783: # gdb -batch -x /tmp/cmds --args executablename arg1 arg2 arg3
  784: #  gdb -ex=r --args imachback /Users/nbrouard/Documents/Recherches/HRS/RAND_HRS/imachb.imach
  785: btest:  imachback $(TESTFILE) 
  786: 	gdb ./imachback $(TESTFILE)
  787: test:  imach $(TESTFILE) 
  788: 	gdb ./imach $(TESTFILE)
  789: 
  790: $(PARAM).htm: imach $(PARAM).imach data1.txt
  791: 	./imach $(PARAM).imach
  792: 
  793: clean: 
  794: 	rm or$(PARAM).txt er$(PARAM).txt pijr$(PARAM).txt plr$(PARAM).txt \
  795: 	r$(PARAM).txt tr$(PARAM).txt vpl$(PARAM).txt pr$(PARAM).txt \
  796: 	vr$(PARAM).txt *.gif imach.exe imach.o
  797: 
  798: 

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>