Annotation of imach/src/Makefile, revision 1.89

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

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