File:  [Local Repository] / imach / src / Makefile
Revision 1.73: download - view: text, annotated - select for diffs
Tue Oct 27 19:51:42 2015 UTC (9 years 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/SAITO/Tokyo2014/adlc-test-mac/adecode-1.142c.imach
   60: #TESTFILE=$(HOME)/Documents/Recherches/REVES/SAITO/Tokyo2014/adlc_test_magei4/radlc_often.imach
   61: #CC= gcc -v
   62: CC=$(GCC)
   63: GCC= gcc
   64: 
   65: ifdef _macosx
   66: # Mac OS/X version
   67: LFLAGS= -g -lm 
   68: #CFLAGS= -g -DDEBUG 
   69: CFLAGS= -g 
   70: LFLAGSOPT= -O3 -lm 
   71: CFLAGSOPT= -O3 
   72: CP= cp
   73: CROSSCOMPILATION= -DCROSS=0
   74: UNIX2DOS= echo "Unix2dos " 
   75: DSYMUTIL= dsymutil
   76: STRIP= strip
   77: BINVERSION=OSX
   78: # Don'know how to launch imach098.pmsp in batch to create package file imach098Panther.pkg
   79: # ./createdmg.sh imach imach098panther ./imach098Panther
   80: # ./createdmg.sh imach imach098leopard ./imach098Leopard
   81: # and directory ./imach098Panther contains package file imach098Panther.pkg
   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
   84: endif
   85: 
   86: ifdef _windows
   87: CC=c:\MinGW\bin\Mingw32-gcc
   88: 
   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
   95: CP= copy
   96: BINVERSION=CYGWIN
   97: #SETUPCOMP= Compil32 
   98: ##SETUPCOMP=start /wait "C:\Program\ Files\\Compil32.exe"
   99: # cygwin SETUPCOMP=  "C:\Program Files\Inno Setup 4\Compil32.exe"
  100: SETUPCOMP= "C:////Program Files////Inno Setup 4////Compil32.exe"
  101: endif
  102: 
  103: ifdef _windowsonlinux
  104: GCC=/usr/bin/i586-pc-mingw32-gcc
  105: LFLAGS= -g
  106: CFLAGS= -g
  107: LFLAGSOPT= -O3 -lm
  108: CFLAGSOPT= -O3
  109: CROSSCOMPILATION= -DCROSS=1
  110: CP= cp
  111: UNIX2DOS= unix2dos
  112: SETUPCOMP= wine "C:////Program Files////Inno Setup 4////Compil32.exe"
  113: BINVERSION=WINDOWSonLINUX
  114: endif
  115: 
  116: ifdef _windowsonosx
  117: #GCC=/usr/local/i386-mingw32-4.3.0/bin/i386-mingw32-gcc
  118: #GCC=/usr/local/cross-tools/bin/i686-w64-mingw32-gcc
  119: GCC=/usr/local/gcc-4.8.0-qt-4.8.4-for-mingw32/win32-gcc/bin/i586-mingw32-gcc-4.8.0
  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
  125: CROSSCOMPILATION= -DCROSS=1
  126: UNIX2DOS= unix2dos
  127: SETUPCOMP= ~/bin/InnoSetup5Playonmac
  128: CP= cp
  129: BINVERSION=WIN32onOSX
  130: endif
  131: 
  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
  139: CROSSCOMPILATION= -DCROSS=1
  140: UNIX2DOS= unix2dos
  141: SETUPCOMP= ~/bin/InnoSetup5Playonmac
  142: CP= cp
  143: BINVERSION=w64-mingw32-x86-64-bin
  144: endif
  145: 
  146: ifdef _windowscl
  147: rem "C:\Program Files\Microsoft Visual Studio 10.0\VC\bin\vcvas32.bat"
  148: endif
  149: 
  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
  155: LFLAGS= -g -m64
  156: #CFLAGSOPT= -O3 -m64 -g -std=c99 -no-prec-div idem
  157: #CFLAGSOPT= -O3 -m64 -g -std=c99 -xSSSE3_ATOM 402
  158: CFLAGSOPT= -O3 -m64 -g -std=c99
  159: CROSSCOMPILATION= -DCROSS=0
  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
  163: LFLAGSOPT= -O3 -m64
  164: UNIX2DOS= unix2dos
  165: SETUPCOMP= ~/bin/InnoSetup5Playonmac
  166: CP= cp
  167: BINVERSION=osx-intel-x86-64-bin
  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
  177: CROSSCOMPILATION= -DCROSS=0
  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
  187: endif
  188: 
  189: ifdef _linux64onosx
  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
  192: LFLAGS= -g
  193: CFLAGS= -g
  194: CROSSCOMPILATION= -DCROSS=1
  195: LFLAGSOPT= -O3 -lm -s
  196: CFLAGSOPT= -O3
  197: TAR= /sw/bin/gnutar
  198: UNIX2DOS= unix2dos
  199: SETUPCOMP= ~/bin/InnoSetup5Playonmac
  200: CP= cp
  201: BINVERSION=linux-x86-64-bin
  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
  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
  209: LFLAGS= -g
  210: CFLAGS= -g
  211: LFLAGSOPT= -O3 -s -lm
  212: CFLAGSOPT= -O3
  213: CROSSCOMPILATION= -DCROSS=1
  214: TAR= /sw/bin/gnutar
  215: UNIX2DOS= unix2dos
  216: SETUPCOMP= ~/bin/InnoSetup5Playonmac
  217: CP= cp
  218: BINVERSION=linux-i586-bin
  219: endif
  220: 
  221: ifdef _linux
  222: #CFLAGS= -g -DUNIX -DDEBUGHESS
  223: #CFLAGS= -g -DDEBUG -DFIXMNBRAK
  224: #CFLAGS= -g -DDEBUG 
  225: CFLAGS= -g
  226: LFLAGS= -g -lm
  227: IGSL= -I/usr/include/gsl
  228: LGSL= -lgsl -lgslcblas
  229: INLOPT= -I/usr/local/include
  230: LNLOPT= -lm -L/usr/local/lib -lnlopt
  231: CFLAGSOPT= -O3 -g
  232: LFLAGSOPT= -O3 -g -lm
  233: CROSSCOMPILATION= -DCROSS=0
  234: UNIX2DOS= unix2dos
  235: SETUPCOMP= wine "C:////Program Files////Inno Setup 4////Compil32.exe"
  236: BINVERSION=LINUXnative
  237: CP= cp
  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)
  250: APPCOMPILATIONMODE=$(IMACHSETUPVERSION)
  251: GNUPLOTVERSION=5.1
  252: LICENSE=Copying
  253: TMPSETUPEXE=imach-$(VERSION)-$(IMACHSETUPVERSION)-setup.exe
  254: TMPNOREGSETUPEXE=imach-$(VERSION)-$(IMACHSETUPVERSION)-noreg-setup.exe
  255: LICENSEFILE=$(LICENSE)
  256: INFOBEFOREFILE=README.txt
  257: 
  258: setup.iss: setup.iss.in
  259: 	$(SED) -e "s/@APPNAME@/$(APPNAME)/g; \
  260: 		s/@NOTINNOREG@//g; \
  261: 		s/@NOREG@//g; \
  262: 		s/@IMACHSETUPVERSION@/$(IMACHSETUPVERSION)/g; \
  263: 		s/@APPCOMPILATIONMODE@/$(APPCOMPILATIONMODE)/g; \
  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;" \
  272: 		setup.iss.in > setup.iss
  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)
  288: #	$(UNIX2DOS) $(TMPNOREGSETUPSCRIPT)
  289: 
  290: $(TMPSETUPEXE): $(TMPSETUPSCRIPT)
  291: 	$(SETUPCOMP) /cc $(TMPSETUPSCRIPT)
  292: 
  293: #$(TMPNOREGSETUPEXE): $(TMPNOREGSETUPSCRIPT)
  294: #	$(SETUPCOMP) /cc $(TMPNOREGSETUPSCRIPT)
  295: 
  296: PARAM=mypar1
  297: 
  298: imachcyg-setup: imachcygopt.exe setup.iss
  299: 	touch setup.iss.in
  300: 	$(CP) imachcygopt.exe imach.exe
  301: 	$(CP) imachcygopt.exe imach$(VERSION)-$(BINVERSION).exe
  302: 	$(SETUPCOMP) /cc setup.iss
  303: 	cp Output/$(TMPSETUPEXE) imachcyg-setup
  304: 
  305: # imachcyg-noreg-setup : imachcygopt imachcygopt.o setup.iss.in noreg-setup.iss $(TMPNOREGSETUPEXE)
  306: imachcyg-noreg-setup: imachcygopt.exe noreg-setup.iss
  307: 	touch setup.iss.in
  308: 	$(CP) imachcygopt.exe imach.exe
  309: 	$(CP) imachcygopt.exe imach$(VERSION)-$(BINVERSION).exe
  310: 	$(SETUPCOMP) /cc $(TMPNOREGSETUPSCRIPT)
  311: 	cp Output/$(TMPNOREGSETUPEXE) imachcyg-noreg-setup
  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
  317: # both 32 and 64 executables should have been built on Windows with Intel compiler.
  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 
  319: 	pwd
  320: 	touch setup.iss.in
  321: 	$(SETUPCOMP) /cc setup.iss
  322: 	$(CP) Output/$(TMPSETUPEXE) imachICL-setup
  323: 
  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
  329: 
  330: imachICL64-noreg-setup: IMaCh-icl64-$(VERSION).exe noreg-setup.iss
  331: 	touch setup.iss.in
  332: 	$(SETUPCOMP) /cc $(TMPNOREGSETUPSCRIPT)
  333: 	$(CP) Output/$(TMPSETUPEXE) imachICL64-noreg-setup
  334: 
  335: ../build/icl64/Release/IMaCh-$(VERSION).exe: imach.c ../distributions/windows/mybuildicl64.bat
  336: 	rm -rf ../build/icl64  && mkdir ../build/icl64
  337: 	cp ../distributions/windows/mybuildicl64.bat ../build/icl64/
  338: 	cd ../build/icl64
  339: 	VBoxManage --nologo guestcontrol "Windows7-64" execute --image "C:\Windows\SysWOW64\cmd.exe" \
  340: 	--username brouard  --verbose --wait-exit --wait-stdout  --wait-stderr -- "/c" "$(DRIVEG)$(DIRG)\icl64\mybuildicl64.bat" "$(VERSION)" "$(DRIVEG)" "$(DIRG)"
  341: 
  342: ../build/icl32/Release/IMaCh-$(VERSION).exe: imach.c ../distributions/windows/mybuildicl32.bat
  343: 	rm -rf ../build/icl32 && mkdir -p ../build/icl32
  344: 	cp ../distributions/windows/mybuildicl32.bat ../build/icl32/
  345: 	cd ../build/icl32
  346: 	VBoxManage --nologo guestcontrol "Windows7-64" execute --image "C:\Windows\SysWOW64\cmd.exe" \
  347: 	--username brouard  --verbose --wait-exit --wait-stdout -- "/c" "$(DRIVEG)$(DIRG)\icl32\mybuildicl32.bat" "$(VERSION)" "$(DRIVEG)" "$(DIRG)"
  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"
  363: 
  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
  369: 
  370: imachICL32-noreg-setup: IMaCh-icl32.exe noreg-setup.iss
  371: 	touch setup.iss.in
  372: 	$(CP) IMaCh-icl32.exe imach.exe
  373: 	$(SETUPCOMP) /cc $(TMPNOREGSETUPSCRIPT)
  374: 	$(CP) Output/$(TMPSETUPEXE) imachICL32-noreg-setup
  375: 
  376: imachMVC-setup: imachMVC.exe setup.iss
  377: 	touch setup.iss.in
  378: 	$(CP) imachMVC.exe imach.exe
  379: 	$(SETUPCOMP) /cc setup.iss
  380: 	$(CP) Output/$(TMPSETUPEXE) imachMVC-setup
  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: 
  389: simach : simach.o 
  390: 	$(CC) $(LFLAGS) $(LGSL) -o simach simach.o
  391: simach.o : simach.c 
  392: 	$(CC) $(CFLAGS) -DGSL -c simach.c
  393: 
  394: imachtest: imachtest.o 
  395: 	$(CC) $(LFLAGS) -o imachtest imachtest.o
  396: ifdef _macosx
  397: 	$(DSYMUTIL) imachtest
  398: endif
  399: 
  400: imach: imach.o 
  401: 	$(CC) $(LFLAGS) -o imach imach.o
  402: ifdef _macosx
  403: 	$(DSYMUTIL) imach
  404: endif
  405: 
  406: imach.o : imach.c 
  407: 	 $(CC) $(CFLAGS) $(CROSSCOMPILATION)  -c imach.c
  408: #	 $(CC) $(CFLAGS) $(CROSSCOMPILATION) -DDEBUGBRENT -c imach.c
  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
  414: 
  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: 
  419: imach097b : imach097b.o 
  420: 	$(CC) $(LFLAGS) -o imach097b imach097b.o
  421: imach097b.o : imach097b.c 
  422: 	$(CC) $(CFLAGS) -DPOWELL -c imach097b.c
  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 
  431: 	$(CC) -o imachgsl imach.o  $(LFLAGS) $(LGSL) 
  432: imachgsl.o : imach.c 
  433: 	$(CC) $(CFLAGS) -DGSL $(IGSL) -c imach.c
  434: 
  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: 
  445: 
  446: imachopt : imachopt.o 
  447: 	$(CC) $(LFLAGSOPT) -o imachopt imachopt.o
  448: 	ln -f imachopt imach
  449: 	$(CP) imachopt Output/imachopt$(VERSION)-$(BINVERSION)
  450: 	$(CP) -f imach ../bin
  451: ifdef _intel64onosx
  452: 	$(CP) imachopt Output/imachopt$(VERSION)-$(BINVERSION)
  453: endif
  454: ifdef _macosx
  455: 	$(STRIP) imach
  456: endif
  457: ifdef _linux32onosx
  458: 	(cd .. && $(TAR) jcvf src/Output/imach-Linux-$(VERSION)-$(BINVERSION).tar.bz2 bin html/doc/biaspar.imach html/doc/data1.txt)
  459: endif
  460: ifdef _linux64onosx
  461: 	(cd .. && $(TAR) jcvf src/Output/imach-Linux-$(VERSION)-$(BINVERSION).tar.bz2 bin html/doc/biaspar.imach html/doc/data1.txt)
  462: endif
  463: 
  464: imachopt.o : imach.c version.h
  465: 	$(CC) $(CFLAGSOPT) $(CROSSCOMPILATION) -o imachopt.o -c imach.c
  466: #	$(CC) $(CFLAGSOPT) -DPOWELL -o imachopt.o -c imach.c
  467: 
  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
  473: #	$(CC) $(LFLAGSOPT) -o imach imachopt.o
  474: 	#hdiutil detach /Volumes/IMaCh\ $(VERSION)
  475: #	cp ../../distributions/osx/gnuplot_bin/gnuplot_2_6_5_OSX imach$(VERSION).app/Contents/Resources/bin/gnuplot;\
  476: 
  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 . ; \
  483: 	echo $(OSTYPE);\
  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;\
  494: 	cp ../../distributions/osx/gnuplot_bin/gnuplot_5_1_OSX imach$(VERSION).app/Contents/Resources/bin/gnuplot;\
  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 
  513: #	./createdmg2.sh --volname "IMaCh $(VERSION)" imach$(VERSION).dmg imach$(VERSION)
  514: 
  515: md5:
  516: 	ls Output/* | xargs md5sum
  517: upload:
  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
  520: #	rsync -v Output/* brouard@henry.ined.fr:/home/euroreves/html/imach/Download
  521: 
  522: imachcyg : imachcyg.o
  523: 	$(CC) $(LFLAGS) -o imach imachcyg.o
  524: imachcyg.o : imach.c 
  525: 	$(CC) $(CFLAGS)  -c -o imachcyg.o imach.c
  526: imachcygopt.exe : imachcygopt.o
  527: 	$(CC) $(LFLAGSOPT) -o imachcygopt.exe imachcygopt.o
  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: 
  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)
  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>