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