File:  [Local Repository] / imach / src / Makefile
Revision 1.84: download - view: text, annotated - select for diffs
Thu May 9 15:19:47 2019 UTC (5 years, 1 month ago) by brouard
Branches: MAIN
CVS tags: HEAD
*** empty log message ***

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

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