1: #Version has to be set in ../CMakeLists.txt too.
2: #VERSION=0.98r6
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-2022 INED-EUROREVES-Institut de longevite-Japan Society for the Promotion of Science (Grant-in-Aid for Scientific Research 25293121) - Intel Software 2016-19
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: # 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
20: # make _linux32onosx=1 imachopt
21: # make _linux64onosx=1 imachopt
22:
23: # OS/X
24: # make _macosx=1 imachdmg
25: # make _intel64onosx=1 imachopt
26: # make _intel32onosx=1 imachopt
27: # make _intelUNBonosx=1 imachdmg # Not implemented (not useful)
28: # make _macosx=1 imach
29: # make _macosx=1 imachopt
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
31:
32: # Windows should be started on VirtualBox and both 32 and 64 commands should be made
33: # xlcem is year month delay, doing the command make on the username and not on root
34: # on emacs shell:
35: # sudo xlcem make _windowsonosx=1 imachICL64-setup
36: # ls -l ../build/icl64/Release/
37: # sudo xlcem make _windowsonosx=1 imachICL32-setup
38: # ls -l ../build/icl32/Release/
39: # and then F: should be mounted on ~/Documents
40: # For an unknown reason, the exe file on /Documents/imach/cvs/imach/build/icl64/Release~or icl32 are not recognized by make which deletes
41: # previous work and imachICL-set
42: # has to be done manually: SETUPCOMP=~/bin/InnoSetup5Playonmac
43: # and $SETUPCOMP /cc setup.iss
44: # or on Emacs make _windowsonosx=1 imachICL-set (and not imachICL-setup)
45: # sudo date -u 082109552022
46: # make _windowsonosx=1 imachICL-setup (touch setup.iss.in) #binary should have been compiled on Windows with Intel
47: # make _windowsonosx=1 imachICL64-setup (touch setup.iss.in) #binary should have been compiled on Windows with Intel
48: # make _windowsonosx=1 imachICL32-setup (touch setup.iss.in) #binary should have been compiled on Windows with Intel
49: # make _windowsonosx=1 imachMVC-setup (touch setup.iss.in) #binary should have been compiled on Windows with cl
50: # make _windowsonosx=1 imachMVC-noreg-setup
51: #
52: # Windows cross-compiled mw64
53: # make _mw64onsox=1 imachcyg-setup
54: #
55: # make _windows=1 imachcyg
56: # make _windows=1 imachcyg-setup (touch setup.iss.in)
57: # make _windows=1 imachcyg-noreg-setup
58: #
59: # make _windowsonlinux=1 imachcyg-setup (touch setup.iss.in)
60: # make _windowsonlinux=1 imachcyg-noreg-setup
61: #
62: # make _windowscl=1 imachclopt
63:
64: #
65: # sortie dans Output/setup.exe
66: # ln -s /cygdrive/c/Program\ Files/Inno\ Setup\ 4/Compil32.exe /usr/local/bin/Compil32
67: ##SETUPCOMP= "C:\Program Files\Inno Setup 3\Compil32.exe"
68: #TESTFILE=$$HOME/Documents/Recherches/REVES/SAITO/Tokyo2014/adlc-test-mac/adecode-1.142c.imach
69: #TESTFILE=$(HOME)/Documents/Recherches/REVES/carol/carol-june2014/educadlmwt24.imach
70: #TESTFILE=$(HOME)/Documents/Recherches/REVES/Biaspar/biaspar-wopowell.imach
71: #TESTFILE=$(HOME)/Documents/Recherches/REVES/Biaspar/rbiaspar-098p.imach
72: #TESTFILE=$(HOME)/Documents/Recherches/REVES/Aaron/brouard/results/COVARAITE_94/rmypar24pis1cov1-age.imach
73: #TESTFILE=$(HOME)/Documents/Recherches/REVES/Flavia/rADL0w_V1V2b.imach
74: #TESTFILE=$(HOME)/Documents/Recherches/REVES/Yao/rrtest3b.imach
75: #TESTFILE=$(HOME)//Documents/Recherches/REVES/Flavia/Flavia-nov-2015/rtest3c.imach
76: #TESTFILE=/mnt/tugault/Documents/Recherches/REVES/Yao/rhrs-yao-test-back.imach
77: #TESTFILE=/mnt/tugault/Documents/Recherches/REVES/Flavia/Flavia-nov-2015/rtest3bb.imach
78: #TESTFILE=$(HOME)/Documents/Recherches/REVES/Flavia/Flavia-nov-2015/rtest3bb.imach
79: #TESTFILE=$(HOME)/Documents/Recherches/REVES/SAITO/saito-12-feb-2016/rHRS_relig_import_M_NB.imach
80: #TESTFILE=$(HOME)/Documents/Recherches/REVES/Biaspar/biaspar-0.98r-powellf1f3linmnb-zeroes.imach
81: #TESTFILE=$(HOME)/Documents/Recherches/REVES/Yao/Yao-19-jan-2016/r2V4V3V5.imach
82: #TESTFILE=$(HOME)/Documents/Recherches/REVES/Yao/Yao-19-jan-2016/r2b4V4V3V5.imach
83: #TESTFILE=$(HOME)/Documents/Recherches/REVES/Yao/Yao-19-jan-2016/Vn1b.imach
84: #TESTFILE=$(HOME)/Documents/Recherches/REVES/SAITO/Saito-PAA-2018/rrLvngArrgJapan-two-1b.imach
85: #TESTFILE=$(HOME)/Documents/Recherches/HRS/RAND_HRS/imachb.imach
86: #TESTFILE=$(HOME)/Documents/Recherches/HRS/RAND_HRS/imachb-r18.imach
87: TESTFILE=$(HOME)/Documents/Recherches/REVES/Zachary/Zach-2022/Feinuo_Sun/feinuo-pb2022/para3_testNB.imach
88: #TESTFILE=$(HOME)/home/brouard/Documents/Recherches/REVES/Zachary/Zach-2022/Feinuo_Sun/feinuo-pb2022/rrrpara3_testNB30b.imach
89: # Two testfiles which should give similar results with V1=1 whatever V2 and V3.
90: #TESTFILE=$(HOME)/Documents/Recherches/REVES/Zachary/Zach-2022/Feinuo_Sun/feinuo-pb2022/female_sample/para_femaleNBV2V3sexW0-ter.imach
91: TESTFILE=$(HOME)/Documents/Recherches/REVES/Zachary/Zach-2022/Feinuo_Sun/feinuo-pb2022/rrpara3_testNB30sexW0-ter.htm
92: #TESTFILE=$(HOME)/Documents/Recherches/REVES/Yao/Yao-19-jan-2016/rrrV4V3V5-suite6.imach
93: #TESTFILE=$(HOME)/Documents/Recherches/REVES/SAITO/Tokyo2014/adlc-test-mac/adecode-1.142c.imach
94: #TESTFILE=$(HOME)/Documents/Recherches/REVES/SAITO/Tokyo2014/adlc_test_magei4/radlc_often.imach
95: #CC= gcc -v
96: CC=$(GCC)
97: CCOPT=$(GCCOPT)
98: GCC= gcc
99: GCCOPT= gcc
100:
101: ifdef _macosx
102: GCC= gcc-11
103: GCCOPT= gcc
104: # Mac OS/X version
105: LFLAGS= -g -lm
106: #CFLAGS= -g -DDEBUG
107: CFLAGS= -g
108: LFLAGSOPT= -O3 -lm
109: CFLAGSOPT= -O3
110: # LFLAGSOPT= -O2 -lm # seems to be less effective than O3
111: # CFLAGSOPT= -O2
112: CP= cp
113: CROSSCOMPILATION= -DCROSS=0
114: UNIX2DOS= echo "Unix2dos "
115: DSYMUTIL= dsymutil
116: STRIP= strip
117: BINVERSION=OSX
118: # Don'know how to launch imach098.pmsp in batch to create package file imach098Panther.pkg
119: # ./createdmg.sh imach imach098panther ./imach098Panther
120: # ./createdmg.sh imach imach098leopard ./imach098Leopard
121: # and directory ./imach098Panther contains package file imach098Panther.pkg
122: #./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/
123: # ./create-dmg --volname "IMaCh 0.98j" imach098j.dmg imach098Leopard
124: endif
125:
126: ifdef _windows
127: CC=c:\MinGW\bin\Mingw32-gcc
128:
129: # Windows cygwin version
130: LFLAGS= -g -mno-cygwin
131: CFLAGS= -g -mno-cygwin
132: LFLAGSOPT= -O3 -mno-cygwin
133: CFLAGSOPT= -O3 -mno-cygwin
134: UNIX2DOS= unix2dos
135: CP= copy
136: BINVERSION=CYGWIN
137: #SETUPCOMP= Compil32
138: ##SETUPCOMP=start /wait "C:\Program\ Files\\Compil32.exe"
139: # cygwin SETUPCOMP= "C:\Program Files\Inno Setup 4\Compil32.exe"
140: SETUPCOMP= "C:////Program Files////Inno Setup 4////Compil32.exe"
141: endif
142:
143: ifdef _windowsonlinux
144: GCC=/usr/bin/i586-pc-mingw32-gcc
145: LFLAGS= -g
146: CFLAGS= -g
147: LFLAGSOPT= -O3 -lm
148: CFLAGSOPT= -O3
149: CROSSCOMPILATION= -DCROSS=1
150: CP= cp
151: UNIX2DOS= unix2dos
152: SETUPCOMP= wine "C:////Program Files////Inno Setup 4////Compil32.exe"
153: BINVERSION=WINDOWSonLINUX
154: endif
155:
156: ifdef _windowsonosx
157: #GCC=/usr/local/i386-mingw32-4.3.0/bin/i386-mingw32-gcc
158: #GCC=/usr/local/cross-tools/bin/i686-w64-mingw32-gcc
159: GCC=/usr/local/gcc-4.8.0-qt-4.8.4-for-mingw32/win32-gcc/bin/i586-mingw32-gcc-4.8.0
160: STRIP=/usr/local/gcc-4.8.0-qt-4.8.4-for-mingw32/win32-gcc/bin/i586-mingw32-strip
161: LFLAGS= -g
162: CFLAGS= -g
163: LFLAGSOPT= -O3 -s
164: CFLAGSOPT= -O3
165: CROSSCOMPILATION= -DCROSS=1
166: UNIX2DOS= unix2dos
167: SETUPCOMP= ~/bin/InnoSetup5Playonmac
168: CP= cp
169: BINVERSION=WIN32onOSX
170: endif
171:
172: ifdef _mw64onosx
173: GCC=/usr/local/mingw-w64-bin_i686-darwin_20130622/bin/x86_64-w64-mingw32-gcc-4.9.0
174: STRIP=/usr/local/mingw-w64-bin_i686-darwin_20130622/bin/x86_64-w64-mingw32-strip
175: LFLAGS= -g
176: CFLAGS= -g
177: LFLAGSOPT= -O3 -lm -s
178: CFLAGSOPT= -O3
179: CROSSCOMPILATION= -DCROSS=1
180: UNIX2DOS= unix2dos
181: SETUPCOMP= ~/bin/InnoSetup5Playonmac
182: CP= cp
183: BINVERSION=w64-mingw32-x86-64-bin
184: endif
185:
186: ifdef _windowscl
187: rem "C:\Program Files\Microsoft Visual Studio 10.0\VC\bin\vcvas32.bat"
188: endif
189:
190: # make _intel64onosx=1 imachopt
191: #source /opt/intel/bin/iccvars.sh intel64
192: ifdef _intel64onosx
193: GCC=/opt/intel/bin/icc
194: CFLAGS= -m64 -g -std=c99
195: LFLAGS= -g -m64
196: #CFLAGSOPT= -O3 -m64 -g -std=c99 -no-prec-div idem
197: #CFLAGSOPT= -O3 -m64 -g -std=c99 -xSSSE3_ATOM 402
198: CFLAGSOPT= -O3 -m64 -g -std=c99
199: CROSSCOMPILATION= -DCROSS=0
200: IGNORE :=$(shell bash -c "source /opt/intel/bin/iccvars.sh intel64; env | sed 's/=/:=/' | sed 's/^/export /' > makeenv")
201: include makeenv
202: #lipo -create -arch i386 HelloWorld_32 -arch x86_64 HelloWorld_64 -output HelloWorld
203: LFLAGSOPT= -O3 -m64
204: UNIX2DOS= unix2dos
205: SETUPCOMP= ~/bin/InnoSetup5Playonmac
206: CP= cp
207: BINVERSION=osx-intel-x86-64-bin
208: #imach_64$(VERSION)
209: #
210: endif
211:
212: ifdef _intel32onosx
213: GCC=/opt/intel/bin/icc
214: CFLAGS= -m32 -g -std=c99
215: LFLAGS= -g -m32
216: CFLAGSOPT= -O3 -m32 -g -std=c99
217: CROSSCOMPILATION= -DCROSS=0
218: IGNORE :=$(shell bash -c "source /opt/intel/bin/iccvars.sh ia32; env | sed 's/=/:=/' | sed 's/^/export /' > makeenv")
219: include makeenv
220: #lipo -create -arch i386 HelloWorld_32 -arch x86_64 HelloWorld_64 -output HelloWorld
221: #lipo -create -arch i386 imach_32$(VERSION) -arch x86_64 imach_64$(VERSION) -output imach$(VERSION)
222: LFLAGSOPT= -O3 -m32
223: UNIX2DOS= unix2dos
224: SETUPCOMP= ~/bin/InnoSetup5Playonmac
225: CP= cp
226: BINVERSION=osx-intel-ia32-bin
227: endif
228:
229: ifdef _linux64onosx
230: GCC=/usr/localold/gcc-4.8.1-for-linux64/bin/x86_64-pc-linux-gcc
231: STRIP=/usr/localold/gcc-4.8.1-for-linux64/bin/x86_64-pc-linux-strip
232: LFLAGS= -g
233: CFLAGS= -g
234: CROSSCOMPILATION= -DCROSS=1
235: LFLAGSOPT= -O3 -lm -s
236: CFLAGSOPT= -O3
237: TAR= /sw/bin/gnutar
238: UNIX2DOS= unix2dos
239: SETUPCOMP= ~/bin/InnoSetup5Playonmac
240: CP= cp
241: BINVERSION=linux-x86-64-bin
242: endif
243:
244: ifdef _linux32onosx
245: #GCC=/usr/local/i386-mingw32-4.3.0/bin/i386-mingw32-gcc
246: #GCC=/usr/local/cross-tools/bin/i686-w64-mingw32-gcc
247: GCC=/usr/localold/gcc-4.8.1-for-linux32/bin/i586-pc-linux-gcc
248: STRIP=/usr/localold/gcc-4.8.1-for-linux32/bin/i586-pc-linux-strip
249: LFLAGS= -g
250: CFLAGS= -g
251: LFLAGSOPT= -O3 -s -lm
252: CFLAGSOPT= -O3
253: CROSSCOMPILATION= -DCROSS=1
254: TAR= /sw/bin/gnutar
255: UNIX2DOS= unix2dos
256: SETUPCOMP= ~/bin/InnoSetup5Playonmac
257: CP= cp
258: BINVERSION=linux-i586-bin
259: endif
260:
261: ifdef _linux
262: #CFLAGS= -g -DUNIX -DDEBUGHESS
263: #CFLAGS= -g -DDEBUG -DFIXMNBRAK
264: #CFLAGS= -g -DDEBUG
265: CFLAGS= -g
266: LFLAGS= -g -lm
267: IGSL= -I/usr/include/gsl
268: LGSL= -lgsl -lgslcblas
269: INLOPT= -I/usr/local/include
270: LNLOPT= -lm -L/usr/local/lib -lnlopt
271: CFLAGSOPT= -O3 -g
272: LFLAGSOPT= -O3 -g -lm
273: CROSSCOMPILATION= -DCROSS=0
274: UNIX2DOS= unix2dos
275: SETUPCOMP= wine "C:////Program Files////Inno Setup 4////Compil32.exe"
276: BINVERSION=LINUXnative
277: CP= cp
278: endif
279:
280: SED= sed
281: PACKAGE=imach
282: PROGRAM=IMaCh
283:
284:
285: TMPSETUPSCRIPT=setup.iss
286: TMPNOREGSETUPSCRIPT=noreg-setup.iss
287: TMPSCRIPTIN=setup.iss.in
288: APPLICATION=IMaCh
289: APPNAME=$(APPLICATION)-$(VERSION)
290: APPCOMPILATIONMODE=$(IMACHSETUPVERSION)
291: GNUPLOTVERSION=5.1
292: LICENSE=Copying
293: TMPSETUPEXE=imach-$(VERSION)-$(IMACHSETUPVERSION)-setup.exe
294: TMPNOREGSETUPEXE=imach-$(VERSION)-$(IMACHSETUPVERSION)-noreg-setup.exe
295: LICENSEFILE=$(LICENSE)
296: INFOBEFOREFILE=README.txt
297:
298: setup.iss: setup.iss.in
299: $(SED) -e "s/@APPNAME@/$(APPNAME)/g; \
300: s/@NOTINNOREG@//g; \
301: s/@NOREG@//g; \
302: s/@IMACHSETUPVERSION@/$(IMACHSETUPVERSION)/g; \
303: s/@APPCOMPILATIONMODE@/$(APPCOMPILATIONMODE)/g; \
304: s/@VERSION@/$(VERSION)/g; \
305: s/@GNUPLOTVERSION@/$(GNUPLOTVERSION)/g; \
306: s/@INFOBEFOREFILE@/$(INFOBEFOREFILE)/g; \
307: s/@LICENSEFILE@/$(LICENSEFILE)/g; \
308: s/@PACKAGE@/$(PACKAGE)/g; \
309: s/@DICTLANG@/$(DICTLANG)/g; \
310: s/@VERMAJOR@/$(VERMAJOR)/g; \
311: s/@COPYRIGHT@/$(COPYRIGHT)/g;" \
312: setup.iss.in > setup.iss
313:
314: $(TMPNOREGSETUPSCRIPT): $(TMPSCRIPTIN)
315: $(SED) -e "s/@APPNAME@/$(APPNAME)/g; \
316: s/@NOTINNOREG@/\\;/g; \
317: s/@NOREG@/noreg-/g; \
318: s/@IMACHSETUPVERSION@/$(IMACHSETUPVERSION)/g; \
319: s/@VERSION@/$(VERSION)/g; \
320: s/@GNUPLOTVERSION@/$(GNUPLOTVERSION)/g; \
321: s/@INFOBEFOREFILE@/$(INFOBEFOREFILE)/g; \
322: s/@LICENSEFILE@/$(LICENSEFILE)/g; \
323: s/@PACKAGE@/$(PACKAGE)/g; \
324: s/@DICTLANG@/$(DICTLANG)/g; \
325: s/@VERMAJOR@/$(VERMAJOR)/g; \
326: s/@COPYRIGHT@/$(COPYRIGHT)/g;" \
327: $(TMPSCRIPTIN) > $(TMPNOREGSETUPSCRIPT)
328: # $(UNIX2DOS) $(TMPNOREGSETUPSCRIPT)
329:
330: $(TMPSETUPEXE): $(TMPSETUPSCRIPT)
331: $(SETUPCOMP) /cc $(TMPSETUPSCRIPT)
332:
333: #$(TMPNOREGSETUPEXE): $(TMPNOREGSETUPSCRIPT)
334: # $(SETUPCOMP) /cc $(TMPNOREGSETUPSCRIPT)
335:
336: PARAM=mypar1
337:
338: imachcyg-setup: imachcygopt.exe setup.iss
339: touch setup.iss.in
340: $(CP) imachcygopt.exe imach.exe
341: $(CP) imachcygopt.exe imach$(VERSION)-$(BINVERSION).exe
342: $(SETUPCOMP) /cc setup.iss
343: cp Output/$(TMPSETUPEXE) imachcyg-setup
344:
345: # imachcyg-noreg-setup : imachcygopt imachcygopt.o setup.iss.in noreg-setup.iss $(TMPNOREGSETUPEXE)
346: imachcyg-noreg-setup: imachcygopt.exe noreg-setup.iss
347: touch setup.iss.in
348: $(CP) imachcygopt.exe imach.exe
349: $(CP) imachcygopt.exe imach$(VERSION)-$(BINVERSION).exe
350: $(SETUPCOMP) /cc $(TMPNOREGSETUPSCRIPT)
351: cp Output/$(TMPNOREGSETUPEXE) imachcyg-noreg-setup
352: # ICL compiler 64
353: imachICL-build: imach.c
354: icl /GS /W3 /Zc:wchar_t /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "UNICODE" /Qipo /Zc:forScope /MT imach.c
355: #/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"
356: # /Users/nbrouard/Documents/imach/imach-gui/build/icl64/Release/imach.exe
357: # both 32 and 64 executables should have been built on Windows with Intel compiler.
358:
359: imachICL-set: ../build/icl64/Release/imach-$(VERSION).exe ../build/icl32/Release/imach-$(VERSION).exe setup.iss setup.iss
360: pwd
361: touch setup.iss.in
362: echo SETUPCOMP=$(SETUPCOMP)
363: echo STRIP= $(STRIP)
364: echo BINVERSION= $(BINVERSION)
365: $(SETUPCOMP) /cc setup.iss
366: $(CP) Output/$(TMPSETUPEXE) imachICL-setup
367:
368: # imachICL64-setup: IMaCh-icl64-$(VERSION).exe setup.iss
369: # pwd
370: # $(CP) IMaCh-icl64-$(VERSION).exe imach.exe
371: # $(SETUPCOMP) /cc setup.iss
372: # $(CP) Output/$(TMPSETUPEXE) imachICL64-setup
373:
374: imachICL64-noreg-setup: IMaCh-icl64-$(VERSION).exe noreg-setup.iss
375: touch setup.iss.in
376: $(SETUPCOMP) /cc $(TMPNOREGSETUPSCRIPT)
377: $(CP) Output/$(TMPSETUPEXE) imachICL64-noreg-setup
378:
379: ../build/icl64/Release/IMaCh-$(VERSION).exe: imach.c ../distributions/windows/mybuildicl64.bat
380: rm -rf ../build/icl64 && mkdir ../build/icl64
381: cp ../distributions/windows/mybuildicl64.bat ../build/icl64/
382: cd ../build/icl64
383: VBoxManage --nologo guestcontrol "Windows7-64" run --exe "C:\Windows\System32\cmd.exe" \
384: --username brouard --verbose --wait-stdout --wait-stderr -- "C:\Windows\SysWOW64\cmd.exe" "/c" "$(DRIVEG)$(DIRG)\icl64\mybuildicl64.bat" "$(VERSION)" "$(DRIVEG)" "$(DIRG)"
385:
386: # VBoxManage --nologo guestcontrol "Windows7-64" run --exe "c:\\windows\\system32\\ipconfig.exe" --username brouard --verbose --wait-stdout --wait-stderr -- "/all"
387: # VBoxManage --nologo guestcontrol "Windows7-64" run --exe "C:\Windows\SysWOW64\cmd.exe" --username brouard --verbose --wait-stdout --wait-stderr -- "/c" "DIR"
388:
389: # VBoxManage --nologo guestcontrol "Windows7-64" run --exe "C:\Windows\SysWOW64\cmd.exe" --username brouard --verbose --wait-stdout --wait-stderr -- "/c" "DIR"
390: # VBoxManage --nologo guestcontrol "Windows7-64" run --exe "c:\\windows\\system32\\ipconfig.exe" --username brouard --verbose --wait-stdout --wait-stderr -- "/all"
391: #VBoxManage --nologo guestcontrol "Windows7-64" run --exe "C:\Windows\SysWOW64\cmd.exe" \
392: # --username brouard --verbose --wait-stdout --wait-stderr -- "/c" "$(DRIVEG)$(DIRG)\icl64\mybuildicl64.bat" "$(VERSION)" "$(DRIVEG)" "$(DIRG)"
393:
394: ../build/icl32/Release/IMaCh-$(VERSION).exe: imach.c ../distributions/windows/mybuildicl32.bat
395: rm -rf ../build/icl32 && mkdir -p ../build/icl32
396: cp ../distributions/windows/mybuildicl32.bat ../build/icl32/
397: cd ../build/icl32
398: VBoxManage --nologo guestcontrol "Windows7-64" run --exe "C:\Windows\System32\cmd.exe" \
399: --username brouard --verbose --wait-stdout -- "C:\Windows\SysWOW64\cmd.exe" "/c" "$(DRIVEG)$(DIRG)\icl32\mybuildicl32.bat" "$(VERSION)" "$(DRIVEG)" "$(DIRG)"
400: # VBoxManage startvm "Windows7-64" --type headless
401: # VBoxManage list runningvms
402: # sudo xlcem VBoxManage --nologo guestcontrol "Windows7-64" run --exe "C:\Windows\System32\cmd.exe" \
403: # --username brouard --verbose --wait-stdout -- "C:\Windows\SysWOW64\cmd.exe" "/c" "$(DRIVEG)$(DIRG)\icl32\mybuildicl32.bat" "$(VERSION)" "$(DRIVEG)" "$(DIRG)"
404:
405: #VBoxManage --nologo guestcontrol "Windows7-64" run --exe "C:\Windows\SysWOW64\cmd.exe" \
406: # --username brouard --verbose --wait-stdout -- "/c" "$(DRIVEG)$(DIRG)\icl32\mybuildicl32.bat" "$(VERSION)" "$(DRIVEG)" "$(DIRG)"
407:
408: ../build/vs32/Release/IMaCh-$(VERSION).exe: imach.c mybuildvs32.bat
409: rm -rf ../build/vs32 && mkdir -p ../build/vs32
410: cp mybuildvs32.bat ../build/vs32/
411: cd ../build/vs32
412: VBoxManage --nologo guestcontrol "Windows7-64" run --exe "C:\Windows\System32\cmd.exe" \
413: --username brouard --verbose --wait-stdout -- "C:\Windows\SysWOW64\cmd.exe" "/c" "g:\imach\imach-gui\build\vs32\mybuildvs32.bat" "$(VERSION)"
414: # C:\Windows\SysWOW64\cmd.exe /E:ON /V:ON /K "g:\imach\imach-gui\build\icl32\mybuild.bat"
415: #WORK --username brouard --verbose --wait-exit --wait-stdout -- "/c" "c:\users\brouard\mybuild.bat"
416: # --username brouard --verbose --wait-exit --wait-stdout -- "/c" "g: && cd \imach\imach-gui\build\icl32 && mybuild.bat"
417: # --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"
418: # --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"
419: # --username brouard --wait-exit --wait-stdout -- "/c" "g: && dir >c:\users\brouard\totog.txt"
420: #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"
421: #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"
422:
423: imachICL64-setup: ../build/icl64/Release/IMaCh-$(VERSION).exe setup.iss mybuildicl64.bat
424:
425: imachICL32-setup: ../build/icl32/Release/IMaCh-$(VERSION).exe setup.iss ../distributions/windows/mybuildicl32.bat
426:
427: imachVS32-setup: ../build/vs32/Release/IMaCh-$(VERSION).exe setup.iss mybuildvs32.bat
428:
429: imachICL32-noreg-setup: IMaCh-icl32.exe noreg-setup.iss
430: touch setup.iss.in
431: $(CP) IMaCh-icl32.exe imach.exe
432: $(SETUPCOMP) /cc $(TMPNOREGSETUPSCRIPT)
433: $(CP) Output/$(TMPSETUPEXE) imachICL32-noreg-setup
434:
435: imachMVC-setup: imachMVC.exe setup.iss
436: touch setup.iss.in
437: $(CP) imachMVC.exe imach.exe
438: $(SETUPCOMP) /cc setup.iss
439: $(CP) Output/$(TMPSETUPEXE) imachMVC-setup
440:
441: # imachcyg-noreg-setup : imachcygopt imachcygopt.o setup.iss.in noreg-setup.iss $(TMPNOREGSETUPEXE)
442: imachMVC-noreg-setup: imachMVC.exe noreg-setup.iss
443: touch setup.iss.in
444: $(CP) imachMVC.exe imach.exe
445: $(SETUPCOMP) /cc $(TMPNOREGSETUPSCRIPT)
446: $(CP) Output/$(TMPNOREGSETUPEXE) imachcyg-noreg-setup
447:
448: simach : simach.o
449: $(CC) $(LFLAGS) $(LGSL) -o simach simach.o
450: simach.o : simach.c
451: $(CC) $(CFLAGS) -DGSL -c simach.c
452:
453: imachtest: imachtest.o
454: $(CC) $(LFLAGS) -o imachtest imachtest.o
455: ifdef _macosx
456: $(DSYMUTIL) imachtest
457: endif
458:
459: imach: imach.o
460: $(CC) -o imach $(LFLAGS) imach.o
461: ifdef _macosx
462: $(DSYMUTIL) imach
463: endif
464:
465: imach.o : imach.c
466: $(CC) $(CFLAGS) $(CROSSCOMPILATION) -c $<
467: # $(CC) $(CFLAGS) $(CROSSCOMPILATION) -DDEBUGMEM -c $<
468: # $(CC) $(CFLAGS) $(CROSSCOMPILATION) -DDEBUGBRENT -c imach.c
469:
470: imach-0.98r: imach-0.98r.o
471: $(CC) $(LFLAGS) -o $@ $<
472: ifdef _macosx
473: $(DSYMUTIL) $@
474: endif
475:
476: # Horrible no f3<f1 test and direct test, converges if close to maximum otherwise diverges
477: #calls = 13 & 1760, -2 Log likelihood = 46537.411806825585
478: imach-0.98r.o : imach-0.98r.c
479: $(CC) $(CFLAGS) -DPOWELLNOF3INFF1TEST -DUNKNOWNSTATUSNOTCONTRIBUTING -DDISPATCHINGKNOWNDEATHAFTERLASTWAVE $(CROSSCOMPILATION) -c $<
480:
481: #################
482: imach-0.98r-powellsf1f3: imach-0.98r-powellsf1f3.o
483: $(CC) $(LFLAGS) -o $@ $<
484: ifdef _macosx
485: $(DSYMUTIL) $@
486: endif
487:
488: # test f3<f1 but direct test and no powell criteria which are NOPOWELLORIGINALNOMNBAKORIGINAL NOLINMINORIGINAL
489: # diverges now from zeroes calls = 18 & 3163, -2 Log likelihood = 50929.075310962719
490: # but converges if close to the maximum
491: # calls = 13 & 1760, -2 Log likelihood = 46537.411806825585
492: imach-0.98r-powellsf1f3.o : imach-0.98r.c
493: $(CC) $(CFLAGS) -DUNKNOWNSTATUSNOTCONTRIBUTING -DDISPATCHINGKNOWNDEATHAFTERLASTWAVE $(CROSSCOMPILATION) -o $@ -c $<
494: # $(CC) $(CFLAGS) -DUNKNOWNSTATUSNOTCONTRIBUTING -DDISPATCHINGKNOWNDEATHAFTERLASTWAVE $(CROSSCOMPILATION) -E -c $< | cppbeauty
495:
496: ######
497: imach-0.98r-powellf1f3: imach-0.98r-powellf1f3.o
498: $(CC) $(LFLAGS) -o $@ $<
499: ifdef _macosx
500: $(DSYMUTIL) $@
501: endif
502:
503: #Powell original but with mnbrak fix -DUNKNOWNSTATUSNOTCONTRIBUTING -DDISPATCHINGKNOWNDEATHAFTERLASTWAVE
504: #diverges from zeroes
505: # calls = 13 & 1760, -2 Log likelihood = 46537.411806825585 Real minumum
506: imach-0.98r-powellf1f3.o : imach-0.98r.c
507: $(CC) $(CFLAGS) -DPOWELLORIGINAL -DLINMINORIGINAL -DUNKNOWNSTATUSNOTCONTRIBUTING -DDISPATCHINGKNOWNDEATHAFTERLASTWAVE $(CROSSCOMPILATION) -o $@ -c $<
508: imach-0.98r-powellf1f3.i : imach-0.98r.c
509: $(CC) $(CFLAGS) -DPOWELLORIGINAL -DLINMINORIGINAL -DUNKNOWNSTATUSNOTCONTRIBUTING -DDISPATCHINGKNOWNDEATHAFTERLASTWAVE $(CROSSCOMPILATION) -E -c $<| cppbeauty
510: # $(CC) $(CFLAGS) -DPOWELLORIGINAL -DLINMINORIGINAL $(CROSSCOMPILATION) -E -o $@ -c $<
511:
512: ######################
513: imach-0.98r-powell: imach-0.98r-powell.o
514: $(CC) $(LFLAGS) -o $@ $<
515: ifdef _macosx
516: $(DSYMUTIL) $@
517: endif
518:
519: # Powell original means without -DPOWELLNOF3INFF1TEST (with F3<F1 test)
520: #calls = 33 & 4088, -2 Log likelihood = 46623.239341985027 reaches the maximum !
521: #From zeroes doesn't reach the maximum calls = 34 & 4212, -2 Log likelihood = 46542.398769900567
522: #calls = 34 & 4212, -2 Log likelihood = 46542.398769900567
523: imach-0.98r-powell.o : imach-0.98r.c
524: $(CC) $(CFLAGS) -DPOWELLORIGINAL -DLINMINORIGINAL -DMNBRAKORIGINAL -DUNKNOWNSTATUSNOTCONTRIBUTING -DDISPATCHINGKNOWNDEATHAFTERLASTWAVE $(CROSSCOMPILATION) -o $@ -c $<
525: # $(CC) $(CFLAGS) -DPOWELLORIGINAL -DLINMINORIGINAL -DMNBRAKORIGINAL $(CROSSCOMPILATION) -E -c $< | cppbeauty
526:
527: imach-0.98r-powell.i : imach-0.98r.c
528: $(CC) $(CFLAGS) -DPOWELLORIGINAL -DLINMINORIGINAL -DMNBRAKORIGINAL $(CROSSCOMPILATION) -E -o $@ -c $<
529:
530: ###############
531: # powell test with f1f3 powell, linmin fix but no mnbrak fix
532: imach-0.98r-powellf1f3lin: imach-0.98r-powellf1f3lin.o
533: $(CC) $(LFLAGS) -o $@ $<
534: ifdef _macosx
535: $(DSYMUTIL) $@
536: endif
537:
538: # ?calls = 41 & 4718, -2 Log likelihood = 46690.242656475864
539: #calls = 33 & 4088, -2 Log likelihood = 46623.239341985027
540: # from zeroes calls = 34 & 4212, -2 Log likelihood = 46542.398769900567
541: imach-0.98r-powellf1f3lin.o : imach-0.98r.c
542: $(CC) $(CFLAGS) -DPOWELLORIGINAL -DMNBRAKORIGINAL -DUNKNOWNSTATUSNOTCONTRIBUTING -DDISPATCHINGKNOWNDEATHAFTERLASTWAVE $(CROSSCOMPILATION) -o $@ -c $<
543:
544: #############
545:
546:
547: # directest with f3<f1 without mnbrak fix but linmin fix
548: imach-0.98r-powellf1f3orilin: imach-0.98r-powellf1f3orilin.o
549: $(CC) $(LFLAGS) -o $@ $<
550: ifdef _macosx
551: $(DSYMUTIL) $@
552: endif
553:
554: #Maximum not reached but converge from zeroes
555: #calls = 34 & 4212, -2 Log likelihood = 46542.398769900567
556: imach-0.98r-powellf1f3orilin.o : imach-0.98r.c
557: $(CC) $(CFLAGS) -DMNBRAKORIGINAL -DUNKNOWNSTATUSNOTCONTRIBUTING -DDISPATCHINGKNOWNDEATHAFTERLASTWAVE $(CROSSCOMPILATION) -o $@ -c $<
558:
559: #######
560:
561: # Powell test not direct, with mnbrak and linmin fixes
562: imach-0.98r-powellf1f3linmnb: imach-0.98r-powellf1f3linmnb.o
563: $(CC) $(LFLAGS) -o $@ $<
564: ifdef _macosx
565: $(DSYMUTIL) $@
566: endif
567:
568: # worst, diverges from zeroes -DDEBUGMNBRAK
569: #calls = 18 & 3163, -2 Log likelihood = 50929.075310962719
570:
571: imach-0.98r-powellf1f3linmnb.o : imach-0.98r.c
572: $(CC) $(CFLAGS) -DDEBUG -DPOWELLORIGINAL -DUNKNOWNSTATUSNOTCONTRIBUTING -DDISPATCHINGKNOWNDEATHAFTERLASTWAVE $(CROSSCOMPILATION) -o $@ -c $<
573: imach-0.98r-powellf1f3linmnb.i : imach-0.98r.c
574: $(CC) $(CFLAGS) -DDEBUG -DPOWELLORIGINAL -DUNKNOWNSTATUSNOTCONTRIBUTING -DDISPATCHINGKNOWNDEATHAFTERLASTWAVE $(CROSSCOMPILATION) -E -c $< | cppbeauty
575: #########
576:
577: # Powell test not direct, with mnbrak and linmin fixes
578: imach-0.98r-powellf1f3linmnbiter: imach-0.98r-powellf1f3linmnbiter.o
579: $(CC) $(LFLAGS) -o $@ $<
580: ifdef _macosx
581: $(DSYMUTIL) $@
582: endif
583:
584: #
585: #
586:
587: imach-0.98r-powellf1f3linmnbiter.o : imach-0.98r.c
588: $(CC) $(CFLAGS) -DDEBUG -DPOWELLORIGINAL -DUNKNOWNSTATUSNOTCONTRIBUTING -DDISPATCHINGKNOWNDEATHAFTERLASTWAVE -DNODIRECTIONCHANGEDUNTILNITER $(CROSSCOMPILATION) -o $@ -c $<
589: imach-0.98r-powellf1f3linmnbiter.i : imach-0.98r.c
590: $(CC) $(CFLAGS) -DDEBUG -DPOWELLORIGINAL -DUNKNOWNSTATUSNOTCONTRIBUTING -DDISPATCHINGKNOWNDEATHAFTERLASTWAVE -DNODIRECTIONCHANGEDUNTILNITER $(CROSSCOMPILATION) -E -c $< | cppbeauty
591: #########
592:
593:
594: imach-0.98r-powellf1f3ori: imach-0.98r-powellf1f3ori.o
595: $(CC) $(LFLAGS) -o $@ $<
596: ifdef _macosx
597: $(DSYMUTIL) $@
598: endif
599:
600: # Powell with -DPOWELLNOF3INFF1TEST which is not Powell original!
601: #calls = 41 & 4718, -2 Log likelihood = 46690.242656475864, doesn't reach the maximum
602: imach-0.98r-powellf1f3ori.o : imach-0.98r.c
603: $(CC) $(CFLAGS) -DPOWELLNOF3INFF1TEST -DPOWELLORIGINAL -DLINMINORIGINAL -DMNBRAKORIGINAL $(CROSSCOMPILATION) -o $@ -c $<
604: imach-0.98r-powellf1f3ori.i : imach-0.98r.c
605: $(CC) $(CFLAGS) -DPOWELLNOF3INFF1TEST -DPOWELLORIGINAL -DLINMINORIGINAL -DMNBRAKORIGINAL $(CROSSCOMPILATION) -E -o $@ -c $<| cppbeauty
606:
607:
608:
609:
610:
611:
612: imachtest.o : imach.c
613: $(CC) $(CFLAGS) $(CROSSCOMPILATION) -DPOWELLORIGINAL -DNRCORIGINAL -DINFINITYORIGINAL -DDEBUGBRENT -o $@ -c $<
614:
615: # $(CC) $(CFLAGS) $(CROSSCOMPILATION) -DFIXMNBRAK -o imachtest.o -c imach.c
616:
617: # http://msdn.microsoft.com/en-us/library/abx4dbyh%28v=vs.100%29.aspx
618: imachcl: imach.c
619: cl /O2 /MT /o imach.exe imach.c
620:
621: imach097b : imach097b.o
622: $(CC) $(LFLAGS) -o imach097b imach097b.o
623: imach097b.o : imach097b.c
624: $(CC) $(CFLAGS) -DPOWELL -c imach097b.c
625:
626:
627: imachsimplified : imachsimplified.o
628: $(CC) $(LFLAGSOPT) -o imachsimplified imachsimplified.o
629: imachsimplified.o : imachsimplified.c
630: $(CC) $(CFLAGSOPT) -DPOWELL -c imachsimplified.c
631:
632: imachgsl : imachgsl.o
633: $(CC) -o imachgsl imach.o $(LFLAGS) $(LGSL)
634: imachgsl.o : imach.c
635: $(CC) $(CFLAGS) -DGSL $(IGSL) -c imach.c
636:
637: imachNEWUOAopt : imachNEWUOAopt.o
638: $(CC) -o imachNEWUOAopt imachNEWUOAopt.o $(LFLAGS) -g $(LNLOPT)
639: imachNEWUOAopt.o : imach.c
640: $(CC) $(CFLAGS) -g -DNLOPT $(INLOPT) -DNEWUOA -o imachNEWUOAopt.o -c imach.c
641:
642: imachBOBYQAopt : imachBOBYQAopt.o
643: $(CC) -o imachBOBYQAopt imachBOBYQAopt.o $(LFLAGS) $(LNLOPT)
644: imachBOBYQAopt.o : imach.c
645: $(CC) $(CFLAGS) -DNLOPT $(INLOPT) -DBOBYQA -o imachBOBYQAopt.o -c imach.c
646:
647: # imachback : imachback.o
648: # $(CC) $(LFLAGSOPT) -o imachback imachback.o
649:
650: imachopt : imachopt.o
651: $(CCOPT) $(LFLAGSOPT) -o imachopt imachopt.o
652: ln -f imachopt imach
653: $(CP) imachopt Output/imachopt$(VERSION)-$(BINVERSION)
654: $(CP) -f imach ../bin
655: ifdef _intel64onosx
656: $(CP) imachopt Output/imachopt$(VERSION)-$(BINVERSION)
657: endif
658: ifdef _macosx
659: $(STRIP) imach
660: $(STRIP) imachopt
661: endif
662: ifdef _linux32onosx
663: (cd .. && $(TAR) jcvf src/Output/imach-Linux-$(VERSION)-$(BINVERSION).tar.bz2 bin html/doc/biaspar.imach html/doc/data1.txt)
664: endif
665: ifdef _linux64onosx
666: (cd .. && $(TAR) jcvf src/Output/imach-Linux-$(VERSION)-$(BINVERSION).tar.bz2 bin html/doc/biaspar.imach html/doc/data1.txt)
667: endif
668:
669: imachback: imachback.o
670: $(CC) $(LFLAGS) -DBACKCASTWO -o imachback imachback.o
671: ifdef _macosx
672: $(DSYMUTIL) imachback
673: endif
674:
675: imachback.o : imachback.c version.h
676: $(CC) $(CFLAGS) $(CROSSCOMPILATION) -c $<
677:
678: imachopt.o : imach.c version.h
679: $(CCOPT) $(CFLAGSOPT) $(CROSSCOMPILATION) -o imachopt.o -c imach.c
680: # $(CC) $(CFLAGSOPT) -DPOWELL -o imachopt.o -c imach.c
681:
682: imachUB : imach32 imach64
683: lipo -create -arch i386 imach_32 -arch x86_64 imach_64 -output imach$(VERSION)
684:
685: imachrpm : imachopt.o
686: pwd
687: (cd ../build && rm -r gnulinux && mkdir gnulinux && cd gnulinux ;\
688: pwd ;\
689: cmake ../..;\
690: cmake --build . ; \
691: echo $(OSTYPE);\
692: cpack --debug --verbose -D CPACK_RPM_PACKAGE_DEBUG=1 -G RPM;\
693: cp imach-$(VERSION)-*.rpm ../../src/Output/ ;)
694:
695: imachsrcrpm : imachopt.o
696: pwd
697: (cd ../build && rm -r gnulinux && mkdir gnulinux && cd gnulinux ;\
698: pwd ;\
699: cmake ../..;\
700: cmake --build . ; \
701: echo $(OSTYPE);\
702: cpack --debug --verbose -D CPACK_RPM_PACKAGE_DEBUG=1 -G RPM --config ./CPackSourceConfig.cmake;\
703: cp imach-$(VERSION)-*.rpm ../../src/Output/ ;)
704:
705: #imachdmg : imachopt.o create-dmg applet IMaChInfo.plist.in IMaChPkgInfo.in IMaCh.icns main.scpt.in IMaCh-ecrandemarrage.rsrc TXT.rtf
706: # $(CC) $(LFLAGSOPT) -o imach imachopt.o
707: # #hdiutil detach /Volumes/IMaCh\ $(VERSION)
708: # cp ../../distributions/osx/gnuplot_bin/gnuplot_2_6_5_OSX imach$(VERSION).app/Contents/Resources/bin/gnuplot;\
709:
710: imachdmg : imachopt.o ../distributions/osx/create-dmg ../distributions/osx/createdmg4.sh ../distributions/osx/IMaChInfo.plist.in ../distributions/osx/IMaChPkgInfo.in ../distributions/osx/IMaCh.icns ../distributions/osx/TXT.rtf
711: pwd
712: (cd ../build && rm -r osx && mkdir osx && cd osx ;\
713: pwd ;\
714: cmake ../..;\
715: cmake --build . ; \
716: echo $(OSTYPE);\
717: echo $(VERSION);\
718: rm -rf imach$(VERSION).app;\
719: mkdir -p imach$(VERSION).app;\
720: mkdir -p imach$(VERSION).app/Contents;\
721: mkdir -p imach$(VERSION).app/Contents/MacOS;\
722: mkdir -p imach$(VERSION).app/Contents/Resources;\
723: mkdir -p imach$(VERSION).app/Contents/Resources/Scripts;\
724: mkdir -p imach$(VERSION).app/Contents/Resources/bin;\
725: mkdir -p imach$(VERSION).app/Contents/Resources/lib;\
726: mkdir -p imach$(VERSION).app/Contents/Resources/doc;\
727: mkdir -p imach$(VERSION).app/Contents/Resources/tests;\
728: mkdir -p imach$(VERSION).app/Contents/Resources/tests/data;\
729: cp ../../distributions/osx/imach.sh imach$(VERSION).app/Contents/MacOS;\
730: cp IMaCh-$(VERSION) imach$(VERSION).app/Contents/Resources/bin/imach;\
731: cp ../../distributions/osx/imach-run.sh imach$(VERSION).app/Contents/Resources/bin;\
732: cp ../../distributions/osx/gnuplot_bin/bin/gnuplot imach$(VERSION).app/Contents/Resources/bin/gnuplot;\
733: cp ../../distributions/osx/gnuplot_bin/lib/* imach$(VERSION).app/Contents/Resources/lib;\
734: mkdir -p imach$(VERSION).app/Contents/Resources/description.rtfd;\
735: cp -p ../../distributions/osx/TXT.rtf imach$(VERSION).app/Contents/Resources/description.rtfd ;\
736: $(SED) -e "s/@VERSION@/$(VERSION)/g;" ../../distributions/osx/IMaChInfo.plist.in >imach$(VERSION).app/Contents/Info.plist ;\
737: cp -p ../../distributions/osx/IMaChPkgInfo.in imach$(VERSION).app/Contents/PkgInfo ;\
738: cp -p ../../distributions/osx/IMaCh.icns imach$(VERSION).app/Contents/Resources/IMaCh.icns ;\
739: cp ../../html/doc/data1.txt imach$(VERSION).app/Contents/Resources/doc ;\
740: cp ../../html/doc/biaspar.log imach$(VERSION).app/Contents/Resources/doc ;\
741: cp ../../html/doc/biaspar.imach imach$(VERSION).app/Contents/Resources/doc ;\
742: cp ../../src/README.txt imach$(VERSION).app/Contents/Resources/doc ;\
743: cp ../../tests/testV1V2.imach imach$(VERSION).app/Contents/Resources/tests ;\
744: cp ../../tests/rtestV1V2.imach imach$(VERSION).app/Contents/Resources/tests ;\
745: cp ../../tests/testV2.imach imach$(VERSION).app/Contents/Resources/tests ;\
746: cp ../../tests/rtestV2.imach imach$(VERSION).app/Contents/Resources/tests ;\
747: cp ../../tests/data/data2.txt imach$(VERSION).app/Contents/Resources/tests/data ;\
748: rm -f imach$(VERSION).dmg ;\
749: pwd ;\
750: cp ../../distributions/osx/createdmg4.sh . ;\
751: cp ../../distributions/osx/Background.png .;\
752: pwd ;\
753: ./createdmg4.sh --volname "IMaCh $(VERSION)" imach$(VERSION).dmg imach$(VERSION) ;\
754: cp imach$(VERSION).dmg ../../src/Output/ ;)
755: # ./create-dmg --volname "IMaCh $(VERSION)" imach$(VERSION).dmg imach$(VERSION).app
756: # ./createdmg2.sh --volname "IMaCh $(VERSION)" imach$(VERSION).dmg imach$(VERSION)
757:
758: md5:
759: ls Output/* | xargs md5sum
760: upload:
761: # rsync -v Output/imach-0.98r4-1.x86_64.rpm brouard@henry.ined.fr:/home/euroreves/html/imach/Download
762: # rsync -v Output/IMaCh-0.99a3-icl-setup.exe brouard@henry.ined.fr:/home/euroreves/html/imach/Download
763: # rsync -v Output/imach0.99a3.dmg brouard@henry.ined.fr:/home/euroreves/html/imach/Download
764: # rsync -v Output/IMaCh-0.98r7-icl-setup.exe brouard@henry.ined.fr:/home/euroreves/html/imach/Download
765: # rsync -v Output/imach0.98r7.dmg brouard@henry.ined.fr:/home/euroreves/html/imach/Download
766: # rsync -v Output/imach-0.99r9-icl-setup.exe brouard@henry.ined.fr:/home/euroreves/html/imach/Download
767: # rsync -v Output/imach0.99r9.dmg brouard@henry.ined.fr:/home/euroreves/html/imach/Download
768: # rsync -v Output/imach-0.99r19-icl-setup.exe brouard@henry.ined.fr:/home/euroreves/html/imach/Download
769: # rsync -v Output/imach0.99r19.dmg brouard@henry.ined.fr:/home/euroreves/html/imach/Download
770: # rsync -v Output/imach-0.99r21-icl-setup.exe brouard@henry.ined.fr:/home/euroreves/html/imach/Download
771: # rsync -v Output/imach0.99r21.dmg brouard@henry.ined.fr:/home/euroreves/html/imach/Download
772: # rsync -v Output/imach-0.99r22-icl-setup.exe brouard@henry.ined.fr:/home/euroreves/html/imach/Download
773: # rsync -v Output/imach0.99r22.dmg brouard@henry.ined.fr:/home/euroreves/html/imach/Download
774: # rsync -v Output/imach-0.99r23-icl-setup.exe brouard@henry.ined.fr:/home/euroreves/html/imach/Download
775: # rsync -v Output/imach0.99r23.dmg brouard@henry.ined.fr:/home/euroreves/html/imach/Download
776: # rsync -v Output/imach-0.99r24-icl-setup.exe brouard@henry.ined.fr:/home/euroreves/html/imach/Download
777: # rsync -v Output/imach0.99r24.dmg brouard@henry.ined.fr:/home/euroreves/html/imach/Download
778: # rsync -v Output/imach-0.99r24-1.x86_64.rpm brouard@henry.ined.fr:/home/euroreves/html/imach/Download
779: # rsync -v Output/imach0.99r25.dmg brouard@henry.ined.fr:/home/euroreves/html/imach/Download
780: # rsync -v Output/imach-0.99r25-1.x86_64.rpm brouard@henry.ined.fr:/home/euroreves/html/imach/Download
781: # rsync -v Output/imach-0.99r25-icl-setup.exe brouard@henry.ined.fr:/home/euroreves/html/imach/Download
782: # rsync -v Output/imach0.99r27.dmg brouard@henry.ined.fr:/home/euroreves/html/imach/Download
783: # rsync -v brouard@brouard.name:~/Documents/imach/cvs/imach/build/gnulinux/imach-0.99r33-1.x86_64.rpm Output/
784: # rsync -v Output/imach-0.99r33-1.x86_64.rpm brouard@henry.ined.fr:/home/euroreves/html/imach/Download
785: # rsync -v Output/imach-0.99r33-1.x86_64.rpm brouard@henry.ined.fr:/home/euroreves/html/imach/Download
786: # rsync -v Output/imach0.99r26.dmg brouard@henry.ined.fr:/home/euroreves/html/imach/Download
787: # rsync -v Output/imach-0.99r26-1.x86_64.rpm brouard@henry.ined.fr:/home/euroreves/html/imach/Download
788: # rsync -v Output/imach-0.99r26-icl-setup.exe brouard@henry.ined.fr:/home/euroreves/html/imach/Download
789: # rsync -v Output/imach-0.99r19-1.x86_64.rpm brouard@henry.ined.fr:/home/euroreves/html/imach/Download
790: # rsync -v Output/imach0.99r12-1.x86_64.rpm brouard@henry.ined.fr:/home/euroreves/html/imach/Download
791: # rsync -v Output/* brouard@henry.ined.fr:/home/euroreves/html/imach/Download
792: rsync -v Output/imach-0.99r34-icl-setup.exe brouard@henry.ined.fr:/home/euroreves/html/imach/Download
793: rsync -v Output/imach0.99r34.dmg brouard@henry.ined.fr:/home/euroreves/html/imach/Download
794:
795: imachcyg : imachcyg.o
796: $(CC) $(LFLAGS) -o imach imachcyg.o
797: imachcyg.o : imach.c
798: $(CC) $(CFLAGS) -c -o imachcyg.o imach.c
799: imachcygopt.exe : imachcygopt.o
800: $(CC) $(LFLAGSOPT) -o imachcygopt.exe imachcygopt.o
801: imachcygopt.o : imach.c
802: $(CC) $(CFLAGSOPT) -c -o imachcygopt.o imach.c
803:
804: imachw32.o : imach.c
805: i386-mingw32-gcc -c imach.c -o imachw32.o
806: imach.exe : imachw32.o
807: i386-mingw32-gcc -mwindows -o imach.exe -lm imachw32.o
808: i386-mingw32-strip imach.exe
809:
810: valgrindtoto: valgrindtoto.c
811: gcc -o valgrindtoto -DCROSS=0 -g valgrindtoto.c
812: valgrindtototest: valgrindtoto
813: valgrind --dsymutil=yes --leak-check=full --show-leak-kinds=all --track-origins=yes ./valgrindtoto
814:
815: valgrind-test : imach $(TESTFILE)
816: valgrind --dsymutil=yes --leak-check=full --show-leak-kinds=all --track-origins=yes ./imach $(TESTFILE)
817: # valgrind --dsymutil=yes --leak-check=full --show-leak-kinds=all --track-origins=yes ./imach-0.98r-powellf1f3linmnb $(TESTFILE)
818: # gdb -ex=r --args myprogram arg1 arg2
819: # gdb -batch -x /tmp/cmds --args executablename arg1 arg2 arg3
820: # gdb -ex=r --args imachback /Users/nbrouard/Documents/Recherches/HRS/RAND_HRS/imachb.imach
821: btest: imachback $(TESTFILE)
822: gdb ./imachback $(TESTFILE)
823: test: imach $(TESTFILE)
824: gdb ./imach $(TESTFILE)
825:
826: $(PARAM).htm: imach $(PARAM).imach data1.txt
827: ./imach $(PARAM).imach
828:
829: clean:
830: rm or$(PARAM).txt er$(PARAM).txt pijr$(PARAM).txt plr$(PARAM).txt \
831: r$(PARAM).txt tr$(PARAM).txt vpl$(PARAM).txt pr$(PARAM).txt \
832: vr$(PARAM).txt *.gif imach.exe imach.o
833:
834:
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>