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