Annotation of imach/src/Makefile, revision 1.62

1.62    ! brouard     1: VERSION=0.98q4
1.57      brouard     2: COPYRIGHT=Copyright (C)  2002-2015 INED-EUROREVES-Institut de longevite-Japan Society for the Promotion of Science (Grant-in-Aid for Scientific Research 25293121) - Intel Software 2015
1.62    ! brouard     3: IMACHSETUPVERSION=icl
1.60      brouard     4: # This is for Windows only
1.57      brouard     5: #IMACHSETUPVERSION=mvc
1.21      brouard     6: 
1.40      brouard     7: #       Linux
1.21      brouard     8: # make _linux=1 imachopt
                      9: # make _linux=1 imach
1.62    ! brouard    10: # cpack -D CPACK_RPM_PACKAGE_DEBUG=1 -D CPACK_RPM_SPEC_INSTALL_POST="/bin/true" -G RPM
1.40      brouard    11: # make _linux32onosx=1 imachopt
                     12: # make _linux64onosx=1 imachopt
                     13: 
1.42      brouard    14: #       OS/X
1.61      brouard    15: # make _macosx=1 imachdmg
1.48      brouard    16: # make _intel64onosx=1 imachopt
1.49      brouard    17: # make _intel32onosx=1 imachopt
                     18: # make _intelUNBonosx=1 imachdmg # Not implemented (not useful)
1.27      brouard    19: # make _macosx=1 imach
1.49      brouard    20: # make _macosx=1 imachopt
1.32      brouard    21: #  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    22: 
                     23: #        Windows
1.62    ! brouard    24: # make _windowsonosx=1 imachICL-setup (touch setup.iss.in) #binary should have been compiled on Windows with Intel
1.45      brouard    25: # make _windowsonosx=1 imachMVC-setup (touch setup.iss.in) #binary should have been compiled on Windows with cl
1.51      brouard    26: # make _windowsonosx=1 imachMVC-noreg-setup
1.42      brouard    27: #
1.44      brouard    28: #        Windows cross-compiled mw64
                     29: # make _mw64onsox=1 imachcyg-setup
                     30: #
1.21      brouard    31: # make _windows=1 imachcyg
1.23      lievre     32: # make _windows=1 imachcyg-setup (touch setup.iss.in)
                     33: # make _windows=1 imachcyg-noreg-setup
1.31      brouard    34: #
                     35: # make _windowsonlinux=1 imachcyg-setup (touch setup.iss.in)
                     36: # make _windowsonlinux=1 imachcyg-noreg-setup
                     37: #
1.42      brouard    38: # make _windowscl=1 imachclopt
1.40      brouard    39: 
1.31      brouard    40: #
1.21      brouard    41: # sortie dans Output/setup.exe
                     42: # ln -s /cygdrive/c/Program\ Files/Inno\ Setup\ 4/Compil32.exe /usr/local/bin/Compil32
                     43: ##SETUPCOMP=  "C:\Program Files\Inno Setup 3\Compil32.exe"
1.36      brouard    44: #TESTFILE=$$HOME/Documents/Recherches/REVES/SAITO/Tokyo2014/adlc-test-mac/adecode-1.142c.imach
1.45      brouard    45: #TESTFILE=$(HOME)/Documents/Recherches/REVES/carol/carol-june2014/educadlmwt24.imach
1.55      brouard    46: #TESTFILE=$(HOME)/Documents/Recherches/REVES/Biaspar/biaspar-wopowell.imach
1.58      brouard    47: #TESTFILE=$(HOME)/Documents/Recherches/REVES/Biaspar/rbiaspar-098p.imach
                     48: TESTFILE=$(HOME)/Documents/Recherches/REVES/Aaron/brouard/results/COVARAITE_94/rmypar24pis1cov1-age.imach
1.34      brouard    49: #TESTFILE=$(HOME)/Documents/Recherches/REVES/SAITO/Tokyo2014/adlc-test-mac/adecode-1.142c.imach
1.35      brouard    50: #TESTFILE=$(HOME)/Documents/Recherches/REVES/SAITO/Tokyo2014/adlc_test_magei4/radlc_often.imach
1.21      brouard    51: #CC= gcc -v
1.28      brouard    52: CC=$(GCC)
                     53: GCC= gcc
1.21      brouard    54: 
                     55: ifdef _macosx
                     56: # Mac OS/X version
1.45      brouard    57: LFLAGS= -g -lm 
1.58      brouard    58: #CFLAGS= -g -DDEBUG 
                     59: CFLAGS= -g 
1.45      brouard    60: LFLAGSOPT= -O3 -lm 
1.55      brouard    61: CFLAGSOPT= -O3 
1.58      brouard    62: CP= cp
1.54      brouard    63: CROSSCOMPILATION= -DCROSS=0
1.21      brouard    64: UNIX2DOS= echo "Unix2dos " 
1.34      brouard    65: DSYMUTIL= dsymutil
1.42      brouard    66: STRIP= strip
                     67: BINVERSION=OSX
