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