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