1.21      brouard    68: # Don'know how to launch imach098.pmsp in batch to create package file imach098Panther.pkg
                     69: # ./createdmg.sh imach imach098panther ./imach098Panther
1.27      brouard    70: # ./createdmg.sh imach imach098leopard ./imach098Leopard
1.21      brouard    71: # and directory ./imach098Panther contains package file imach098Panther.pkg
1.27      brouard    72: #./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/
                     73: # ./create-dmg --volname "IMaCh 0.98j" imach098j.dmg imach098Leopard
1.21      brouard    74: endif
                     75: 
                     76: ifdef _windows
1.29      brouard    77: CC=c:\MinGW\bin\Mingw32-gcc
                     78: 
1.21      brouard    79: # Windows cygwin version
                     80: LFLAGS= -g -mno-cygwin
                     81: CFLAGS= -g -mno-cygwin
                     82: LFLAGSOPT= -O3 -mno-cygwin
                     83: CFLAGSOPT= -O3 -mno-cygwin
                     84: UNIX2DOS= unix2dos
1.30      brouard    85: CP= copy
1.42      brouard    86: BINVERSION=CYGWIN
1.29      brouard    87: #SETUPCOMP= Compil32 
1.21      brouard    88: ##SETUPCOMP=start /wait "C:\Program\ Files\\Compil32.exe"
1.29      brouard    89: # cygwin SETUPCOMP=  "C:\Program Files\Inno Setup 4\Compil32.exe"
                     90: SETUPCOMP= "C:////Program Files////Inno Setup 4////Compil32.exe"
1.21      brouard    91: endif
                     92: 
1.28      brouard    93: ifdef _windowsonlinux
                     94: GCC=/usr/bin/i586-pc-mingw32-gcc
                     95: LFLAGS= -g
                     96: CFLAGS= -g
1.30      brouard    97: LFLAGSOPT= -O3 -lm
1.28      brouard    98: CFLAGSOPT= -O3
1.55      brouard    99: CROSSCOMPILATION= -DCROSS=1
1.30      brouard   100: CP= cp
1.28      brouard   101: UNIX2DOS= unix2dos
                    102: SETUPCOMP= wine "C:////Program Files////Inno Setup 4////Compil32.exe"
1.42      brouard   103: BINVERSION=WINDOWSonLINUX
1.28      brouard   104: endif
                    105: 
1.31      brouard   106: ifdef _windowsonosx
1.40      brouard   107: #GCC=/usr/local/i386-mingw32-4.3.0/bin/i386-mingw32-gcc
1.31      brouard   108: #GCC=/usr/local/cross-tools/bin/i686-w64-mingw32-gcc
1.38      brouard   109: 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   110: STRIP=/usr/local/gcc-4.8.0-qt-4.8.4-for-mingw32/win32-gcc/bin/i586-mingw32-strip
                    111: LFLAGS= -g
                    112: CFLAGS= -g
                    113: LFLAGSOPT= -O3 -s
                    114: CFLAGSOPT= -O3
1.55      brouard   115: CROSSCOMPILATION= -DCROSS=1
1.40      brouard   116: UNIX2DOS= unix2dos
                    117: SETUPCOMP= ~/bin/InnoSetup5Playonmac
                    118: CP= cp
1.42      brouard   119: BINVERSION=WIN32onOSX
                    120: endif
                    121: 
1.44      brouard   122: ifdef _mw64onosx
                    123: GCC=/usr/local/mingw-w64-bin_i686-darwin_20130622/bin/x86_64-w64-mingw32-gcc-4.9.0
                    124: STRIP=/usr/local/mingw-w64-bin_i686-darwin_20130622/bin/x86_64-w64-mingw32-strip
                    125: LFLAGS= -g
                    126: CFLAGS= -g
                    127: LFLAGSOPT= -O3 -lm -s
                    128: CFLAGSOPT= -O3
1.55      brouard   129: CROSSCOMPILATION= -DCROSS=1
1.44      brouard   130: UNIX2DOS= unix2dos
                    131: SETUPCOMP= ~/bin/InnoSetup5Playonmac
                    132: CP= cp
                    133: BINVERSION=w64-mingw32-x86-64-bin
                    134: endif
                    135: 
1.42      brouard   136: ifdef _windowscl
                    137: rem "C:\Program Files\Microsoft Visual Studio 10.0\VC\bin\vcvas32.bat"
1.40      brouard   138: endif
                    139: 
1.48      brouard   140: # make _intel64onosx=1 imachopt
                    141: #source /opt/intel/bin/iccvars.sh intel64
                    142: ifdef _intel64onosx
                    143: GCC=/opt/intel/bin/icc
                    144: CFLAGS= -m64 -g -std=c99
