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

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