Annotation of imach/src/Makefile, revision 1.87

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

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