1.49      brouard   145: LFLAGS= -g -m64
1.52      brouard   146: #CFLAGSOPT= -O3 -m64 -g -std=c99 -no-prec-div idem
                    147: #CFLAGSOPT= -O3 -m64 -g -std=c99 -xSSSE3_ATOM 402
1.49      brouard   148: CFLAGSOPT= -O3 -m64 -g -std=c99
1.52      brouard   149: CROSSCOMPILATION= -DCROSS=0
1.48      brouard   150: IGNORE :=$(shell bash -c "source /opt/intel/bin/iccvars.sh intel64; env | sed 's/=/:=/' | sed 's/^/export /' > makeenv")
                    151: include makeenv
                    152: #lipo -create -arch i386 HelloWorld_32 -arch x86_64 HelloWorld_64 -output HelloWorld
1.49      brouard   153: LFLAGSOPT= -O3 -m64
1.48      brouard   154: UNIX2DOS= unix2dos
                    155: SETUPCOMP= ~/bin/InnoSetup5Playonmac
                    156: CP= cp
                    157: BINVERSION=osx-intel-x86-64-bin
1.49      brouard   158: #imach_64$(VERSION)
                    159: #
                    160: endif
                    161: 
                    162: ifdef _intel32onosx
                    163: GCC=/opt/intel/bin/icc
                    164: CFLAGS= -m32 -g -std=c99
                    165: LFLAGS= -g -m32
                    166: CFLAGSOPT= -O3 -m32 -g -std=c99
1.52      brouard   167: CROSSCOMPILATION= -DCROSS=0
1.49      brouard   168: IGNORE :=$(shell bash -c "source /opt/intel/bin/iccvars.sh ia32; env | sed 's/=/:=/' | sed 's/^/export /' > makeenv")
                    169: include makeenv
                    170: #lipo -create -arch i386 HelloWorld_32 -arch x86_64 HelloWorld_64 -output HelloWorld
                    171: #lipo -create -arch i386 imach_32$(VERSION) -arch x86_64 imach_64$(VERSION) -output imach$(VERSION)
                    172: LFLAGSOPT= -O3 -m32
                    173: UNIX2DOS= unix2dos
                    174: SETUPCOMP= ~/bin/InnoSetup5Playonmac
                    175: CP= cp
                    176: BINVERSION=osx-intel-ia32-bin
1.48      brouard   177: endif
                    178: 
1.40      brouard   179: ifdef _linux64onosx
1.51      brouard   180: GCC=/usr/localold/gcc-4.8.1-for-linux64/bin/x86_64-pc-linux-gcc
                    181: STRIP=/usr/localold/gcc-4.8.1-for-linux64/bin/x86_64-pc-linux-strip
1.40      brouard   182: LFLAGS= -g
                    183: CFLAGS= -g
1.51      brouard   184: CROSSCOMPILATION= -DCROSS=1
1.40      brouard   185: LFLAGSOPT= -O3 -lm -s
                    186: CFLAGSOPT= -O3
1.51      brouard   187: TAR= /sw/bin/gnutar
1.40      brouard   188: UNIX2DOS= unix2dos
                    189: SETUPCOMP= ~/bin/InnoSetup5Playonmac
                    190: CP= cp
1.42      brouard   191: BINVERSION=linux-x86-64-bin
1.40      brouard   192: endif
                    193: 
                    194: ifdef _linux32onosx
                    195: #GCC=/usr/local/i386-mingw32-4.3.0/bin/i386-mingw32-gcc
                    196: #GCC=/usr/local/cross-tools/bin/i686-w64-mingw32-gcc
1.51      brouard   197: GCC=/usr/localold/gcc-4.8.1-for-linux32/bin/i586-pc-linux-gcc
                    198: STRIP=/usr/localold/gcc-4.8.1-for-linux32/bin/i586-pc-linux-strip
1.31      brouard   199: LFLAGS= -g
                    200: CFLAGS= -g
1.40      brouard   201: LFLAGSOPT= -O3 -s -lm
1.31      brouard   202: CFLAGSOPT= -O3
1.55      brouard   203: CROSSCOMPILATION= -DCROSS=1
1.51      brouard   204: TAR= /sw/bin/gnutar
1.31      brouard   205: UNIX2DOS= unix2dos
                    206: SETUPCOMP= ~/bin/InnoSetup5Playonmac
1.32      brouard   207: CP= cp
1.42      brouard   208: BINVERSION=linux-i586-bin
1.31      brouard   209: endif
                    210: 
1.21      brouard   211: ifdef _linux
1.26      brouard   212: #CFLAGS= -g -DUNIX -DDEBUGHESS
1.56      brouard   213: #CFLAGS= -g -DDEBUG -DFIXMNBRAK
1.58      brouard   214: #CFLAGS= -g -DDEBUG 
                    215: CFLAGS= -g
