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