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