1.42      brouard   216: LFLAGS= -g -lm
1.30      brouard   217: IGSL= -I/usr/include/gsl
1.25      brouard   218: LGSL= -lgsl -lgslcblas
1.46      brouard   219: INLOPT= -I/usr/local/include
                    220: LNLOPT= -lm -L/usr/local/lib -lnlopt
1.47      brouard   221: CFLAGSOPT= -O3 -g
                    222: LFLAGSOPT= -O3 -g -lm
1.55      brouard   223: CROSSCOMPILATION= -DCROSS=0
1.21      brouard   224: UNIX2DOS= unix2dos
                    225: SETUPCOMP= wine "C:////Program Files////Inno Setup 4////Compil32.exe"
1.42      brouard   226: BINVERSION=LINUXnative
1.50      brouard   227: CP= cp
1.21      brouard   228: endif
                    229: 
                    230: SED= sed
                    231: PACKAGE=imach
                    232: PROGRAM=IMaCh
                    233: 
                    234: 
                    235: TMPSETUPSCRIPT=setup.iss
                    236: TMPNOREGSETUPSCRIPT=noreg-setup.iss
                    237: TMPSCRIPTIN=setup.iss.in
                    238: APPLICATION=IMaCh
                    239: APPNAME=$(APPLICATION)-$(VERSION)
1.57      brouard   240: APPCOMPILATIONMODE=$(IMACHSETUPVERSION)
                    241: GNUPLOTVERSION=4.6
1.21      brouard   242: LICENSE=Copying
                    243: TMPSETUPEXE=imach-$(VERSION)-$(IMACHSETUPVERSION)-setup.exe
1.31      brouard   244: TMPNOREGSETUPEXE=imach-$(VERSION)-$(IMACHSETUPVERSION)-noreg-setup.exe
1.21      brouard   245: LICENSEFILE=$(LICENSE)
                    246: INFOBEFOREFILE=README.txt
                    247: 
1.31      brouard   248: setup.iss: setup.iss.in
1.21      brouard   249:        $(SED) -e "s/@APPNAME@/$(APPNAME)/g; \
                    250:                s/@NOTINNOREG@//g; \
                    251:                s/@NOREG@//g; \
                    252:                s/@IMACHSETUPVERSION@/$(IMACHSETUPVERSION)/g; \
1.57      brouard   253:                s/@APPCOMPILATIONMODE@/$(APPCOMPILATIONMODE)/g; \
1.21      brouard   254:                s/@VERSION@/$(VERSION)/g; \
                    255:                s/@GNUPLOTVERSION@/$(GNUPLOTVERSION)/g; \
                    256:                s/@INFOBEFOREFILE@/$(INFOBEFOREFILE)/g; \
                    257:                s/@LICENSEFILE@/$(LICENSEFILE)/g; \
                    258:                s/@PACKAGE@/$(PACKAGE)/g; \
                    259:                s/@DICTLANG@/$(DICTLANG)/g; \
                    260:                s/@VERMAJOR@/$(VERMAJOR)/g; \
                    261:                s/@COPYRIGHT@/$(COPYRIGHT)/g;" \
1.31      brouard   262:                setup.iss.in > setup.iss
1.21      brouard   263: 
                    264: $(TMPNOREGSETUPSCRIPT): $(TMPSCRIPTIN)
                    265:        $(SED) -e "s/@APPNAME@/$(APPNAME)/g; \
                    266:                s/@NOTINNOREG@/\\;/g; \
                    267:                s/@NOREG@/noreg-/g; \
                    268:                s/@IMACHSETUPVERSION@/$(IMACHSETUPVERSION)/g; \
                    269:                s/@VERSION@/$(VERSION)/g; \
                    270:                s/@GNUPLOTVERSION@/$(GNUPLOTVERSION)/g; \
                    271:                s/@INFOBEFOREFILE@/$(INFOBEFOREFILE)/g; \
                    272:                s/@LICENSEFILE@/$(LICENSEFILE)/g; \
                    273:                s/@PACKAGE@/$(PACKAGE)/g; \
                    274:                s/@DICTLANG@/$(DICTLANG)/g; \
                    275:                s/@VERMAJOR@/$(VERMAJOR)/g; \
                    276:                s/@COPYRIGHT@/$(COPYRIGHT)/g;" \
                    277:                $(TMPSCRIPTIN) > $(TMPNOREGSETUPSCRIPT)
1.29      brouard   278: #      $(UNIX2DOS) $(TMPNOREGSETUPSCRIPT)
1.21      brouard   279: 
                    280: $(TMPSETUPEXE): $(TMPSETUPSCRIPT)
                    281:        $(SETUPCOMP) /cc $(TMPSETUPSCRIPT)
                    282: 
1.59      brouard   283: #$(TMPNOREGSETUPEXE): $(TMPNOREGSETUPSCRIPT)
                    284: #      $(SETUPCOMP) /cc $(TMPNOREGSETUPSCRIPT)
