Annotation of imach/src/Makefile, revision 1.49
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.21 brouard 206: endif
207:
208: SED= sed
209: PACKAGE=imach
210: PROGRAM=IMaCh
211:
212:
213: TMPSETUPSCRIPT=setup.iss
214: TMPNOREGSETUPSCRIPT=noreg-setup.iss
215: TMPSCRIPTIN=setup.iss.in
216: APPLICATION=IMaCh
217: APPNAME=$(APPLICATION)-$(VERSION)
218: GNUPLOTVERSION=4.0
219: LICENSE=Copying
220: TMPSETUPEXE=imach-$(VERSION)-$(IMACHSETUPVERSION)-setup.exe
1.31 brouard 221: TMPNOREGSETUPEXE=imach-$(VERSION)-$(IMACHSETUPVERSION)-noreg-setup.exe
1.21 brouard 222: LICENSEFILE=$(LICENSE)
223: INFOBEFOREFILE=README.txt
224:
1.31 brouard 225: setup.iss: setup.iss.in
1.21 brouard 226: $(SED) -e "s/@APPNAME@/$(APPNAME)/g; \
227: s/@NOTINNOREG@//g; \
228: s/@NOREG@//g; \
229: s/@IMACHSETUPVERSION@/$(IMACHSETUPVERSION)/g; \
230: s/@VERSION@/$(VERSION)/g; \
231: s/@GNUPLOTVERSION@/$(GNUPLOTVERSION)/g; \
232: s/@INFOBEFOREFILE@/$(INFOBEFOREFILE)/g; \
233: s/@LICENSEFILE@/$(LICENSEFILE)/g; \
234: s/@PACKAGE@/$(PACKAGE)/g; \
235: s/@DICTLANG@/$(DICTLANG)/g; \
236: s/@VERMAJOR@/$(VERMAJOR)/g; \
237: s/@COPYRIGHT@/$(COPYRIGHT)/g;" \
1.31 brouard 238: setup.iss.in > setup.iss
1.21 brouard 239:
240: $(TMPNOREGSETUPSCRIPT): $(TMPSCRIPTIN)
241: $(SED) -e "s/@APPNAME@/$(APPNAME)/g; \
242: s/@NOTINNOREG@/\\;/g; \
243: s/@NOREG@/noreg-/g; \
244: s/@IMACHSETUPVERSION@/$(IMACHSETUPVERSION)/g; \
245: s/@VERSION@/$(VERSION)/g; \
246: s/@GNUPLOTVERSION@/$(GNUPLOTVERSION)/g; \
247: s/@INFOBEFOREFILE@/$(INFOBEFOREFILE)/g; \
248: s/@LICENSEFILE@/$(LICENSEFILE)/g; \
249: s/@PACKAGE@/$(PACKAGE)/g; \
250: s/@DICTLANG@/$(DICTLANG)/g; \
251: s/@VERMAJOR@/$(VERMAJOR)/g; \
252: s/@COPYRIGHT@/$(COPYRIGHT)/g;" \
253: $(TMPSCRIPTIN) > $(TMPNOREGSETUPSCRIPT)
1.29 brouard 254: # $(UNIX2DOS) $(TMPNOREGSETUPSCRIPT)
1.21 brouard 255:
256: $(TMPSETUPEXE): $(TMPSETUPSCRIPT)
257: $(SETUPCOMP) /cc $(TMPSETUPSCRIPT)
258:
259: $(TMPNOREGSETUPEXE): $(TMPNOREGSETUPSCRIPT)
260: $(SETUPCOMP) /cc $(TMPNOREGSETUPSCRIPT)
261:
262: PARAM=mypar1
263:
264: imachcyg-setup: imachcygopt.exe setup.iss
1.38 brouard 265: touch setup.iss.in
1.30 brouard 266: $(CP) imachcygopt.exe imach.exe
1.42 brouard 267: $(CP) imachcygopt.exe imach$(VERSION)-$(BINVERSION).exe
1.31 brouard 268: $(SETUPCOMP) /cc setup.iss
269: cp Output/$(TMPSETUPEXE) imachcyg-setup
1.21 brouard 270:
271: # imachcyg-noreg-setup : imachcygopt imachcygopt.o setup.iss.in noreg-setup.iss $(TMPNOREGSETUPEXE)
272: imachcyg-noreg-setup: imachcygopt.exe noreg-setup.iss
1.38 brouard 273: touch setup.iss.in
1.30 brouard 274: $(CP) imachcygopt.exe imach.exe
1.42 brouard 275: $(CP) imachcygopt.exe imach$(VERSION)-$(BINVERSION).exe
1.21 brouard 276: $(SETUPCOMP) /cc $(TMPNOREGSETUPSCRIPT)
1.31 brouard 277: cp Output/$(TMPNOREGSETUPEXE) imachcyg-noreg-setup
1.21 brouard 278:
1.45 brouard 279: imachILC64-setup: IMaCh-ilc64.exe setup.iss
280: touch setup.iss.in
281: $(CP) IMaCh-ilc64.exe imach.exe
282: $(SETUPCOMP) /cc setup.iss
283: $(CP) Output/$(TMPSETUPEXE) imachILC64-setup
284:
285: imachILC64-noreg-setup: IMaCh-ilc64.exe noreg-setup.iss
286: touch setup.iss.in
287: $(CP) IMaCh-ilc64.exe imach.exe
288: $(SETUPCOMP) /cc $(TMPNOREGSETUPSCRIPT)
289: $(CP) Output/$(TMPSETUPEXE) imachILC64-noreg-setup
290:
1.42 brouard 291: imachMVC-setup: imachMVC.exe setup.iss
292: touch setup.iss.in
293: $(CP) imachMVC.exe imach.exe
294: $(SETUPCOMP) /cc setup.iss
295: $(CP) Output/$(TMPSETUPEXE) imachcyg-setup
296:
297: # imachcyg-noreg-setup : imachcygopt imachcygopt.o setup.iss.in noreg-setup.iss $(TMPNOREGSETUPEXE)
298: imachMVC-noreg-setup: imachMVC.exe noreg-setup.iss
299: touch setup.iss.in
300: $(CP) imachMVC.exe imach.exe
301: $(SETUPCOMP) /cc $(TMPNOREGSETUPSCRIPT)
302: $(CP) Output/$(TMPNOREGSETUPEXE) imachcyg-noreg-setup
303:
1.25 brouard 304: simach : simach.o
305: $(CC) $(LFLAGS) $(LGSL) -o simach simach.o
306: simach.o : simach.c
1.30 brouard 307: $(CC) $(CFLAGS) -DGSL -c simach.c
1.25 brouard 308:
1.21 brouard 309: imach : imach.o
310: $(CC) $(LFLAGS) -o imach imach.o
1.34 brouard 311: ifdef _macosx
312: $(DSYMUTIL) imach
313: endif
314:
1.21 brouard 315: imach.o : imach.c
1.47 brouard 316: $(CC) $(CFLAGS) -DPOWELL -c imach.c
1.32 brouard 317:
1.42 brouard 318: # http://msdn.microsoft.com/en-us/library/abx4dbyh%28v=vs.100%29.aspx
319: imachcl: imach.c
320: cl /O2 /MT /o imach.exe imach.c
321:
1.32 brouard 322: imach097b : imach097b.o
323: $(CC) $(LFLAGS) -o imach097b imach097b.o
324: imach097b.o : imach097b.c
325: $(CC) $(CFLAGS) -DPOWELL -c imach097b.c
1.30 brouard 326:
327:
328: imachsimplified : imachsimplified.o
329: $(CC) $(LFLAGSOPT) -o imachsimplified imachsimplified.o
330: imachsimplified.o : imachsimplified.c
331: $(CC) $(CFLAGSOPT) -DPOWELL -c imachsimplified.c
332:
333: imachgsl : imachgsl.o
1.46 brouard 334: $(CC) -o imachgsl imach.o $(LFLAGS) $(LGSL)
1.30 brouard 335: imachgsl.o : imach.c
336: $(CC) $(CFLAGS) -DGSL $(IGSL) -c imach.c
1.21 brouard 337:
1.47 brouard 338: imachNEWUOAopt : imachNEWUOAopt.o
339: $(CC) -o imachNEWUOAopt imachNEWUOAopt.o $(LFLAGS) -g $(LNLOPT)
340: imachNEWUOAopt.o : imach.c
341: $(CC) $(CFLAGS) -g -DNLOPT $(INLOPT) -DNEWUOA -o imachNEWUOAopt.o -c imach.c
342:
343: imachBOBYQAopt : imachBOBYQAopt.o
344: $(CC) -o imachBOBYQAopt imachBOBYQAopt.o $(LFLAGS) $(LNLOPT)
345: imachBOBYQAopt.o : imach.c
346: $(CC) $(CFLAGS) -DNLOPT $(INLOPT) -DBOBYQA -o imachBOBYQAopt.o -c imach.c
347:
1.46 brouard 348:
1.21 brouard 349: imachopt : imachopt.o
350: $(CC) $(LFLAGSOPT) -o imachopt imachopt.o
351: ln -f imachopt imach
1.49 ! brouard 352: $(CP) imachopt Output/imachopt$(VERSION)-$(BINVERSION)
! 353: cp -f imach ../bin
! 354: ifdef _intel64onosx
! 355: $(CP) imachopt Output/imachopt$(VERSION)-$(BINVERSION)
! 356: endif
1.42 brouard 357: ifdef _macosx
358: $(STRIP) imach
359: endif
360: ifdef _linux32onosx
361: (cd .. && gnutar jcvf src/Output/imach-Linux-$(VERSION)-$(BINVERSION).tar.bz2 bin html/doc/biaspar.imach html/doc/data1.txt)
362: endif
363: ifdef _linux64onosx
364: (cd .. && gnutar jcvf src/Output/imach-Linux-$(VERSION)-$(BINVERSION).tar.bz2 bin html/doc/biaspar.imach html/doc/data1.txt)
365: endif
366:
1.48 brouard 367: imachopt.o : imach.c
1.45 brouard 368: $(CC) $(CFLAGSOPT) -o imachopt.o -c imach.c
369: # $(CC) $(CFLAGSOPT) -DPOWELL -o imachopt.o -c imach.c
1.21 brouard 370:
1.49 ! brouard 371: imachUB : imach32 imach64
! 372: lipo -create -arch i386 imach_32 -arch x86_64 imach_64 -output imach$(VERSION)
! 373:
! 374:
! 375: #imachdmg : imachopt.o create-dmg applet IMaChInfo.plist.in IMaChPkgInfo.in IMaCh.icns main.scpt.in IMaCh-ecrandemarrage.rsrc TXT.rtf
1.36 brouard 376: imachdmg : imachopt.o create-dmg applet IMaChInfo.plist.in IMaChPkgInfo.in IMaCh.icns main.scpt.in IMaCh-ecrandemarrage.rsrc TXT.rtf
1.27 brouard 377: $(CC) $(LFLAGSOPT) -o imach imachopt.o
1.37 brouard 378: #hdiutil detach /Volumes/IMaCh\ $(VERSION)
1.36 brouard 379: rm -rf imach$(VERSION).app
380: mkdir -p imach$(VERSION).app
381: mkdir -p imach$(VERSION).app/Contents
382: mkdir -p imach$(VERSION).app/Contents/MacOS
383: cp applet imach$(VERSION).app/Contents/MacOS
384: mkdir -p imach$(VERSION).app/Contents/Resources
385: mkdir -p imach$(VERSION).app/Contents/Resources/Scripts
386: mkdir -p imach$(VERSION).app/Contents/Resources/bin
1.38 brouard 387: mkdir -p imach$(VERSION).app/Contents/Resources/html
1.36 brouard 388: cp imach imach$(VERSION).app/Contents/Resources/bin
1.37 brouard 389: cp gnuplot_bin/gnuplot_2_6_5_OSX imach$(VERSION).app/Contents/Resources/bin/gnuplot
1.36 brouard 390: mkdir -p imach$(VERSION).app/Contents/Resources/description.rtfd
391: cp -p TXT.rtf imach$(VERSION).app/Contents/Resources/description.rtfd
392: $(SED) -e "s/@VERSION@/$(VERSION)/g;" \
393: IMaChInfo.plist.in >imach$(VERSION).app/Contents/Info.plist
394: cp -p IMaChPkgInfo.in imach$(VERSION).app/Contents/PkgInfo
395: cp -p IMaCh.icns imach$(VERSION).app/Contents/Resources/applet.icns
396: cp -r -p main.scpt.in imach$(VERSION).app/Contents/Resources/Scripts/main.scpt
397: cp IMaCH-ecrandemarrage.rsrc imach$(VERSION).app/Contents/Resources/applet.rsrc
1.38 brouard 398: cp ../html/doc/data1.txt imach$(VERSION).app/Contents/Resources/html
399: cp ../html/doc/biaspar.log imach$(VERSION).app/Contents/Resources/html
400: cp ../html/doc/biaspar.imach imach$(VERSION).app/Contents/Resources/html
1.36 brouard 401: rm -f imach$(VERSION).dmg
1.38 brouard 402: ./createdmg3.sh --volname "IMaCh $(VERSION)" imach$(VERSION).dmg imach$(VERSION)
403: mv imach$(VERSION).dmg Output/
1.36 brouard 404: # ./create-dmg --volname "IMaCh $(VERSION)" imach$(VERSION).dmg imach$(VERSION).app
1.38 brouard 405: # ./createdmg2.sh --volname "IMaCh $(VERSION)" imach$(VERSION).dmg imach$(VERSION)
1.27 brouard 406:
1.38 brouard 407: upload:
408: ls Output/* | xargs md5sum
409: rsync -v Output/* brouard@henry.ined.fr:/home/euroreves/html/imach/
1.27 brouard 410:
1.44 brouard 411: imachcyg : imachcyg.o
412: $(CC) $(LFLAGS) -o imach imachcyg.o
1.21 brouard 413: imachcyg.o : imach.c
414: $(CC) $(CFLAGS) -c -o imachcyg.o imach.c
1.44 brouard 415: imachcygopt.exe : imachcygopt.o
416: $(CC) $(LFLAGSOPT) -o imachcygopt.exe imachcygopt.o
1.21 brouard 417: imachcygopt.o : imach.c
418: $(CC) $(CFLAGSOPT) -c -o imachcygopt.o imach.c
419:
420: imachw32.o : imach.c
421: i386-mingw32-gcc -c imach.c -o imachw32.o
422: imach.exe : imachw32.o
423: i386-mingw32-gcc -mwindows -o imach.exe -lm imachw32.o
424: i386-mingw32-strip imach.exe
425:
1.34 brouard 426: valgrind-test : imach $(TESTFILE)
427: valgrind --dsymutil=yes --leak-check=full --show-leak-kinds=all --track-origins=yes ./imach $(TESTFILE)
428: test: imach $(TESTFILE)
429: gdb ./imach $(TESTFILE)
1.21 brouard 430:
431: $(PARAM).htm: imach $(PARAM).imach data1.txt
432: ./imach $(PARAM).imach
433:
434: clean:
435: rm or$(PARAM).txt er$(PARAM).txt pijr$(PARAM).txt plr$(PARAM).txt \
436: r$(PARAM).txt tr$(PARAM).txt vpl$(PARAM).txt pr$(PARAM).txt \
437: vr$(PARAM).txt *.gif imach.exe imach.o
438:
439:
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>