Annotation of imach/src/Makefile, revision 1.91

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

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