1.21      brouard   285: 
                    286: PARAM=mypar1
                    287: 
                    288: imachcyg-setup: imachcygopt.exe setup.iss
1.38      brouard   289:        touch setup.iss.in
1.30      brouard   290:        $(CP) imachcygopt.exe imach.exe
1.42      brouard   291:        $(CP) imachcygopt.exe imach$(VERSION)-$(BINVERSION).exe
1.31      brouard   292:        $(SETUPCOMP) /cc setup.iss
                    293:        cp Output/$(TMPSETUPEXE) imachcyg-setup
1.21      brouard   294: 
                    295: # imachcyg-noreg-setup : imachcygopt imachcygopt.o setup.iss.in noreg-setup.iss $(TMPNOREGSETUPEXE)
                    296: imachcyg-noreg-setup: imachcygopt.exe noreg-setup.iss
1.38      brouard   297:        touch setup.iss.in
1.30      brouard   298:        $(CP) imachcygopt.exe imach.exe
1.42      brouard   299:        $(CP) imachcygopt.exe imach$(VERSION)-$(BINVERSION).exe
1.21      brouard   300:        $(SETUPCOMP) /cc $(TMPNOREGSETUPSCRIPT)
1.31      brouard   301:        cp Output/$(TMPNOREGSETUPEXE) imachcyg-noreg-setup
1.62    ! brouard   302: # ICL compiler 64
        !           303: imachICL-build: imach.c
        !           304:        icl /GS /W3 /Zc:wchar_t /O2  /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "UNICODE" /Qipo /Zc:forScope  /MT imach.c 
        !           305: #/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"
        !           306: #  /Users/nbrouard/Documents/imach/imach-gui/build/icl64/Release/imach.exe
1.57      brouard   307: # both 32 and 64 executables should have been built on Windows with Intel compiler.
1.62    ! brouard   308: imachICL-setup: ../build/icl64/Release/IMaCh-$(VERSION).exe ../build/icl32/Release/IMaCh-$(VERSION).exe setup.iss mybuildicl64.bat mybuildicl32.bat
1.51      brouard   309:        pwd
1.57      brouard   310:        $(SETUPCOMP) /cc setup.iss
1.62    ! brouard   311:        $(CP) Output/$(TMPSETUPEXE) imachICL-setup
1.57      brouard   312: 
1.62    ! brouard   313: # imachICL64-setup: IMaCh-icl64-$(VERSION).exe setup.iss
        !           314: #      pwd
        !           315: #      $(CP) IMaCh-icl64-$(VERSION).exe imach.exe
        !           316: #      $(SETUPCOMP) /cc setup.iss
        !           317: #      $(CP) Output/$(TMPSETUPEXE) imachICL64-setup
1.45      brouard   318: 
1.62    ! brouard   319: imachICL64-noreg-setup: IMaCh-icl64-$(VERSION).exe noreg-setup.iss
1.45      brouard   320:        touch setup.iss.in
                    321:        $(SETUPCOMP) /cc $(TMPNOREGSETUPSCRIPT)
1.62    ! brouard   322:        $(CP) Output/$(TMPSETUPEXE) imachICL64-noreg-setup
        !           323: 
        !           324: ../build/icl64/Release/IMaCh-$(VERSION).exe: imach.c mybuildicl64.bat
        !           325:        rm -rf ../build/icl64  && mkdir ../build/icl64
        !           326:        cp mybuildicl64.bat ../build/icl64/
        !           327:        cd ../build/icl64
        !           328:        VBoxManage --nologo guestcontrol "Windows7-64" execute --image "C:\Windows\SysWOW64\cmd.exe" \
        !           329:        --username brouard  --verbose --wait-exit --wait-stdout  --wait-stderr -- "/c" "g:\imachcvs\NetBeans\imach\build\icl64\mybuildicl64.bat" "$(VERSION)"
        !           330: 
        !           331: ../build/icl32/Release/IMaCh-$(VERSION).exe: imach.c mybuildicl32.bat
        !           332:        rm -rf ../build/icl32 && mkdir -p ../build/icl32
        !           333:        cp mybuildicl32.bat ../build/icl32/
        !           334:        cd ../build/icl32
        !           335:        VBoxManage --nologo guestcontrol "Windows7-64" execute --image "C:\Windows\SysWOW64\cmd.exe" \
        !           336:        --username brouard  --verbose --wait-exit --wait-stdout -- "/c" "g:\imachcvs\NetBeans\imach\build\icl32\mybuildicl32.bat" "$(VERSION)"
        !           337: 
        !           338: ../build/vs32/Release/IMaCh-$(VERSION).exe: imach.c mybuildvs32.bat
        !           339:        rm -rf ../build/vs32 && mkdir -p ../build/vs32
        !           340:        cp mybuildvs32.bat ../build/vs32/
        !           341:        cd ../build/vs32
        !           342:        VBoxManage --nologo guestcontrol "Windows7-64" execute --image "C:\Windows\SysWOW64\cmd.exe" \
        !           343:        --username brouard  --verbose --wait-exit --wait-stdout -- "/c" "g:\imach\imach-gui\build\vs32\mybuildvs32.bat" "$(VERSION)"
        !           344: # C:\Windows\SysWOW64\cmd.exe /E:ON /V:ON /K "g:\imach\imach-gui\build\icl32\mybuild.bat"
        !           345: #WORK  --username brouard  --verbose --wait-exit --wait-stdout -- "/c" "c:\users\brouard\mybuild.bat"
        !           346: #      --username brouard  --verbose --wait-exit --wait-stdout -- "/c" "g: && cd \imach\imach-gui\build\icl32 && mybuild.bat"
        !           347: #      --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"
        !           348: #      --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"
        !           349: #              --username brouard --wait-exit --wait-stdout -- "/c" "g: && dir >c:\users\brouard\totog.txt"
        !           350: #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"
        !           351: #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   352: 
