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