Annotation of imach/src/Makefile, revision 1.73

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

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