1.62    ! brouard   353: imachICL64-setup: ../build/icl64/Release/IMaCh-$(VERSION).exe setup.iss mybuildicl64.bat
        !           354: 
        !           355: imachICL32-setup: ../build/icl32/Release/IMaCh-$(VERSION).exe setup.iss mybuildicl32.bat
        !           356: 
        !           357: imachVS32-setup: ../build/vs32/Release/IMaCh-$(VERSION).exe setup.iss mybuildvs32.bat
1.51      brouard   358: 
1.62    ! brouard   359: imachICL32-noreg-setup: IMaCh-icl32.exe noreg-setup.iss
1.51      brouard   360:        touch setup.iss.in
1.62    ! brouard   361:        $(CP) IMaCh-icl32.exe imach.exe
1.51      brouard   362:        $(SETUPCOMP) /cc $(TMPNOREGSETUPSCRIPT)
1.62    ! brouard   363:        $(CP) Output/$(TMPSETUPEXE) imachICL32-noreg-setup
1.51      brouard   364: 
1.42      brouard   365: imachMVC-setup: imachMVC.exe setup.iss
                    366:        touch setup.iss.in
                    367:        $(CP) imachMVC.exe imach.exe
                    368:        $(SETUPCOMP) /cc setup.iss
1.58      brouard   369:        $(CP) Output/$(TMPSETUPEXE) imachMVC-setup
1.42      brouard   370: 
                    371: # imachcyg-noreg-setup : imachcygopt imachcygopt.o setup.iss.in noreg-setup.iss $(TMPNOREGSETUPEXE)
                    372: imachMVC-noreg-setup: imachMVC.exe noreg-setup.iss
                    373:        touch setup.iss.in
                    374:        $(CP) imachMVC.exe imach.exe
                    375:        $(SETUPCOMP) /cc $(TMPNOREGSETUPSCRIPT)
                    376:        $(CP) Output/$(TMPNOREGSETUPEXE) imachcyg-noreg-setup
                    377: 
1.25      brouard   378: simach : simach.o 
                    379:        $(CC) $(LFLAGS) $(LGSL) -o simach simach.o
                    380: simach.o : simach.c 
1.30      brouard   381:        $(CC) $(CFLAGS) -DGSL -c simach.c
1.25      brouard   382: 
1.56      brouard   383: imachtest: imachtest.o 
                    384:        $(CC) $(LFLAGS) -o imachtest imachtest.o
                    385: ifdef _macosx
                    386:        $(DSYMUTIL) imachtest
                    387: endif
                    388: 
                    389: imach: imach.o 
1.21      brouard   390:        $(CC) $(LFLAGS) -o imach imach.o
1.34      brouard   391: ifdef _macosx
                    392:        $(DSYMUTIL) imach
                    393: endif
                    394: 
1.21      brouard   395: imach.o : imach.c 
1.58      brouard   396:         $(CC) $(CFLAGS) $(CROSSCOMPILATION)  -c imach.c
                    397: #       $(CC) $(CFLAGS) $(CROSSCOMPILATION) -DDEBUGBRENT -c imach.c
1.56      brouard   398: 
                    399: imachtest.o : imach.c 
                    400:         $(CC) $(CFLAGS) $(CROSSCOMPILATION) -DPOWELLORIGINAL -DNRCORIGINAL -DINFINITYORIGINAL -DDEBUGBRENT -o imachtest.o -c imach.c
                    401: 
                    402: #       $(CC) $(CFLAGS) $(CROSSCOMPILATION)  -DFIXMNBRAK -o imachtest.o -c imach.c
1.32      brouard   403: 
1.42      brouard   404: # http://msdn.microsoft.com/en-us/library/abx4dbyh%28v=vs.100%29.aspx
                    405: imachcl: imach.c
                    406:        cl /O2 /MT /o imach.exe imach.c
                    407: 
