Annotation of imach/src/Makefile, revision 1.83

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

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