File:  [Local Repository] / imach / src / Makefile
Revision 1.83: download - view: text, annotated - select for diffs
Wed Dec 5 16:12:50 2018 UTC (5 years, 11 months ago) by brouard
Branches: MAIN
CVS tags: HEAD
Summary: 0.99r16

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

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