1.32      brouard   408: imach097b : imach097b.o 
                    409:        $(CC) $(LFLAGS) -o imach097b imach097b.o
                    410: imach097b.o : imach097b.c 
                    411:        $(CC) $(CFLAGS) -DPOWELL -c imach097b.c
1.30      brouard   412: 
                    413: 
                    414: imachsimplified : imachsimplified.o 
                    415:        $(CC)  $(LFLAGSOPT) -o imachsimplified imachsimplified.o
                    416: imachsimplified.o : imachsimplified.c 
                    417:        $(CC) $(CFLAGSOPT) -DPOWELL -c imachsimplified.c
                    418: 
                    419: imachgsl : imachgsl.o 
1.46      brouard   420:        $(CC) -o imachgsl imach.o  $(LFLAGS) $(LGSL) 
1.30      brouard   421: imachgsl.o : imach.c 
                    422:        $(CC) $(CFLAGS) -DGSL $(IGSL) -c imach.c
1.21      brouard   423: 
1.47      brouard   424: imachNEWUOAopt : imachNEWUOAopt.o 
                    425:        $(CC) -o imachNEWUOAopt  imachNEWUOAopt.o  $(LFLAGS) -g $(LNLOPT) 
                    426: imachNEWUOAopt.o : imach.c 
                    427:        $(CC) $(CFLAGS) -g -DNLOPT $(INLOPT) -DNEWUOA -o  imachNEWUOAopt.o -c imach.c
                    428: 
                    429: imachBOBYQAopt : imachBOBYQAopt.o 
                    430:        $(CC) -o imachBOBYQAopt imachBOBYQAopt.o  $(LFLAGS) $(LNLOPT) 
                    431: imachBOBYQAopt.o : imach.c 
                    432:        $(CC) $(CFLAGS) -DNLOPT $(INLOPT) -DBOBYQA -o imachBOBYQAopt.o -c imach.c
                    433: 
1.46      brouard   434: 
1.21      brouard   435: imachopt : imachopt.o 
                    436:        $(CC) $(LFLAGSOPT) -o imachopt imachopt.o
1.62    ! brouard   437:        ln -f imachopt imach
1.49      brouard   438:        $(CP) imachopt Output/imachopt$(VERSION)-$(BINVERSION)
1.50      brouard   439:        $(CP) -f imach ../bin
1.49      brouard   440: ifdef _intel64onosx
                    441:        $(CP) imachopt Output/imachopt$(VERSION)-$(BINVERSION)
                    442: endif
1.42      brouard   443: ifdef _macosx
                    444:        $(STRIP) imach
                    445: endif
                    446: ifdef _linux32onosx
1.51      brouard   447:        (cd .. && $(TAR) jcvf src/Output/imach-Linux-$(VERSION)-$(BINVERSION).tar.bz2 bin html/doc/biaspar.imach html/doc/data1.txt)
1.42      brouard   448: endif
                    449: ifdef _linux64onosx
1.51      brouard   450:        (cd .. && $(TAR) jcvf src/Output/imach-Linux-$(VERSION)-$(BINVERSION).tar.bz2 bin html/doc/biaspar.imach html/doc/data1.txt)
1.42      brouard   451: endif
                    452: 
1.48      brouard   453: imachopt.o : imach.c
1.51      brouard   454:        $(CC) $(CFLAGSOPT) $(CROSSCOMPILATION) -o imachopt.o -c imach.c
1.45      brouard   455: #      $(CC) $(CFLAGSOPT) -DPOWELL -o imachopt.o -c imach.c
1.21      brouard   456: 
1.49      brouard   457: imachUB : imach32 imach64
                    458:        lipo -create -arch i386 imach_32 -arch x86_64 imach_64 -output imach$(VERSION)
                    459: 
                    460: 
                    461: #imachdmg : imachopt.o create-dmg applet IMaChInfo.plist.in IMaChPkgInfo.in IMaCh.icns main.scpt.in IMaCh-ecrandemarrage.rsrc TXT.rtf
1.36      brouard   462: imachdmg : imachopt.o create-dmg applet IMaChInfo.plist.in IMaChPkgInfo.in IMaCh.icns main.scpt.in IMaCh-ecrandemarrage.rsrc TXT.rtf
1.27      brouard   463:        $(CC) $(LFLAGSOPT) -o imach imachopt.o
1.37      brouard   464:        #hdiutil detach /Volumes/IMaCh\ $(VERSION)
1.36      brouard   465:        rm -rf imach$(VERSION).app
                    466:        mkdir -p imach$(VERSION).app
                    467:        mkdir -p imach$(VERSION).app/Contents
                    468:        mkdir -p imach$(VERSION).app/Contents/MacOS
                    469:        cp applet imach$(VERSION).app/Contents/MacOS
                    470:        mkdir -p imach$(VERSION).app/Contents/Resources
                    471:        mkdir -p imach$(VERSION).app/Contents/Resources/Scripts
                    472:        mkdir -p imach$(VERSION).app/Contents/Resources/bin
