Annotation of imach/src/Makefile, revision 1.58
1.58 ! brouard 1: VERSION=0.98q1
1.57 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) - Intel Software 2015
1.58 ! brouard 3: IMACHSETUPVERSION=ilc # This is for Windows only
1.57 brouard 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.57 brouard 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
1.45 brouard 25: # make _windowsonosx=1 imachMVC-setup (touch setup.iss.in) #binary should have been compiled on Windows with cl
1.51 brouard 26: # make _windowsonosx=1 imachMVC-noreg-setup
1.42 brouard 27: #
1.44 brouard 28: # Windows cross-compiled mw64
29: # make _mw64onsox=1 imachcyg-setup
30: #
1.21 brouard 31: # make _windows=1 imachcyg
1.23 lievre 32: # make _windows=1 imachcyg-setup (touch setup.iss.in)
33: # make _windows=1 imachcyg-noreg-setup
1.31 brouard 34: #
35: # make _windowsonlinux=1 imachcyg-setup (touch setup.iss.in)
36: # make _windowsonlinux=1 imachcyg-noreg-setup
37: #
1.42 brouard 38: # make _windowscl=1 imachclopt
1.40 brouard 39:
1.31 brouard 40: #
1.21 brouard 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"
1.36 brouard 44: #TESTFILE=$$HOME/Documents/Recherches/REVES/SAITO/Tokyo2014/adlc-test-mac/adecode-1.142c.imach
1.45 brouard 45: #TESTFILE=$(HOME)/Documents/Recherches/REVES/carol/carol-june2014/educadlmwt24.imach
1.55 brouard 46: #TESTFILE=$(HOME)/Documents/Recherches/REVES/Biaspar/biaspar-wopowell.imach
1.58 ! brouard 47: #TESTFILE=$(HOME)/Documents/Recherches/REVES/Biaspar/rbiaspar-098p.imach
! 48: TESTFILE=$(HOME)/Documents/Recherches/REVES/Aaron/brouard/results/COVARAITE_94/rmypar24pis1cov1-age.imach
1.34 brouard 49: #TESTFILE=$(HOME)/Documents/Recherches/REVES/SAITO/Tokyo2014/adlc-test-mac/adecode-1.142c.imach
1.35 brouard 50: #TESTFILE=$(HOME)/Documents/Recherches/REVES/SAITO/Tokyo2014/adlc_test_magei4/radlc_often.imach
1.21 brouard 51: #CC= gcc -v
1.28 brouard 52: CC=$(GCC)
53: GCC= gcc
1.21 brouard 54:
55: ifdef _macosx
56: # Mac OS/X version
1.45 brouard 57: LFLAGS= -g -lm
1.58 ! brouard 58: #CFLAGS= -g -DDEBUG
! 59: CFLAGS= -g
1.45 brouard 60: LFLAGSOPT= -O3 -lm
1.55 brouard 61: CFLAGSOPT= -O3
1.58 ! brouard 62: CP= cp
1.54 brouard 63: CROSSCOMPILATION= -DCROSS=0
1.21 brouard 64: UNIX2DOS= echo "Unix2dos "
1.34 brouard 65: DSYMUTIL= dsymutil
1.42 brouard 66: STRIP= strip
67: BINVERSION=OSX
1.21 brouard 68: # Don'know how to launch imach098.pmsp in batch to create package file imach098Panther.pkg
69: # ./createdmg.sh imach imach098panther ./imach098Panther
1.27 brouard 70: # ./createdmg.sh imach imach098leopard ./imach098Leopard
1.21 brouard 71: # and directory ./imach098Panther contains package file imach098Panther.pkg
1.27 brouard 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
1.21 brouard 74: endif
75:
76: ifdef _windows
1.29 brouard 77: CC=c:\MinGW\bin\Mingw32-gcc
78:
1.21 brouard 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
1.30 brouard 85: CP= copy
1.42 brouard 86: BINVERSION=CYGWIN
1.29 brouard 87: #SETUPCOMP= Compil32
1.21 brouard 88: ##SETUPCOMP=start /wait "C:\Program\ Files\\Compil32.exe"
1.29 brouard 89: # cygwin SETUPCOMP= "C:\Program Files\Inno Setup 4\Compil32.exe"
90: SETUPCOMP= "C:////Program Files////Inno Setup 4////Compil32.exe"
1.21 brouard 91: endif
92:
1.28 brouard 93: ifdef _windowsonlinux
94: GCC=/usr/bin/i586-pc-mingw32-gcc
95: LFLAGS= -g
96: CFLAGS= -g
1.30 brouard 97: LFLAGSOPT= -O3 -lm
1.28 brouard 98: CFLAGSOPT= -O3
1.55 brouard 99: CROSSCOMPILATION= -DCROSS=1
1.30 brouard 100: CP= cp
1.28 brouard 101: UNIX2DOS= unix2dos
102: SETUPCOMP= wine "C:////Program Files////Inno Setup 4////Compil32.exe"
1.42 brouard 103: BINVERSION=WINDOWSonLINUX
1.28 brouard 104: endif
105:
1.31 brouard 106: ifdef _windowsonosx
1.40 brouard 107: #GCC=/usr/local/i386-mingw32-4.3.0/bin/i386-mingw32-gcc
1.31 brouard 108: #GCC=/usr/local/cross-tools/bin/i686-w64-mingw32-gcc
1.38 brouard 109: 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 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
1.55 brouard 115: CROSSCOMPILATION= -DCROSS=1
1.40 brouard 116: UNIX2DOS= unix2dos
117: SETUPCOMP= ~/bin/InnoSetup5Playonmac
118: CP= cp
1.42 brouard 119: BINVERSION=WIN32onOSX
120: endif
121:
1.44 brouard 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
1.55 brouard 129: CROSSCOMPILATION= -DCROSS=1
1.44 brouard 130: UNIX2DOS= unix2dos
131: SETUPCOMP= ~/bin/InnoSetup5Playonmac
132: CP= cp
133: BINVERSION=w64-mingw32-x86-64-bin
134: endif
135:
1.42 brouard 136: ifdef _windowscl
137: rem "C:\Program Files\Microsoft Visual Studio 10.0\VC\bin\vcvas32.bat"
1.40 brouard 138: endif
139:
1.48 brouard 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
1.49 brouard 145: LFLAGS= -g -m64
1.52 brouard 146: #CFLAGSOPT= -O3 -m64 -g -std=c99 -no-prec-div idem
147: #CFLAGSOPT= -O3 -m64 -g -std=c99 -xSSSE3_ATOM 402
1.49 brouard 148: CFLAGSOPT= -O3 -m64 -g -std=c99
1.52 brouard 149: CROSSCOMPILATION= -DCROSS=0
1.48 brouard 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
1.49 brouard 153: LFLAGSOPT= -O3 -m64
1.48 brouard 154: UNIX2DOS= unix2dos
155: SETUPCOMP= ~/bin/InnoSetup5Playonmac
156: CP= cp
157: BINVERSION=osx-intel-x86-64-bin
1.49 brouard 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
1.52 brouard 167: CROSSCOMPILATION= -DCROSS=0
1.49 brouard 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
1.48 brouard 177: endif
178:
1.40 brouard 179: ifdef _linux64onosx
1.51 brouard 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
1.40 brouard 182: LFLAGS= -g
183: CFLAGS= -g
1.51 brouard 184: CROSSCOMPILATION= -DCROSS=1
1.40 brouard 185: LFLAGSOPT= -O3 -lm -s
186: CFLAGSOPT= -O3
1.51 brouard 187: TAR= /sw/bin/gnutar
1.40 brouard 188: UNIX2DOS= unix2dos
189: SETUPCOMP= ~/bin/InnoSetup5Playonmac
190: CP= cp
1.42 brouard 191: BINVERSION=linux-x86-64-bin
1.40 brouard 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
1.51 brouard 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
1.31 brouard 199: LFLAGS= -g
200: CFLAGS= -g
1.40 brouard 201: LFLAGSOPT= -O3 -s -lm
1.31 brouard 202: CFLAGSOPT= -O3
1.55 brouard 203: CROSSCOMPILATION= -DCROSS=1
1.51 brouard 204: TAR= /sw/bin/gnutar
1.31 brouard 205: UNIX2DOS= unix2dos
206: SETUPCOMP= ~/bin/InnoSetup5Playonmac
1.32 brouard 207: CP= cp
1.42 brouard 208: BINVERSION=linux-i586-bin
1.31 brouard 209: endif
210:
1.21 brouard 211: ifdef _linux
1.26 brouard 212: #CFLAGS= -g -DUNIX -DDEBUGHESS
1.56 brouard 213: #CFLAGS= -g -DDEBUG -DFIXMNBRAK
1.58 ! brouard 214: #CFLAGS= -g -DDEBUG
! 215: CFLAGS= -g
1.42 brouard 216: LFLAGS= -g -lm
1.30 brouard 217: IGSL= -I/usr/include/gsl
1.25 brouard 218: LGSL= -lgsl -lgslcblas
1.46 brouard 219: INLOPT= -I/usr/local/include
220: LNLOPT= -lm -L/usr/local/lib -lnlopt
1.47 brouard 221: CFLAGSOPT= -O3 -g
222: LFLAGSOPT= -O3 -g -lm
1.55 brouard 223: CROSSCOMPILATION= -DCROSS=0
1.21 brouard 224: UNIX2DOS= unix2dos
225: SETUPCOMP= wine "C:////Program Files////Inno Setup 4////Compil32.exe"
1.42 brouard 226: BINVERSION=LINUXnative
1.50 brouard 227: CP= cp
1.21 brouard 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)
1.57 brouard 240: APPCOMPILATIONMODE=$(IMACHSETUPVERSION)
241: GNUPLOTVERSION=4.6
1.21 brouard 242: LICENSE=Copying
243: TMPSETUPEXE=imach-$(VERSION)-$(IMACHSETUPVERSION)-setup.exe
1.31 brouard 244: TMPNOREGSETUPEXE=imach-$(VERSION)-$(IMACHSETUPVERSION)-noreg-setup.exe
1.21 brouard 245: LICENSEFILE=$(LICENSE)
246: INFOBEFOREFILE=README.txt
247:
1.31 brouard 248: setup.iss: setup.iss.in
1.21 brouard 249: $(SED) -e "s/@APPNAME@/$(APPNAME)/g; \
250: s/@NOTINNOREG@//g; \
251: s/@NOREG@//g; \
252: s/@IMACHSETUPVERSION@/$(IMACHSETUPVERSION)/g; \
1.57 brouard 253: s/@APPCOMPILATIONMODE@/$(APPCOMPILATIONMODE)/g; \
1.21 brouard 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;" \
1.31 brouard 262: setup.iss.in > setup.iss
1.21 brouard 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)
1.29 brouard 278: # $(UNIX2DOS) $(TMPNOREGSETUPSCRIPT)
1.21 brouard 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
1.38 brouard 289: touch setup.iss.in
1.30 brouard 290: $(CP) imachcygopt.exe imach.exe
1.42 brouard 291: $(CP) imachcygopt.exe imach$(VERSION)-$(BINVERSION).exe
1.31 brouard 292: $(SETUPCOMP) /cc setup.iss
293: cp Output/$(TMPSETUPEXE) imachcyg-setup
1.21 brouard 294:
295: # imachcyg-noreg-setup : imachcygopt imachcygopt.o setup.iss.in noreg-setup.iss $(TMPNOREGSETUPEXE)
296: imachcyg-noreg-setup: imachcygopt.exe noreg-setup.iss
1.38 brouard 297: touch setup.iss.in
1.30 brouard 298: $(CP) imachcygopt.exe imach.exe
1.42 brouard 299: $(CP) imachcygopt.exe imach$(VERSION)-$(BINVERSION).exe
1.21 brouard 300: $(SETUPCOMP) /cc $(TMPNOREGSETUPSCRIPT)
1.31 brouard 301: cp Output/$(TMPNOREGSETUPEXE) imachcyg-noreg-setup
1.21 brouard 302:
1.57 brouard 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
1.51 brouard 305: pwd
1.57 brouard 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
1.45 brouard 312: $(SETUPCOMP) /cc setup.iss
313: $(CP) Output/$(TMPSETUPEXE) imachILC64-setup
314:
1.57 brouard 315: imachILC64-noreg-setup: IMaCh-ilc64-$(VERSION).exe noreg-setup.iss
1.45 brouard 316: touch setup.iss.in
317: $(SETUPCOMP) /cc $(TMPNOREGSETUPSCRIPT)
318: $(CP) Output/$(TMPSETUPEXE) imachILC64-noreg-setup
319:
1.57 brouard 320: imachILC32-setup: IMaCh-ilc32-$(VERSION).exe setup.iss
1.51 brouard 321: touch setup.iss.in
1.57 brouard 322: $(CP) IMaCh-ilc32-$(VERSION).exe imach.exe
1.51 brouard 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:
1.42 brouard 332: imachMVC-setup: imachMVC.exe setup.iss
333: touch setup.iss.in
334: $(CP) imachMVC.exe imach.exe
335: $(SETUPCOMP) /cc setup.iss
1.58 ! brouard 336: $(CP) Output/$(TMPSETUPEXE) imachMVC-setup
1.42 brouard 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:
1.25 brouard 345: simach : simach.o
346: $(CC) $(LFLAGS) $(LGSL) -o simach simach.o
347: simach.o : simach.c
1.30 brouard 348: $(CC) $(CFLAGS) -DGSL -c simach.c
1.25 brouard 349:
1.56 brouard 350: imachtest: imachtest.o
351: $(CC) $(LFLAGS) -o imachtest imachtest.o
352: ifdef _macosx
353: $(DSYMUTIL) imachtest
354: endif
355:
356: imach: imach.o
1.21 brouard 357: $(CC) $(LFLAGS) -o imach imach.o
1.34 brouard 358: ifdef _macosx
359: $(DSYMUTIL) imach
360: endif
361:
1.21 brouard 362: imach.o : imach.c
1.58 ! brouard 363: $(CC) $(CFLAGS) $(CROSSCOMPILATION) -c imach.c
! 364: # $(CC) $(CFLAGS) $(CROSSCOMPILATION) -DDEBUGBRENT -c imach.c
1.56 brouard 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
1.32 brouard 370:
1.42 brouard 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:
1.32 brouard 375: imach097b : imach097b.o
376: $(CC) $(LFLAGS) -o imach097b imach097b.o
377: imach097b.o : imach097b.c
378: $(CC) $(CFLAGS) -DPOWELL -c imach097b.c
1.30 brouard 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
1.46 brouard 387: $(CC) -o imachgsl imach.o $(LFLAGS) $(LGSL)
1.30 brouard 388: imachgsl.o : imach.c
389: $(CC) $(CFLAGS) -DGSL $(IGSL) -c imach.c
1.21 brouard 390:
1.47 brouard 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:
1.46 brouard 401:
1.21 brouard 402: imachopt : imachopt.o
403: $(CC) $(LFLAGSOPT) -o imachopt imachopt.o
1.58 ! brouard 404: # ln -f imachopt imach
1.49 brouard 405: $(CP) imachopt Output/imachopt$(VERSION)-$(BINVERSION)
1.50 brouard 406: $(CP) -f imach ../bin
1.49 brouard 407: ifdef _intel64onosx
408: $(CP) imachopt Output/imachopt$(VERSION)-$(BINVERSION)
409: endif
1.42 brouard 410: ifdef _macosx
411: $(STRIP) imach
412: endif
413: ifdef _linux32onosx
1.51 brouard 414: (cd .. && $(TAR) jcvf src/Output/imach-Linux-$(VERSION)-$(BINVERSION).tar.bz2 bin html/doc/biaspar.imach html/doc/data1.txt)
1.42 brouard 415: endif
416: ifdef _linux64onosx
1.51 brouard 417: (cd .. && $(TAR) jcvf src/Output/imach-Linux-$(VERSION)-$(BINVERSION).tar.bz2 bin html/doc/biaspar.imach html/doc/data1.txt)
1.42 brouard 418: endif
419:
1.48 brouard 420: imachopt.o : imach.c
1.51 brouard 421: $(CC) $(CFLAGSOPT) $(CROSSCOMPILATION) -o imachopt.o -c imach.c
1.45 brouard 422: # $(CC) $(CFLAGSOPT) -DPOWELL -o imachopt.o -c imach.c
1.21 brouard 423:
1.49 brouard 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
1.36 brouard 429: imachdmg : imachopt.o create-dmg applet IMaChInfo.plist.in IMaChPkgInfo.in IMaCh.icns main.scpt.in IMaCh-ecrandemarrage.rsrc TXT.rtf
1.27 brouard 430: $(CC) $(LFLAGSOPT) -o imach imachopt.o
1.37 brouard 431: #hdiutil detach /Volumes/IMaCh\ $(VERSION)
1.36 brouard 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
1.38 brouard 440: mkdir -p imach$(VERSION).app/Contents/Resources/html
1.36 brouard 441: cp imach imach$(VERSION).app/Contents/Resources/bin
1.37 brouard 442: cp gnuplot_bin/gnuplot_2_6_5_OSX imach$(VERSION).app/Contents/Resources/bin/gnuplot
1.36 brouard 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
1.38 brouard 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
1.36 brouard 454: rm -f imach$(VERSION).dmg
1.38 brouard 455: ./createdmg3.sh --volname "IMaCh $(VERSION)" imach$(VERSION).dmg imach$(VERSION)
456: mv imach$(VERSION).dmg Output/
1.36 brouard 457: # ./create-dmg --volname "IMaCh $(VERSION)" imach$(VERSION).dmg imach$(VERSION).app
1.38 brouard 458: # ./createdmg2.sh --volname "IMaCh $(VERSION)" imach$(VERSION).dmg imach$(VERSION)
1.27 brouard 459:
1.58 ! brouard 460: md5:
! 461: ls Output/* | xargs md5sum
1.38 brouard 462: upload:
463: rsync -v Output/* brouard@henry.ined.fr:/home/euroreves/html/imach/
1.27 brouard 464:
1.44 brouard 465: imachcyg : imachcyg.o
466: $(CC) $(LFLAGS) -o imach imachcyg.o
1.21 brouard 467: imachcyg.o : imach.c
468: $(CC) $(CFLAGS) -c -o imachcyg.o imach.c
1.44 brouard 469: imachcygopt.exe : imachcygopt.o
470: $(CC) $(LFLAGSOPT) -o imachcygopt.exe imachcygopt.o
1.21 brouard 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:
1.34 brouard 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)
1.21 brouard 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>