Annotation of imach/src/Makefile, revision 1.77

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

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