Annotation of imach/src/Makefile, revision 1.76
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
1.76 ! brouard 58: #TESTFILE=$(HOME)/Documents/Recherches/REVES/Yao/rrtest3b.imach
! 59: TESTFILE=$(HOME)//Documents/Recherches/REVES/Flavia/Flavia-nov-2015/rtest3c.imach
1.34 brouard 60: #TESTFILE=$(HOME)/Documents/Recherches/REVES/SAITO/Tokyo2014/adlc-test-mac/adecode-1.142c.imach
1.35 brouard 61: #TESTFILE=$(HOME)/Documents/Recherches/REVES/SAITO/Tokyo2014/adlc_test_magei4/radlc_often.imach
1.21 brouard 62: #CC= gcc -v
1.28 brouard 63: CC=$(GCC)
64: GCC= gcc
1.21 brouard 65:
66: ifdef _macosx
67: # Mac OS/X version
1.45 brouard 68: LFLAGS= -g -lm
1.58 brouard 69: #CFLAGS= -g -DDEBUG
70: CFLAGS= -g
1.45 brouard 71: LFLAGSOPT= -O3 -lm
1.55 brouard 72: CFLAGSOPT= -O3
1.58 brouard 73: CP= cp
1.54 brouard 74: CROSSCOMPILATION= -DCROSS=0
1.21 brouard 75: UNIX2DOS= echo "Unix2dos "
1.34 brouard 76: DSYMUTIL= dsymutil
1.42 brouard 77: STRIP= strip
78: BINVERSION=OSX
1.21 brouard 79: # Don'know how to launch imach098.pmsp in batch to create package file imach098Panther.pkg
80: # ./createdmg.sh imach imach098panther ./imach098Panther
1.27 brouard 81: # ./createdmg.sh imach imach098leopard ./imach098Leopard
1.21 brouard 82: # and directory ./imach098Panther contains package file imach098Panther.pkg
1.27 brouard 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
1.21 brouard 85: endif
86:
87: ifdef _windows
1.29 brouard 88: CC=c:\MinGW\bin\Mingw32-gcc
89:
1.21 brouard 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
1.30 brouard 96: CP= copy
1.42 brouard 97: BINVERSION=CYGWIN
1.29 brouard 98: #SETUPCOMP= Compil32
1.21 brouard 99: ##SETUPCOMP=start /wait "C:\Program\ Files\\Compil32.exe"
1.29 brouard 100: # cygwin SETUPCOMP= "C:\Program Files\Inno Setup 4\Compil32.exe"
101: SETUPCOMP= "C:////Program Files////Inno Setup 4////Compil32.exe"
1.21 brouard 102: endif
103:
1.28 brouard 104: ifdef _windowsonlinux
105: GCC=/usr/bin/i586-pc-mingw32-gcc
106: LFLAGS= -g
107: CFLAGS= -g
1.30 brouard 108: LFLAGSOPT= -O3 -lm
1.28 brouard 109: CFLAGSOPT= -O3
1.55 brouard 110: CROSSCOMPILATION= -DCROSS=1
1.30 brouard 111: CP= cp
1.28 brouard 112: UNIX2DOS= unix2dos
113: SETUPCOMP= wine "C:////Program Files////Inno Setup 4////Compil32.exe"
1.42 brouard 114: BINVERSION=WINDOWSonLINUX
1.28 brouard 115: endif
116:
1.31 brouard 117: ifdef _windowsonosx
1.40 brouard 118: #GCC=/usr/local/i386-mingw32-4.3.0/bin/i386-mingw32-gcc
1.31 brouard 119: #GCC=/usr/local/cross-tools/bin/i686-w64-mingw32-gcc
1.38 brouard 120: 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 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
1.55 brouard 126: CROSSCOMPILATION= -DCROSS=1
1.40 brouard 127: UNIX2DOS= unix2dos
128: SETUPCOMP= ~/bin/InnoSetup5Playonmac
129: CP= cp
1.42 brouard 130: BINVERSION=WIN32onOSX
131: endif
132:
1.44 brouard 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
1.55 brouard 140: CROSSCOMPILATION= -DCROSS=1
1.44 brouard 141: UNIX2DOS= unix2dos
142: SETUPCOMP= ~/bin/InnoSetup5Playonmac
143: CP= cp
144: BINVERSION=w64-mingw32-x86-64-bin
145: endif
146:
1.42 brouard 147: ifdef _windowscl
148: rem "C:\Program Files\Microsoft Visual Studio 10.0\VC\bin\vcvas32.bat"
1.40 brouard 149: endif
150:
1.48 brouard 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
1.49 brouard 156: LFLAGS= -g -m64
1.52 brouard 157: #CFLAGSOPT= -O3 -m64 -g -std=c99 -no-prec-div idem
158: #CFLAGSOPT= -O3 -m64 -g -std=c99 -xSSSE3_ATOM 402
1.49 brouard 159: CFLAGSOPT= -O3 -m64 -g -std=c99
1.52 brouard 160: CROSSCOMPILATION= -DCROSS=0
1.48 brouard 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
1.49 brouard 164: LFLAGSOPT= -O3 -m64
1.48 brouard 165: UNIX2DOS= unix2dos
166: SETUPCOMP= ~/bin/InnoSetup5Playonmac
167: CP= cp
168: BINVERSION=osx-intel-x86-64-bin
1.49 brouard 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
1.52 brouard 178: CROSSCOMPILATION= -DCROSS=0
1.49 brouard 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
1.48 brouard 188: endif
189:
1.40 brouard 190: ifdef _linux64onosx
1.51 brouard 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
1.40 brouard 193: LFLAGS= -g
194: CFLAGS= -g
1.51 brouard 195: CROSSCOMPILATION= -DCROSS=1
1.40 brouard 196: LFLAGSOPT= -O3 -lm -s
197: CFLAGSOPT= -O3
1.51 brouard 198: TAR= /sw/bin/gnutar
1.40 brouard 199: UNIX2DOS= unix2dos
200: SETUPCOMP= ~/bin/InnoSetup5Playonmac
201: CP= cp
1.42 brouard 202: BINVERSION=linux-x86-64-bin
1.40 brouard 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
1.51 brouard 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
1.31 brouard 210: LFLAGS= -g
211: CFLAGS= -g
1.40 brouard 212: LFLAGSOPT= -O3 -s -lm
1.31 brouard 213: CFLAGSOPT= -O3
1.55 brouard 214: CROSSCOMPILATION= -DCROSS=1
1.51 brouard 215: TAR= /sw/bin/gnutar
1.31 brouard 216: UNIX2DOS= unix2dos
217: SETUPCOMP= ~/bin/InnoSetup5Playonmac
1.32 brouard 218: CP= cp
1.42 brouard 219: BINVERSION=linux-i586-bin
1.31 brouard 220: endif
221:
1.21 brouard 222: ifdef _linux
1.26 brouard 223: #CFLAGS= -g -DUNIX -DDEBUGHESS
1.56 brouard 224: #CFLAGS= -g -DDEBUG -DFIXMNBRAK
1.58 brouard 225: #CFLAGS= -g -DDEBUG
226: CFLAGS= -g
1.42 brouard 227: LFLAGS= -g -lm
1.30 brouard 228: IGSL= -I/usr/include/gsl
1.25 brouard 229: LGSL= -lgsl -lgslcblas
1.46 brouard 230: INLOPT= -I/usr/local/include
231: LNLOPT= -lm -L/usr/local/lib -lnlopt
1.47 brouard 232: CFLAGSOPT= -O3 -g
233: LFLAGSOPT= -O3 -g -lm
1.55 brouard 234: CROSSCOMPILATION= -DCROSS=0
1.21 brouard 235: UNIX2DOS= unix2dos
236: SETUPCOMP= wine "C:////Program Files////Inno Setup 4////Compil32.exe"
1.42 brouard 237: BINVERSION=LINUXnative
1.50 brouard 238: CP= cp
1.21 brouard 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)
1.57 brouard 251: APPCOMPILATIONMODE=$(IMACHSETUPVERSION)
1.73 brouard 252: GNUPLOTVERSION=5.1
1.21 brouard 253: LICENSE=Copying
254: TMPSETUPEXE=imach-$(VERSION)-$(IMACHSETUPVERSION)-setup.exe
1.31 brouard 255: TMPNOREGSETUPEXE=imach-$(VERSION)-$(IMACHSETUPVERSION)-noreg-setup.exe
1.21 brouard 256: LICENSEFILE=$(LICENSE)
257: INFOBEFOREFILE=README.txt
258:
1.31 brouard 259: setup.iss: setup.iss.in
1.21 brouard 260: $(SED) -e "s/@APPNAME@/$(APPNAME)/g; \
261: s/@NOTINNOREG@//g; \
262: s/@NOREG@//g; \
263: s/@IMACHSETUPVERSION@/$(IMACHSETUPVERSION)/g; \
1.57 brouard 264: s/@APPCOMPILATIONMODE@/$(APPCOMPILATIONMODE)/g; \
1.21 brouard 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;" \
1.31 brouard 273: setup.iss.in > setup.iss
1.21 brouard 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)
1.29 brouard 289: # $(UNIX2DOS) $(TMPNOREGSETUPSCRIPT)
1.21 brouard 290:
291: $(TMPSETUPEXE): $(TMPSETUPSCRIPT)
292: $(SETUPCOMP) /cc $(TMPSETUPSCRIPT)
293:
1.59 brouard 294: #$(TMPNOREGSETUPEXE): $(TMPNOREGSETUPSCRIPT)
295: # $(SETUPCOMP) /cc $(TMPNOREGSETUPSCRIPT)
1.21 brouard 296:
297: PARAM=mypar1
298:
299: imachcyg-setup: imachcygopt.exe setup.iss
1.38 brouard 300: touch setup.iss.in
1.30 brouard 301: $(CP) imachcygopt.exe imach.exe
1.42 brouard 302: $(CP) imachcygopt.exe imach$(VERSION)-$(BINVERSION).exe
1.31 brouard 303: $(SETUPCOMP) /cc setup.iss
304: cp Output/$(TMPSETUPEXE) imachcyg-setup
1.21 brouard 305:
306: # imachcyg-noreg-setup : imachcygopt imachcygopt.o setup.iss.in noreg-setup.iss $(TMPNOREGSETUPEXE)
307: imachcyg-noreg-setup: imachcygopt.exe noreg-setup.iss
1.38 brouard 308: touch setup.iss.in
1.30 brouard 309: $(CP) imachcygopt.exe imach.exe
1.42 brouard 310: $(CP) imachcygopt.exe imach$(VERSION)-$(BINVERSION).exe
1.21 brouard 311: $(SETUPCOMP) /cc $(TMPNOREGSETUPSCRIPT)
1.31 brouard 312: cp Output/$(TMPNOREGSETUPEXE) imachcyg-noreg-setup
1.62 brouard 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
1.57 brouard 318: # both 32 and 64 executables should have been built on Windows with Intel compiler.
1.75 brouard 319:
1.73 brouard 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
1.51 brouard 321: pwd
1.63 brouard 322: touch setup.iss.in
1.57 brouard 323: $(SETUPCOMP) /cc setup.iss
1.62 brouard 324: $(CP) Output/$(TMPSETUPEXE) imachICL-setup
1.57 brouard 325:
1.62 brouard 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
1.45 brouard 331:
1.62 brouard 332: imachICL64-noreg-setup: IMaCh-icl64-$(VERSION).exe noreg-setup.iss
1.45 brouard 333: touch setup.iss.in
334: $(SETUPCOMP) /cc $(TMPNOREGSETUPSCRIPT)
1.62 brouard 335: $(CP) Output/$(TMPSETUPEXE) imachICL64-noreg-setup
336:
1.63 brouard 337: ../build/icl64/Release/IMaCh-$(VERSION).exe: imach.c ../distributions/windows/mybuildicl64.bat
1.76 ! brouard 338: rm -rf ../build/icl64 && mkdir ../build/icl64
1.63 brouard 339: cp ../distributions/windows/mybuildicl64.bat ../build/icl64/
1.62 brouard 340: cd ../build/icl64
1.76 ! brouard 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:
1.75 brouard 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" \
1.76 ! brouard 350: # --username brouard --verbose --wait-stdout --wait-stderr -- "/c" "$(DRIVEG)$(DIRG)\icl64\mybuildicl64.bat" "$(VERSION)" "$(DRIVEG)" "$(DIRG)"
1.62 brouard 351:
1.63 brouard 352: ../build/icl32/Release/IMaCh-$(VERSION).exe: imach.c ../distributions/windows/mybuildicl32.bat
1.76 ! brouard 353: rm -rf ../build/icl32 && mkdir -p ../build/icl32
1.63 brouard 354: cp ../distributions/windows/mybuildicl32.bat ../build/icl32/
1.62 brouard 355: cd ../build/icl32
1.76 ! brouard 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)"
1.75 brouard 358:
359: #VBoxManage --nologo guestcontrol "Windows7-64" run --exe "C:\Windows\SysWOW64\cmd.exe" \
1.76 ! brouard 360: # --username brouard --verbose --wait-stdout -- "/c" "$(DRIVEG)$(DIRG)\icl32\mybuildicl32.bat" "$(VERSION)" "$(DRIVEG)" "$(DIRG)"
1.62 brouard 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
1.74 brouard 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)"
1.62 brouard 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"
1.45 brouard 376:
1.62 brouard 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
1.51 brouard 382:
1.62 brouard 383: imachICL32-noreg-setup: IMaCh-icl32.exe noreg-setup.iss
1.51 brouard 384: touch setup.iss.in
1.62 brouard 385: $(CP) IMaCh-icl32.exe imach.exe
1.51 brouard 386: $(SETUPCOMP) /cc $(TMPNOREGSETUPSCRIPT)
1.62 brouard 387: $(CP) Output/$(TMPSETUPEXE) imachICL32-noreg-setup
1.51 brouard 388:
1.42 brouard 389: imachMVC-setup: imachMVC.exe setup.iss
390: touch setup.iss.in
391: $(CP) imachMVC.exe imach.exe
392: $(SETUPCOMP) /cc setup.iss
1.58 brouard 393: $(CP) Output/$(TMPSETUPEXE) imachMVC-setup
1.42 brouard 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:
1.25 brouard 402: simach : simach.o
403: $(CC) $(LFLAGS) $(LGSL) -o simach simach.o
404: simach.o : simach.c
1.30 brouard 405: $(CC) $(CFLAGS) -DGSL -c simach.c
1.25 brouard 406:
1.56 brouard 407: imachtest: imachtest.o
408: $(CC) $(LFLAGS) -o imachtest imachtest.o
409: ifdef _macosx
410: $(DSYMUTIL) imachtest
411: endif
412:
413: imach: imach.o
1.21 brouard 414: $(CC) $(LFLAGS) -o imach imach.o
1.34 brouard 415: ifdef _macosx
416: $(DSYMUTIL) imach
417: endif
418:
1.21 brouard 419: imach.o : imach.c
1.58 brouard 420: $(CC) $(CFLAGS) $(CROSSCOMPILATION) -c imach.c
421: # $(CC) $(CFLAGS) $(CROSSCOMPILATION) -DDEBUGBRENT -c imach.c
1.56 brouard 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
1.32 brouard 427:
1.42 brouard 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:
1.32 brouard 432: imach097b : imach097b.o
433: $(CC) $(LFLAGS) -o imach097b imach097b.o
434: imach097b.o : imach097b.c
435: $(CC) $(CFLAGS) -DPOWELL -c imach097b.c
1.30 brouard 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
1.46 brouard 444: $(CC) -o imachgsl imach.o $(LFLAGS) $(LGSL)
1.30 brouard 445: imachgsl.o : imach.c
446: $(CC) $(CFLAGS) -DGSL $(IGSL) -c imach.c
1.21 brouard 447:
1.47 brouard 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:
1.46 brouard 458:
1.21 brouard 459: imachopt : imachopt.o
460: $(CC) $(LFLAGSOPT) -o imachopt imachopt.o
1.62 brouard 461: ln -f imachopt imach
1.49 brouard 462: $(CP) imachopt Output/imachopt$(VERSION)-$(BINVERSION)
1.50 brouard 463: $(CP) -f imach ../bin
1.49 brouard 464: ifdef _intel64onosx
465: $(CP) imachopt Output/imachopt$(VERSION)-$(BINVERSION)
466: endif
1.42 brouard 467: ifdef _macosx
468: $(STRIP) imach
469: endif
470: ifdef _linux32onosx
1.51 brouard 471: (cd .. && $(TAR) jcvf src/Output/imach-Linux-$(VERSION)-$(BINVERSION).tar.bz2 bin html/doc/biaspar.imach html/doc/data1.txt)
1.42 brouard 472: endif
473: ifdef _linux64onosx
1.51 brouard 474: (cd .. && $(TAR) jcvf src/Output/imach-Linux-$(VERSION)-$(BINVERSION).tar.bz2 bin html/doc/biaspar.imach html/doc/data1.txt)
1.42 brouard 475: endif
476:
1.73 brouard 477: imachopt.o : imach.c version.h
1.51 brouard 478: $(CC) $(CFLAGSOPT) $(CROSSCOMPILATION) -o imachopt.o -c imach.c
1.45 brouard 479: # $(CC) $(CFLAGSOPT) -DPOWELL -o imachopt.o -c imach.c
1.21 brouard 480:
1.49 brouard 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
1.65 brouard 486: # $(CC) $(LFLAGSOPT) -o imach imachopt.o
1.37 brouard 487: #hdiutil detach /Volumes/IMaCh\ $(VERSION)
1.73 brouard 488: # cp ../../distributions/osx/gnuplot_bin/gnuplot_2_6_5_OSX imach$(VERSION).app/Contents/Resources/bin/gnuplot;\
489:
1.65 brouard 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 . ; \
1.72 brouard 496: echo $(OSTYPE);\
1.65 brouard 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;\
1.75 brouard 505: mkdir -p imach$(VERSION).app/Contents/Resources/lib;\
1.65 brouard 506: mkdir -p imach$(VERSION).app/Contents/Resources/html;\
507: cp IMaCh-$(VERSION) imach$(VERSION).app/Contents/Resources/bin/imach;\
1.75 brouard 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;\
1.65 brouard 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) ;\
1.75 brouard 526: cp imach$(VERSION).dmg ../../src/Output/ ;)
1.65 brouard 527: # ./create-dmg --volname "IMaCh $(VERSION)" imach$(VERSION).dmg imach$(VERSION).app
1.38 brouard 528: # ./createdmg2.sh --volname "IMaCh $(VERSION)" imach$(VERSION).dmg imach$(VERSION)
1.27 brouard 529:
1.58 brouard 530: md5:
531: ls Output/* | xargs md5sum
1.38 brouard 532: upload:
1.75 brouard 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
1.62 brouard 535: # rsync -v Output/* brouard@henry.ined.fr:/home/euroreves/html/imach/Download
1.27 brouard 536:
1.44 brouard 537: imachcyg : imachcyg.o
538: $(CC) $(LFLAGS) -o imach imachcyg.o
1.21 brouard 539: imachcyg.o : imach.c
540: $(CC) $(CFLAGS) -c -o imachcyg.o imach.c
1.44 brouard 541: imachcygopt.exe : imachcygopt.o
542: $(CC) $(LFLAGSOPT) -o imachcygopt.exe imachcygopt.o
1.21 brouard 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:
1.34 brouard 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)
1.21 brouard 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>