Annotation of imach/src/Makefile, revision 1.65

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

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