File:  [Local Repository] / imach / src / Makefile
Revision 1.76: download - view: text, annotated - select for diffs
Wed Dec 16 06:58:09 2015 UTC (8 years, 10 months ago) by brouard
Branches: MAIN
CVS tags: HEAD
*** empty log message ***

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

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