1.38      brouard   473:        mkdir -p imach$(VERSION).app/Contents/Resources/html
1.36      brouard   474:        cp imach imach$(VERSION).app/Contents/Resources/bin
1.37      brouard   475:        cp gnuplot_bin/gnuplot_2_6_5_OSX imach$(VERSION).app/Contents/Resources/bin/gnuplot
1.36      brouard   476:        mkdir -p imach$(VERSION).app/Contents/Resources/description.rtfd
                    477:        cp -p TXT.rtf imach$(VERSION).app/Contents/Resources/description.rtfd
                    478:        $(SED) -e "s/@VERSION@/$(VERSION)/g;" \
                    479:        IMaChInfo.plist.in  >imach$(VERSION).app/Contents/Info.plist
                    480:        cp -p IMaChPkgInfo.in  imach$(VERSION).app/Contents/PkgInfo
                    481:        cp -p IMaCh.icns  imach$(VERSION).app/Contents/Resources/applet.icns
                    482:        cp -r -p main.scpt.in imach$(VERSION).app/Contents/Resources/Scripts/main.scpt
                    483:        cp IMaCH-ecrandemarrage.rsrc imach$(VERSION).app/Contents/Resources/applet.rsrc
1.38      brouard   484:        cp ../html/doc/data1.txt  imach$(VERSION).app/Contents/Resources/html
                    485:        cp ../html/doc/biaspar.log  imach$(VERSION).app/Contents/Resources/html
                    486:        cp ../html/doc/biaspar.imach  imach$(VERSION).app/Contents/Resources/html
1.36      brouard   487:        rm -f imach$(VERSION).dmg
1.38      brouard   488:        ./createdmg3.sh --volname "IMaCh $(VERSION)" imach$(VERSION).dmg imach$(VERSION)
                    489:        mv  imach$(VERSION).dmg Output/
1.36      brouard   490: #      ./create-dmg --volname "IMaCh $(VERSION)" imach$(VERSION).dmg imach$(VERSION).app
1.38      brouard   491: #      ./createdmg2.sh --volname "IMaCh $(VERSION)" imach$(VERSION).dmg imach$(VERSION)
1.27      brouard   492: 
1.58      brouard   493: md5:
                    494:        ls Output/* | xargs md5sum
1.38      brouard   495: upload:
1.62    ! brouard   496:        rsync -v Output/IMaCh-0.98q4-icl-setup.exe brouard@henry.ined.fr:/home/euroreves/html/imach/Download
        !           497:        rsync -v Output/imach0.98q4.dmg brouard@henry.ined.fr:/home/euroreves/html/imach/Download
        !           498: #      rsync -v Output/* brouard@henry.ined.fr:/home/euroreves/html/imach/Download
1.27      brouard   499: 
1.44      brouard   500: imachcyg : imachcyg.o
                    501:        $(CC) $(LFLAGS) -o imach imachcyg.o
1.21      brouard   502: imachcyg.o : imach.c 
                    503:        $(CC) $(CFLAGS)  -c -o imachcyg.o imach.c
1.44      brouard   504: imachcygopt.exe : imachcygopt.o
                    505:        $(CC) $(LFLAGSOPT) -o imachcygopt.exe imachcygopt.o
1.21      brouard   506: imachcygopt.o : imach.c 
                    507:        $(CC) $(CFLAGSOPT) -c -o imachcygopt.o imach.c
                    508: 
                    509: imachw32.o : imach.c
                    510:        i386-mingw32-gcc -c imach.c -o imachw32.o
                    511: imach.exe : imachw32.o 
                    512:        i386-mingw32-gcc  -mwindows -o imach.exe -lm imachw32.o
                    513:        i386-mingw32-strip imach.exe
                    514: 
1.34      brouard   515: valgrind-test :  imach $(TESTFILE) 
                    516:        valgrind  --dsymutil=yes --leak-check=full --show-leak-kinds=all --track-origins=yes ./imach $(TESTFILE)
                    517: test:  imach $(TESTFILE) 
                    518:        gdb ./imach $(TESTFILE)
1.21      brouard   519: 
                    520: $(PARAM).htm: imach $(PARAM).imach data1.txt
                    521:        ./imach $(PARAM).imach
                    522: 
                    523: clean: 
                    524:        rm or$(PARAM).txt er$(PARAM).txt pijr$(PARAM).txt plr$(PARAM).txt \
                    525:        r$(PARAM).txt tr$(PARAM).txt vpl$(PARAM).txt pr$(PARAM).txt \
                    526:        vr$(PARAM).txt *.gif imach.exe imach.o
                    527: 
                    528: 

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