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