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