Annotation of imach/src/Makefile, revision 1.82
1.63 brouard 1: #Version has to be set in ../CMakeLists.txt too.
1.72 brouard 2: #VERSION=0.98r2
3: #VERSION=$(shell echo `grep IMACH_VERSION__ version.h | echo 'titi'`)
4: VERSION=$(shell echo `grep IMACH_VERSION__ version.h | awk 'BEGIN { FS = "[ \t\n\"]+" } { print $$3 }'`)
5: OSTYPE = $(shell echo $$OSTYPE)
1.63 brouard 6: # DRIVEG is for VirtualBox Windows 64bit
1.70 brouard 7: DRIVEG=f:
1.63 brouard 8: #DIRG is the corresponding build directory for Virtual Windows
9: DIRG=\imach\cvs\imach\build
1.81 brouard 10: COPYRIGHT=Copyright (C) 2002-2016 INED-EUROREVES-Institut de longevite-Japan Society for the Promotion of Science (Grant-in-Aid for Scientific Research 25293121) - Intel Software 2016-18
1.62 brouard 11: IMACHSETUPVERSION=icl
1.60 brouard 12: # This is for Windows only
1.57 brouard 13: #IMACHSETUPVERSION=mvc
1.21 brouard 14:
1.40 brouard 15: # Linux
1.21 brouard 16: # make _linux=1 imachopt
17: # make _linux=1 imach
1.77 brouard 18: # make _linux=1 imachrpm
19: # cd to build/gnulinux ; cmake ../..; cpack -D CPACK_RPM_PACKAGE_DEBUG=1 -D CPACK_RPM_SPEC_INSTALL_POST="/bin/true" -G RPM
1.40 brouard 20: # make _linux32onosx=1 imachopt
21: # make _linux64onosx=1 imachopt
22:
1.42 brouard 23: # OS/X
1.61 brouard 24: # make _macosx=1 imachdmg
1.48 brouard 25: # make _intel64onosx=1 imachopt
1.49 brouard 26: # make _intel32onosx=1 imachopt
27: # make _intelUNBonosx=1 imachdmg # Not implemented (not useful)
1.27 brouard 28: # make _macosx=1 imach
1.49 brouard 29: # make _macosx=1 imachopt
1.32 brouard 30: # 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 31:
32: # Windows
1.62 brouard 33: # make _windowsonosx=1 imachICL-setup (touch setup.iss.in) #binary should have been compiled on Windows with Intel
1.45 brouard 34: # make _windowsonosx=1 imachMVC-setup (touch setup.iss.in) #binary should have been compiled on Windows with cl
1.51 brouard 35: # make _windowsonosx=1 imachMVC-noreg-setup
1.42 brouard 36: #
1.44 brouard 37: # Windows cross-compiled mw64
38: # make _mw64onsox=1 imachcyg-setup
39: #
1.21 brouard 40: # make _windows=1 imachcyg
1.23 lievre 41: # make _windows=1 imachcyg-setup (touch setup.iss.in)
42: # make _windows=1 imachcyg-noreg-setup
1.31 brouard 43: #
44: # make _windowsonlinux=1 imachcyg-setup (touch setup.iss.in)
45: # make _windowsonlinux=1 imachcyg-noreg-setup
46: #
1.42 brouard 47: # make _windowscl=1 imachclopt
1.40 brouard 48:
1.31 brouard 49: #
1.21 brouard 50: # sortie dans Output/setup.exe
51: # ln -s /cygdrive/c/Program\ Files/Inno\ Setup\ 4/Compil32.exe /usr/local/bin/Compil32
52: ##SETUPCOMP= "C:\Program Files\Inno Setup 3\Compil32.exe"
1.36 brouard 53: #TESTFILE=$$HOME/Documents/Recherches/REVES/SAITO/Tokyo2014/adlc-test-mac/adecode-1.142c.imach
1.45 brouard 54: #TESTFILE=$(HOME)/Documents/Recherches/REVES/carol/carol-june2014/educadlmwt24.imach
1.55 brouard 55: #TESTFILE=$(HOME)/Documents/Recherches/REVES/Biaspar/biaspar-wopowell.imach
1.58 brouard 56: #TESTFILE=$(HOME)/Documents/Recherches/REVES/Biaspar/rbiaspar-098p.imach
1.64 brouard 57: #TESTFILE=$(HOME)/Documents/Recherches/REVES/Aaron/brouard/results/COVARAITE_94/rmypar24pis1cov1-age.imach
1.71 brouard 58: #TESTFILE=$(HOME)/Documents/Recherches/REVES/Flavia/rADL0w_V1V2b.imach
1.76 brouard 59: #TESTFILE=$(HOME)/Documents/Recherches/REVES/Yao/rrtest3b.imach
1.80 brouard 60: #TESTFILE=$(HOME)//Documents/Recherches/REVES/Flavia/Flavia-nov-2015/rtest3c.imach
61: #TESTFILE=/mnt/tugault/Documents/Recherches/REVES/Yao/rhrs-yao-test-back.imach
62: #TESTFILE=/mnt/tugault/Documents/Recherches/REVES/Flavia/Flavia-nov-2015/rtest3bb.imach
63: #TESTFILE=$(HOME)/Documents/Recherches/REVES/Flavia/Flavia-nov-2015/rtest3bb.imach
1.81 brouard 64: #TESTFILE=$(HOME)/Documents/Recherches/REVES/SAITO/saito-12-feb-2016/rHRS_relig_import_M_NB.imach
65: #TESTFILE=$(HOME)/Documents/Recherches/REVES/Biaspar/biaspar-0.98r-powellf1f3linmnb-zeroes.imach
66: #TESTFILE=$(HOME)/Documents/Recherches/REVES/Yao/Yao-19-jan-2016/r2V4V3V5.imach
67: #TESTFILE=$(HOME)/Documents/Recherches/REVES/Yao/Yao-19-jan-2016/r2b4V4V3V5.imach
68: TESTFILE=$(HOME)/Documents/Recherches/REVES/Yao/Yao-19-jan-2016/Vn1b.imach
69: #TESTFILE=$(HOME)/Documents/Recherches/REVES/Yao/Yao-19-jan-2016/rrrV4V3V5-suite6.imach
1.34 brouard 70: #TESTFILE=$(HOME)/Documents/Recherches/REVES/SAITO/Tokyo2014/adlc-test-mac/adecode-1.142c.imach
1.35 brouard 71: #TESTFILE=$(HOME)/Documents/Recherches/REVES/SAITO/Tokyo2014/adlc_test_magei4/radlc_often.imach
1.21 brouard 72: #CC= gcc -v
1.28 brouard 73: CC=$(GCC)
74: GCC= gcc
1.21 brouard 75:
76: ifdef _macosx
77: # Mac OS/X version
1.45 brouard 78: LFLAGS= -g -lm
1.58 brouard 79: #CFLAGS= -g -DDEBUG
80: CFLAGS= -g
1.45 brouard 81: LFLAGSOPT= -O3 -lm
1.55 brouard 82: CFLAGSOPT= -O3
1.58 brouard 83: CP= cp
1.54 brouard 84: CROSSCOMPILATION= -DCROSS=0
1.21 brouard 85: UNIX2DOS= echo "Unix2dos "
1.34 brouard 86: DSYMUTIL= dsymutil
1.42 brouard 87: STRIP= strip
88: BINVERSION=OSX
1.21 brouard 89: # Don'know how to launch imach098.pmsp in batch to create package file imach098Panther.pkg
90: # ./createdmg.sh imach imach098panther ./imach098Panther
1.27 brouard 91: # ./createdmg.sh imach imach098leopard ./imach098Leopard
1.21 brouard 92: # and directory ./imach098Panther contains package file imach098Panther.pkg
1.27 brouard 93: #./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/
94: # ./create-dmg --volname "IMaCh 0.98j" imach098j.dmg imach098Leopard
1.21 brouard 95: endif
96:
97: ifdef _windows
1.29 brouard 98: CC=c:\MinGW\bin\Mingw32-gcc
99:
1.21 brouard 100: # Windows cygwin version
101: LFLAGS= -g -mno-cygwin
102: CFLAGS= -g -mno-cygwin
103: LFLAGSOPT= -O3 -mno-cygwin
104: CFLAGSOPT= -O3 -mno-cygwin
105: UNIX2DOS= unix2dos
1.30 brouard 106: CP= copy
1.42 brouard 107: BINVERSION=CYGWIN
1.29 brouard 108: #SETUPCOMP= Compil32
1.21 brouard 109: ##SETUPCOMP=start /wait "C:\Program\ Files\\Compil32.exe"
1.29 brouard 110: # cygwin SETUPCOMP= "C:\Program Files\Inno Setup 4\Compil32.exe"
111: SETUPCOMP= "C:////Program Files////Inno Setup 4////Compil32.exe"
1.21 brouard 112: endif
113:
1.28 brouard 114: ifdef _windowsonlinux
115: GCC=/usr/bin/i586-pc-mingw32-gcc
116: LFLAGS= -g
117: CFLAGS= -g
1.30 brouard 118: LFLAGSOPT= -O3 -lm
1.28 brouard 119: CFLAGSOPT= -O3
1.55 brouard 120: CROSSCOMPILATION= -DCROSS=1
1.30 brouard 121: CP= cp
1.28 brouard 122: UNIX2DOS= unix2dos
123: SETUPCOMP= wine "C:////Program Files////Inno Setup 4////Compil32.exe"
1.42 brouard 124: BINVERSION=WINDOWSonLINUX
1.28 brouard 125: endif
126:
1.31 brouard 127: ifdef _windowsonosx
1.40 brouard 128: #GCC=/usr/local/i386-mingw32-4.3.0/bin/i386-mingw32-gcc
1.31 brouard 129: #GCC=/usr/local/cross-tools/bin/i686-w64-mingw32-gcc
1.38 brouard 130: 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 131: STRIP=/usr/local/gcc-4.8.0-qt-4.8.4-for-mingw32/win32-gcc/bin/i586-mingw32-strip
132: LFLAGS= -g
133: CFLAGS= -g
134: LFLAGSOPT= -O3 -s
135: CFLAGSOPT= -O3
1.55 brouard 136: CROSSCOMPILATION= -DCROSS=1
1.40 brouard 137: UNIX2DOS= unix2dos
138: SETUPCOMP= ~/bin/InnoSetup5Playonmac
139: CP= cp
1.42 brouard 140: BINVERSION=WIN32onOSX
141: endif
142:
1.44 brouard 143: ifdef _mw64onosx
144: GCC=/usr/local/mingw-w64-bin_i686-darwin_20130622/bin/x86_64-w64-mingw32-gcc-4.9.0
145: STRIP=/usr/local/mingw-w64-bin_i686-darwin_20130622/bin/x86_64-w64-mingw32-strip
146: LFLAGS= -g
147: CFLAGS= -g
148: LFLAGSOPT= -O3 -lm -s
149: CFLAGSOPT= -O3
1.55 brouard 150: CROSSCOMPILATION= -DCROSS=1
1.44 brouard 151: UNIX2DOS= unix2dos
152: SETUPCOMP= ~/bin/InnoSetup5Playonmac
153: CP= cp
154: BINVERSION=w64-mingw32-x86-64-bin
155: endif
156:
1.42 brouard 157: ifdef _windowscl
158: rem "C:\Program Files\Microsoft Visual Studio 10.0\VC\bin\vcvas32.bat"
1.40 brouard 159: endif
160:
1.48 brouard 161: # make _intel64onosx=1 imachopt
162: #source /opt/intel/bin/iccvars.sh intel64
163: ifdef _intel64onosx
164: GCC=/opt/intel/bin/icc
165: CFLAGS= -m64 -g -std=c99
1.49 brouard 166: LFLAGS= -g -m64
1.52 brouard 167: #CFLAGSOPT= -O3 -m64 -g -std=c99 -no-prec-div idem
168: #CFLAGSOPT= -O3 -m64 -g -std=c99 -xSSSE3_ATOM 402
1.49 brouard 169: CFLAGSOPT= -O3 -m64 -g -std=c99
1.52 brouard 170: CROSSCOMPILATION= -DCROSS=0
1.48 brouard 171: IGNORE :=$(shell bash -c "source /opt/intel/bin/iccvars.sh intel64; env | sed 's/=/:=/' | sed 's/^/export /' > makeenv")
172: include makeenv
173: #lipo -create -arch i386 HelloWorld_32 -arch x86_64 HelloWorld_64 -output HelloWorld
1.49 brouard 174: LFLAGSOPT= -O3 -m64
1.48 brouard 175: UNIX2DOS= unix2dos
176: SETUPCOMP= ~/bin/InnoSetup5Playonmac
177: CP= cp
178: BINVERSION=osx-intel-x86-64-bin
1.49 brouard 179: #imach_64$(VERSION)
180: #
181: endif
182:
183: ifdef _intel32onosx
184: GCC=/opt/intel/bin/icc
185: CFLAGS= -m32 -g -std=c99
186: LFLAGS= -g -m32
187: CFLAGSOPT= -O3 -m32 -g -std=c99
1.52 brouard 188: CROSSCOMPILATION= -DCROSS=0
1.49 brouard 189: IGNORE :=$(shell bash -c "source /opt/intel/bin/iccvars.sh ia32; env | sed 's/=/:=/' | sed 's/^/export /' > makeenv")
190: include makeenv
191: #lipo -create -arch i386 HelloWorld_32 -arch x86_64 HelloWorld_64 -output HelloWorld
192: #lipo -create -arch i386 imach_32$(VERSION) -arch x86_64 imach_64$(VERSION) -output imach$(VERSION)
193: LFLAGSOPT= -O3 -m32
194: UNIX2DOS= unix2dos
195: SETUPCOMP= ~/bin/InnoSetup5Playonmac
196: CP= cp
197: BINVERSION=osx-intel-ia32-bin
1.48 brouard 198: endif
199:
1.40 brouard 200: ifdef _linux64onosx
1.51 brouard 201: GCC=/usr/localold/gcc-4.8.1-for-linux64/bin/x86_64-pc-linux-gcc
202: STRIP=/usr/localold/gcc-4.8.1-for-linux64/bin/x86_64-pc-linux-strip
1.40 brouard 203: LFLAGS= -g
204: CFLAGS= -g
1.51 brouard 205: CROSSCOMPILATION= -DCROSS=1
1.40 brouard 206: LFLAGSOPT= -O3 -lm -s
207: CFLAGSOPT= -O3
1.51 brouard 208: TAR= /sw/bin/gnutar
1.40 brouard 209: UNIX2DOS= unix2dos
210: SETUPCOMP= ~/bin/InnoSetup5Playonmac
211: CP= cp
1.42 brouard 212: BINVERSION=linux-x86-64-bin
1.40 brouard 213: endif
214:
215: ifdef _linux32onosx
216: #GCC=/usr/local/i386-mingw32-4.3.0/bin/i386-mingw32-gcc
217: #GCC=/usr/local/cross-tools/bin/i686-w64-mingw32-gcc
1.51 brouard 218: GCC=/usr/localold/gcc-4.8.1-for-linux32/bin/i586-pc-linux-gcc
219: STRIP=/usr/localold/gcc-4.8.1-for-linux32/bin/i586-pc-linux-strip
1.31 brouard 220: LFLAGS= -g
221: CFLAGS= -g
1.40 brouard 222: LFLAGSOPT= -O3 -s -lm
1.31 brouard 223: CFLAGSOPT= -O3
1.55 brouard 224: CROSSCOMPILATION= -DCROSS=1
1.51 brouard 225: TAR= /sw/bin/gnutar
1.31 brouard 226: UNIX2DOS= unix2dos
227: SETUPCOMP= ~/bin/InnoSetup5Playonmac
1.32 brouard 228: CP= cp
1.42 brouard 229: BINVERSION=linux-i586-bin
1.31 brouard 230: endif
231:
1.21 brouard 232: ifdef _linux
1.26 brouard 233: #CFLAGS= -g -DUNIX -DDEBUGHESS
1.56 brouard 234: #CFLAGS= -g -DDEBUG -DFIXMNBRAK
1.58 brouard 235: #CFLAGS= -g -DDEBUG
236: CFLAGS= -g
1.42 brouard 237: LFLAGS= -g -lm
1.30 brouard 238: IGSL= -I/usr/include/gsl
1.25 brouard 239: LGSL= -lgsl -lgslcblas
1.46 brouard 240: INLOPT= -I/usr/local/include
241: LNLOPT= -lm -L/usr/local/lib -lnlopt
1.47 brouard 242: CFLAGSOPT= -O3 -g
243: LFLAGSOPT= -O3 -g -lm
1.55 brouard 244: CROSSCOMPILATION= -DCROSS=0
1.21 brouard 245: UNIX2DOS= unix2dos
246: SETUPCOMP= wine "C:////Program Files////Inno Setup 4////Compil32.exe"
1.42 brouard 247: BINVERSION=LINUXnative
1.50 brouard 248: CP= cp
1.21 brouard 249: endif
250:
251: SED= sed
252: PACKAGE=imach
253: PROGRAM=IMaCh
254:
255:
256: TMPSETUPSCRIPT=setup.iss
257: TMPNOREGSETUPSCRIPT=noreg-setup.iss
258: TMPSCRIPTIN=setup.iss.in
259: APPLICATION=IMaCh
260: APPNAME=$(APPLICATION)-$(VERSION)
1.57 brouard 261: APPCOMPILATIONMODE=$(IMACHSETUPVERSION)
1.73 brouard 262: GNUPLOTVERSION=5.1
1.21 brouard 263: LICENSE=Copying
264: TMPSETUPEXE=imach-$(VERSION)-$(IMACHSETUPVERSION)-setup.exe
1.31 brouard 265: TMPNOREGSETUPEXE=imach-$(VERSION)-$(IMACHSETUPVERSION)-noreg-setup.exe
1.21 brouard 266: LICENSEFILE=$(LICENSE)
267: INFOBEFOREFILE=README.txt
268:
1.31 brouard 269: setup.iss: setup.iss.in
1.21 brouard 270: $(SED) -e "s/@APPNAME@/$(APPNAME)/g; \
271: s/@NOTINNOREG@//g; \
272: s/@NOREG@//g; \
273: s/@IMACHSETUPVERSION@/$(IMACHSETUPVERSION)/g; \
1.57 brouard 274: s/@APPCOMPILATIONMODE@/$(APPCOMPILATIONMODE)/g; \
1.21 brouard 275: s/@VERSION@/$(VERSION)/g; \
276: s/@GNUPLOTVERSION@/$(GNUPLOTVERSION)/g; \
277: s/@INFOBEFOREFILE@/$(INFOBEFOREFILE)/g; \
278: s/@LICENSEFILE@/$(LICENSEFILE)/g; \
279: s/@PACKAGE@/$(PACKAGE)/g; \
280: s/@DICTLANG@/$(DICTLANG)/g; \
281: s/@VERMAJOR@/$(VERMAJOR)/g; \
282: s/@COPYRIGHT@/$(COPYRIGHT)/g;" \
1.31 brouard 283: setup.iss.in > setup.iss
1.21 brouard 284:
285: $(TMPNOREGSETUPSCRIPT): $(TMPSCRIPTIN)
286: $(SED) -e "s/@APPNAME@/$(APPNAME)/g; \
287: s/@NOTINNOREG@/\\;/g; \
288: s/@NOREG@/noreg-/g; \
289: s/@IMACHSETUPVERSION@/$(IMACHSETUPVERSION)/g; \
290: s/@VERSION@/$(VERSION)/g; \
291: s/@GNUPLOTVERSION@/$(GNUPLOTVERSION)/g; \
292: s/@INFOBEFOREFILE@/$(INFOBEFOREFILE)/g; \
293: s/@LICENSEFILE@/$(LICENSEFILE)/g; \
294: s/@PACKAGE@/$(PACKAGE)/g; \
295: s/@DICTLANG@/$(DICTLANG)/g; \
296: s/@VERMAJOR@/$(VERMAJOR)/g; \
297: s/@COPYRIGHT@/$(COPYRIGHT)/g;" \
298: $(TMPSCRIPTIN) > $(TMPNOREGSETUPSCRIPT)
1.29 brouard 299: # $(UNIX2DOS) $(TMPNOREGSETUPSCRIPT)
1.21 brouard 300:
301: $(TMPSETUPEXE): $(TMPSETUPSCRIPT)
302: $(SETUPCOMP) /cc $(TMPSETUPSCRIPT)
303:
1.59 brouard 304: #$(TMPNOREGSETUPEXE): $(TMPNOREGSETUPSCRIPT)
305: # $(SETUPCOMP) /cc $(TMPNOREGSETUPSCRIPT)
1.21 brouard 306:
307: PARAM=mypar1
308:
309: imachcyg-setup: imachcygopt.exe setup.iss
1.38 brouard 310: touch setup.iss.in
1.30 brouard 311: $(CP) imachcygopt.exe imach.exe
1.42 brouard 312: $(CP) imachcygopt.exe imach$(VERSION)-$(BINVERSION).exe
1.31 brouard 313: $(SETUPCOMP) /cc setup.iss
314: cp Output/$(TMPSETUPEXE) imachcyg-setup
1.21 brouard 315:
316: # imachcyg-noreg-setup : imachcygopt imachcygopt.o setup.iss.in noreg-setup.iss $(TMPNOREGSETUPEXE)
317: imachcyg-noreg-setup: imachcygopt.exe noreg-setup.iss
1.38 brouard 318: touch setup.iss.in
1.30 brouard 319: $(CP) imachcygopt.exe imach.exe
1.42 brouard 320: $(CP) imachcygopt.exe imach$(VERSION)-$(BINVERSION).exe
1.21 brouard 321: $(SETUPCOMP) /cc $(TMPNOREGSETUPSCRIPT)
1.31 brouard 322: cp Output/$(TMPNOREGSETUPEXE) imachcyg-noreg-setup
1.62 brouard 323: # ICL compiler 64
324: imachICL-build: imach.c
325: icl /GS /W3 /Zc:wchar_t /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "UNICODE" /Qipo /Zc:forScope /MT imach.c
326: #/GS /W3 /Gy /Zc:wchar_t /Zi /O2 /Fd"x64\Release\vc120.pdb" /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_LIB" /D "_UNICODE" /D "UNICODE" /Qipo /Zc:forScope /Oi /MT /Fa"x64\Release\" /EHsc /nologo /Fo"x64\Release\" /Qprof-dir "x64\Release\" /Fp"x64\Release\IMaCh-icl-x64-0.98q2.pch"
327: # /Users/nbrouard/Documents/imach/imach-gui/build/icl64/Release/imach.exe
1.57 brouard 328: # both 32 and 64 executables should have been built on Windows with Intel compiler.
1.75 brouard 329:
1.73 brouard 330: imachICL-setup: ../build/icl64/Release/IMaCh-$(VERSION).exe ../build/icl32/Release/IMaCh-$(VERSION).exe setup.iss ../distributions/windows/mybuildicl64.bat ../distributions/windows/mybuildicl32.bat setup.iss
1.51 brouard 331: pwd
1.63 brouard 332: touch setup.iss.in
1.57 brouard 333: $(SETUPCOMP) /cc setup.iss
1.62 brouard 334: $(CP) Output/$(TMPSETUPEXE) imachICL-setup
1.57 brouard 335:
1.62 brouard 336: # imachICL64-setup: IMaCh-icl64-$(VERSION).exe setup.iss
337: # pwd
338: # $(CP) IMaCh-icl64-$(VERSION).exe imach.exe
339: # $(SETUPCOMP) /cc setup.iss
340: # $(CP) Output/$(TMPSETUPEXE) imachICL64-setup
1.45 brouard 341:
1.62 brouard 342: imachICL64-noreg-setup: IMaCh-icl64-$(VERSION).exe noreg-setup.iss
1.45 brouard 343: touch setup.iss.in
344: $(SETUPCOMP) /cc $(TMPNOREGSETUPSCRIPT)
1.62 brouard 345: $(CP) Output/$(TMPSETUPEXE) imachICL64-noreg-setup
346:
1.63 brouard 347: ../build/icl64/Release/IMaCh-$(VERSION).exe: imach.c ../distributions/windows/mybuildicl64.bat
1.76 brouard 348: rm -rf ../build/icl64 && mkdir ../build/icl64
1.63 brouard 349: cp ../distributions/windows/mybuildicl64.bat ../build/icl64/
1.62 brouard 350: cd ../build/icl64
1.81 brouard 351: VBoxManage --nologo guestcontrol "Windows7-64" run --exe "C:\Windows\System32\cmd.exe" \
352: --username brouard --verbose --wait-stdout --wait-stderr -- "C:\Windows\SysWOW64\cmd.exe" "/c" "$(DRIVEG)$(DIRG)\icl64\mybuildicl64.bat" "$(VERSION)" "$(DRIVEG)" "$(DIRG)"
1.76 brouard 353:
354: # VBoxManage --nologo guestcontrol "Windows7-64" run --exe "c:\\windows\\system32\\ipconfig.exe" --username brouard --verbose --wait-stdout --wait-stderr -- "/all"
355: # VBoxManage --nologo guestcontrol "Windows7-64" run --exe "C:\Windows\SysWOW64\cmd.exe" --username brouard --verbose --wait-stdout --wait-stderr -- "/c" "DIR"
356:
1.75 brouard 357: # VBoxManage --nologo guestcontrol "Windows7-64" run --exe "C:\Windows\SysWOW64\cmd.exe" --username brouard --verbose --wait-stdout --wait-stderr -- "/c" "DIR"
358: # VBoxManage --nologo guestcontrol "Windows7-64" run --exe "c:\\windows\\system32\\ipconfig.exe" --username brouard --verbose --wait-stdout --wait-stderr -- "/all"
359: #VBoxManage --nologo guestcontrol "Windows7-64" run --exe "C:\Windows\SysWOW64\cmd.exe" \
1.76 brouard 360: # --username brouard --verbose --wait-stdout --wait-stderr -- "/c" "$(DRIVEG)$(DIRG)\icl64\mybuildicl64.bat" "$(VERSION)" "$(DRIVEG)" "$(DIRG)"
1.62 brouard 361:
1.63 brouard 362: ../build/icl32/Release/IMaCh-$(VERSION).exe: imach.c ../distributions/windows/mybuildicl32.bat
1.76 brouard 363: rm -rf ../build/icl32 && mkdir -p ../build/icl32
1.63 brouard 364: cp ../distributions/windows/mybuildicl32.bat ../build/icl32/
1.62 brouard 365: cd ../build/icl32
1.81 brouard 366: VBoxManage --nologo guestcontrol "Windows7-64" run --exe "C:\Windows\System32\cmd.exe" \
367: --username brouard --verbose --wait-stdout -- "C:\Windows\SysWOW64\cmd.exe" "/c" "$(DRIVEG)$(DIRG)\icl32\mybuildicl32.bat" "$(VERSION)" "$(DRIVEG)" "$(DIRG)"
1.75 brouard 368:
369: #VBoxManage --nologo guestcontrol "Windows7-64" run --exe "C:\Windows\SysWOW64\cmd.exe" \
1.76 brouard 370: # --username brouard --verbose --wait-stdout -- "/c" "$(DRIVEG)$(DIRG)\icl32\mybuildicl32.bat" "$(VERSION)" "$(DRIVEG)" "$(DIRG)"
1.62 brouard 371:
372: ../build/vs32/Release/IMaCh-$(VERSION).exe: imach.c mybuildvs32.bat
373: rm -rf ../build/vs32 && mkdir -p ../build/vs32
374: cp mybuildvs32.bat ../build/vs32/
375: cd ../build/vs32
1.81 brouard 376: VBoxManage --nologo guestcontrol "Windows7-64" run --exe "C:\Windows\System32\cmd.exe" \
377: --username brouard --verbose --wait-stdout -- "C:\Windows\SysWOW64\cmd.exe" "/c" "g:\imach\imach-gui\build\vs32\mybuildvs32.bat" "$(VERSION)"
1.62 brouard 378: # C:\Windows\SysWOW64\cmd.exe /E:ON /V:ON /K "g:\imach\imach-gui\build\icl32\mybuild.bat"
379: #WORK --username brouard --verbose --wait-exit --wait-stdout -- "/c" "c:\users\brouard\mybuild.bat"
380: # --username brouard --verbose --wait-exit --wait-stdout -- "/c" "g: && cd \imach\imach-gui\build\icl32 && mybuild.bat"
381: # --username brouard --verbose --wait-exit --wait-stdout -- "/c" "g: && cd \imach\imach-gui\build\icl32-xp &&" "C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\Tools\VsDevCmd.bat" "&&" "C:\Program Files (x86)\Intel\Composer XE 2015\bin\ipsxe-comp-vars.bat" "ia32" "vs2013" "&&" "msbuild imach-0.98q3.vcxproj /t:Build /p:Configuration=Release"
382: # --username brouard --wait-exit --wait-stdout -- "/c" "g: && cd \imach\imach-gui\build\icl32-xp\ &&C:\Windows\SysWOW64\cmd.exe /E:ON /V:ON /K ""C:\Program Files (x86)\Intel\Composer XE 2015\bin\ipsxe-comp-vars.bat" ia32 vs2013"&& msbuild imach.vcxproj >c:\users\brouard\totog.txt"
383: # --username brouard --wait-exit --wait-stdout -- "/c" "g: && dir >c:\users\brouard\totog.txt"
384: #C:\Windows\SysWOW64\cmd.exe /E:ON /V:ON /K ""C:\Program Files (x86)\Intel\Composer XE 2015\bin\ipsxe-comp-vars.bat" ia32 vs2013"
385: #C:\Windows\SysWOW64\cmd.exe /E:ON /V:ON /K ""C:\Program Files (x86)\Intel\Composer XE 2015\bin\ipsxe-comp-vars.bat" intel64 vs2013"
1.45 brouard 386:
1.62 brouard 387: imachICL64-setup: ../build/icl64/Release/IMaCh-$(VERSION).exe setup.iss mybuildicl64.bat
388:
389: imachICL32-setup: ../build/icl32/Release/IMaCh-$(VERSION).exe setup.iss mybuildicl32.bat
390:
391: imachVS32-setup: ../build/vs32/Release/IMaCh-$(VERSION).exe setup.iss mybuildvs32.bat
1.51 brouard 392:
1.62 brouard 393: imachICL32-noreg-setup: IMaCh-icl32.exe noreg-setup.iss
1.51 brouard 394: touch setup.iss.in
1.62 brouard 395: $(CP) IMaCh-icl32.exe imach.exe
1.51 brouard 396: $(SETUPCOMP) /cc $(TMPNOREGSETUPSCRIPT)
1.62 brouard 397: $(CP) Output/$(TMPSETUPEXE) imachICL32-noreg-setup
1.51 brouard 398:
1.42 brouard 399: imachMVC-setup: imachMVC.exe setup.iss
400: touch setup.iss.in
401: $(CP) imachMVC.exe imach.exe
402: $(SETUPCOMP) /cc setup.iss
1.58 brouard 403: $(CP) Output/$(TMPSETUPEXE) imachMVC-setup
1.42 brouard 404:
405: # imachcyg-noreg-setup : imachcygopt imachcygopt.o setup.iss.in noreg-setup.iss $(TMPNOREGSETUPEXE)
406: imachMVC-noreg-setup: imachMVC.exe noreg-setup.iss
407: touch setup.iss.in
408: $(CP) imachMVC.exe imach.exe
409: $(SETUPCOMP) /cc $(TMPNOREGSETUPSCRIPT)
410: $(CP) Output/$(TMPNOREGSETUPEXE) imachcyg-noreg-setup
411:
1.25 brouard 412: simach : simach.o
413: $(CC) $(LFLAGS) $(LGSL) -o simach simach.o
414: simach.o : simach.c
1.30 brouard 415: $(CC) $(CFLAGS) -DGSL -c simach.c
1.25 brouard 416:
1.56 brouard 417: imachtest: imachtest.o
418: $(CC) $(LFLAGS) -o imachtest imachtest.o
419: ifdef _macosx
420: $(DSYMUTIL) imachtest
421: endif
422:
423: imach: imach.o
1.21 brouard 424: $(CC) $(LFLAGS) -o imach imach.o
1.34 brouard 425: ifdef _macosx
426: $(DSYMUTIL) imach
427: endif
428:
1.21 brouard 429: imach.o : imach.c
1.81 brouard 430: $(CC) $(CFLAGS) $(CROSSCOMPILATION) -c $<
431: # $(CC) $(CFLAGS) $(CROSSCOMPILATION) -DDEBUGMEM -c $<
1.58 brouard 432: # $(CC) $(CFLAGS) $(CROSSCOMPILATION) -DDEBUGBRENT -c imach.c
1.56 brouard 433:
1.81 brouard 434: imach-0.98r: imach-0.98r.o
435: $(CC) $(LFLAGS) -o $@ $<
436: ifdef _macosx
437: $(DSYMUTIL) $@
438: endif
439:
440: # Horrible no f3<f1 test and direct test, converges if close to maximum otherwise diverges
441: #calls = 13 & 1760, -2 Log likelihood = 46537.411806825585
442: imach-0.98r.o : imach-0.98r.c
443: $(CC) $(CFLAGS) -DPOWELLNOF3INFF1TEST -DUNKNOWNSTATUSNOTCONTRIBUTING -DDISPATCHINGKNOWNDEATHAFTERLASTWAVE $(CROSSCOMPILATION) -c $<
444:
445: #################
446: imach-0.98r-powellsf1f3: imach-0.98r-powellsf1f3.o
447: $(CC) $(LFLAGS) -o $@ $<
448: ifdef _macosx
449: $(DSYMUTIL) $@
450: endif
451:
452: # test f3<f1 but direct test and no powell criteria which are NOPOWELLORIGINALNOMNBAKORIGINAL NOLINMINORIGINAL
453: # diverges now from zeroes calls = 18 & 3163, -2 Log likelihood = 50929.075310962719
454: # but converges if close to the maximum
455: # calls = 13 & 1760, -2 Log likelihood = 46537.411806825585
456: imach-0.98r-powellsf1f3.o : imach-0.98r.c
457: $(CC) $(CFLAGS) -DUNKNOWNSTATUSNOTCONTRIBUTING -DDISPATCHINGKNOWNDEATHAFTERLASTWAVE $(CROSSCOMPILATION) -o $@ -c $<
458: # $(CC) $(CFLAGS) -DUNKNOWNSTATUSNOTCONTRIBUTING -DDISPATCHINGKNOWNDEATHAFTERLASTWAVE $(CROSSCOMPILATION) -E -c $< | cppbeauty
459:
460: ######
461: imach-0.98r-powellf1f3: imach-0.98r-powellf1f3.o
462: $(CC) $(LFLAGS) -o $@ $<
463: ifdef _macosx
464: $(DSYMUTIL) $@
465: endif
466:
467: #Powell original but with mnbrak fix -DUNKNOWNSTATUSNOTCONTRIBUTING -DDISPATCHINGKNOWNDEATHAFTERLASTWAVE
468: #diverges from zeroes
469: # calls = 13 & 1760, -2 Log likelihood = 46537.411806825585 Real minumum
470: imach-0.98r-powellf1f3.o : imach-0.98r.c
471: $(CC) $(CFLAGS) -DPOWELLORIGINAL -DLINMINORIGINAL -DUNKNOWNSTATUSNOTCONTRIBUTING -DDISPATCHINGKNOWNDEATHAFTERLASTWAVE $(CROSSCOMPILATION) -o $@ -c $<
472: imach-0.98r-powellf1f3.i : imach-0.98r.c
473: $(CC) $(CFLAGS) -DPOWELLORIGINAL -DLINMINORIGINAL -DUNKNOWNSTATUSNOTCONTRIBUTING -DDISPATCHINGKNOWNDEATHAFTERLASTWAVE $(CROSSCOMPILATION) -E -c $<| cppbeauty
474: # $(CC) $(CFLAGS) -DPOWELLORIGINAL -DLINMINORIGINAL $(CROSSCOMPILATION) -E -o $@ -c $<
475:
476: ######################
477: imach-0.98r-powell: imach-0.98r-powell.o
478: $(CC) $(LFLAGS) -o $@ $<
479: ifdef _macosx
480: $(DSYMUTIL) $@
481: endif
482:
483: # Powell original means without -DPOWELLNOF3INFF1TEST (with F3<F1 test)
484: #calls = 33 & 4088, -2 Log likelihood = 46623.239341985027 reaches the maximum !
485: #From zeroes doesn't reach the maximum calls = 34 & 4212, -2 Log likelihood = 46542.398769900567
486: #calls = 34 & 4212, -2 Log likelihood = 46542.398769900567
487: imach-0.98r-powell.o : imach-0.98r.c
488: $(CC) $(CFLAGS) -DPOWELLORIGINAL -DLINMINORIGINAL -DMNBRAKORIGINAL -DUNKNOWNSTATUSNOTCONTRIBUTING -DDISPATCHINGKNOWNDEATHAFTERLASTWAVE $(CROSSCOMPILATION) -o $@ -c $<
489: # $(CC) $(CFLAGS) -DPOWELLORIGINAL -DLINMINORIGINAL -DMNBRAKORIGINAL $(CROSSCOMPILATION) -E -c $< | cppbeauty
490:
491: imach-0.98r-powell.i : imach-0.98r.c
492: $(CC) $(CFLAGS) -DPOWELLORIGINAL -DLINMINORIGINAL -DMNBRAKORIGINAL $(CROSSCOMPILATION) -E -o $@ -c $<
493:
494: ###############
495: # powell test with f1f3 powell, linmin fix but no mnbrak fix
496: imach-0.98r-powellf1f3lin: imach-0.98r-powellf1f3lin.o
497: $(CC) $(LFLAGS) -o $@ $<
498: ifdef _macosx
499: $(DSYMUTIL) $@
500: endif
501:
502: # ?calls = 41 & 4718, -2 Log likelihood = 46690.242656475864
503: #calls = 33 & 4088, -2 Log likelihood = 46623.239341985027
504: # from zeroes calls = 34 & 4212, -2 Log likelihood = 46542.398769900567
505: imach-0.98r-powellf1f3lin.o : imach-0.98r.c
506: $(CC) $(CFLAGS) -DPOWELLORIGINAL -DMNBRAKORIGINAL -DUNKNOWNSTATUSNOTCONTRIBUTING -DDISPATCHINGKNOWNDEATHAFTERLASTWAVE $(CROSSCOMPILATION) -o $@ -c $<
507:
508: #############
509:
510:
511: # directest with f3<f1 without mnbrak fix but linmin fix
512: imach-0.98r-powellf1f3orilin: imach-0.98r-powellf1f3orilin.o
513: $(CC) $(LFLAGS) -o $@ $<
514: ifdef _macosx
515: $(DSYMUTIL) $@
516: endif
517:
518: #Maximum not reached but converge from zeroes
519: #calls = 34 & 4212, -2 Log likelihood = 46542.398769900567
520: imach-0.98r-powellf1f3orilin.o : imach-0.98r.c
521: $(CC) $(CFLAGS) -DMNBRAKORIGINAL -DUNKNOWNSTATUSNOTCONTRIBUTING -DDISPATCHINGKNOWNDEATHAFTERLASTWAVE $(CROSSCOMPILATION) -o $@ -c $<
522:
523: #######
524:
525: # Powell test not direct, with mnbrak and linmin fixes
526: imach-0.98r-powellf1f3linmnb: imach-0.98r-powellf1f3linmnb.o
527: $(CC) $(LFLAGS) -o $@ $<
528: ifdef _macosx
529: $(DSYMUTIL) $@
530: endif
531:
532: # worst, diverges from zeroes -DDEBUGMNBRAK
533: #calls = 18 & 3163, -2 Log likelihood = 50929.075310962719
534:
535: imach-0.98r-powellf1f3linmnb.o : imach-0.98r.c
536: $(CC) $(CFLAGS) -DDEBUG -DPOWELLORIGINAL -DUNKNOWNSTATUSNOTCONTRIBUTING -DDISPATCHINGKNOWNDEATHAFTERLASTWAVE $(CROSSCOMPILATION) -o $@ -c $<
537: imach-0.98r-powellf1f3linmnb.i : imach-0.98r.c
538: $(CC) $(CFLAGS) -DDEBUG -DPOWELLORIGINAL -DUNKNOWNSTATUSNOTCONTRIBUTING -DDISPATCHINGKNOWNDEATHAFTERLASTWAVE $(CROSSCOMPILATION) -E -c $< | cppbeauty
539: #########
540:
541: # Powell test not direct, with mnbrak and linmin fixes
542: imach-0.98r-powellf1f3linmnbiter: imach-0.98r-powellf1f3linmnbiter.o
543: $(CC) $(LFLAGS) -o $@ $<
544: ifdef _macosx
545: $(DSYMUTIL) $@
546: endif
547:
548: #
549: #
550:
551: imach-0.98r-powellf1f3linmnbiter.o : imach-0.98r.c
552: $(CC) $(CFLAGS) -DDEBUG -DPOWELLORIGINAL -DUNKNOWNSTATUSNOTCONTRIBUTING -DDISPATCHINGKNOWNDEATHAFTERLASTWAVE -DNODIRECTIONCHANGEDUNTILNITER $(CROSSCOMPILATION) -o $@ -c $<
553: imach-0.98r-powellf1f3linmnbiter.i : imach-0.98r.c
554: $(CC) $(CFLAGS) -DDEBUG -DPOWELLORIGINAL -DUNKNOWNSTATUSNOTCONTRIBUTING -DDISPATCHINGKNOWNDEATHAFTERLASTWAVE -DNODIRECTIONCHANGEDUNTILNITER $(CROSSCOMPILATION) -E -c $< | cppbeauty
555: #########
556:
557:
558: imach-0.98r-powellf1f3ori: imach-0.98r-powellf1f3ori.o
559: $(CC) $(LFLAGS) -o $@ $<
560: ifdef _macosx
561: $(DSYMUTIL) $@
562: endif
563:
564: # Powell with -DPOWELLNOF3INFF1TEST which is not Powell original!
565: #calls = 41 & 4718, -2 Log likelihood = 46690.242656475864, doesn't reach the maximum
566: imach-0.98r-powellf1f3ori.o : imach-0.98r.c
567: $(CC) $(CFLAGS) -DPOWELLNOF3INFF1TEST -DPOWELLORIGINAL -DLINMINORIGINAL -DMNBRAKORIGINAL $(CROSSCOMPILATION) -o $@ -c $<
568: imach-0.98r-powellf1f3ori.i : imach-0.98r.c
569: $(CC) $(CFLAGS) -DPOWELLNOF3INFF1TEST -DPOWELLORIGINAL -DLINMINORIGINAL -DMNBRAKORIGINAL $(CROSSCOMPILATION) -E -o $@ -c $<| cppbeauty
570:
571:
572:
573:
574:
575:
1.56 brouard 576: imachtest.o : imach.c
1.81 brouard 577: $(CC) $(CFLAGS) $(CROSSCOMPILATION) -DPOWELLORIGINAL -DNRCORIGINAL -DINFINITYORIGINAL -DDEBUGBRENT -o $@ -c $<
1.56 brouard 578:
579: # $(CC) $(CFLAGS) $(CROSSCOMPILATION) -DFIXMNBRAK -o imachtest.o -c imach.c
1.32 brouard 580:
1.42 brouard 581: # http://msdn.microsoft.com/en-us/library/abx4dbyh%28v=vs.100%29.aspx
582: imachcl: imach.c
583: cl /O2 /MT /o imach.exe imach.c
584:
1.32 brouard 585: imach097b : imach097b.o
586: $(CC) $(LFLAGS) -o imach097b imach097b.o
587: imach097b.o : imach097b.c
588: $(CC) $(CFLAGS) -DPOWELL -c imach097b.c
1.30 brouard 589:
590:
591: imachsimplified : imachsimplified.o
592: $(CC) $(LFLAGSOPT) -o imachsimplified imachsimplified.o
593: imachsimplified.o : imachsimplified.c
594: $(CC) $(CFLAGSOPT) -DPOWELL -c imachsimplified.c
595:
596: imachgsl : imachgsl.o
1.46 brouard 597: $(CC) -o imachgsl imach.o $(LFLAGS) $(LGSL)
1.30 brouard 598: imachgsl.o : imach.c
599: $(CC) $(CFLAGS) -DGSL $(IGSL) -c imach.c
1.21 brouard 600:
1.47 brouard 601: imachNEWUOAopt : imachNEWUOAopt.o
602: $(CC) -o imachNEWUOAopt imachNEWUOAopt.o $(LFLAGS) -g $(LNLOPT)
603: imachNEWUOAopt.o : imach.c
604: $(CC) $(CFLAGS) -g -DNLOPT $(INLOPT) -DNEWUOA -o imachNEWUOAopt.o -c imach.c
605:
606: imachBOBYQAopt : imachBOBYQAopt.o
607: $(CC) -o imachBOBYQAopt imachBOBYQAopt.o $(LFLAGS) $(LNLOPT)
608: imachBOBYQAopt.o : imach.c
609: $(CC) $(CFLAGS) -DNLOPT $(INLOPT) -DBOBYQA -o imachBOBYQAopt.o -c imach.c
610:
1.46 brouard 611:
1.21 brouard 612: imachopt : imachopt.o
613: $(CC) $(LFLAGSOPT) -o imachopt imachopt.o
1.62 brouard 614: ln -f imachopt imach
1.49 brouard 615: $(CP) imachopt Output/imachopt$(VERSION)-$(BINVERSION)
1.50 brouard 616: $(CP) -f imach ../bin
1.49 brouard 617: ifdef _intel64onosx
618: $(CP) imachopt Output/imachopt$(VERSION)-$(BINVERSION)
619: endif
1.42 brouard 620: ifdef _macosx
621: $(STRIP) imach
622: endif
623: ifdef _linux32onosx
1.51 brouard 624: (cd .. && $(TAR) jcvf src/Output/imach-Linux-$(VERSION)-$(BINVERSION).tar.bz2 bin html/doc/biaspar.imach html/doc/data1.txt)
1.42 brouard 625: endif
626: ifdef _linux64onosx
1.51 brouard 627: (cd .. && $(TAR) jcvf src/Output/imach-Linux-$(VERSION)-$(BINVERSION).tar.bz2 bin html/doc/biaspar.imach html/doc/data1.txt)
1.42 brouard 628: endif
629:
1.73 brouard 630: imachopt.o : imach.c version.h
1.51 brouard 631: $(CC) $(CFLAGSOPT) $(CROSSCOMPILATION) -o imachopt.o -c imach.c
1.45 brouard 632: # $(CC) $(CFLAGSOPT) -DPOWELL -o imachopt.o -c imach.c
1.21 brouard 633:
1.49 brouard 634: imachUB : imach32 imach64
635: lipo -create -arch i386 imach_32 -arch x86_64 imach_64 -output imach$(VERSION)
636:
1.77 brouard 637: imachrpm : imachopt.o
638: pwd
639: (cd ../build && rm -r gnulinux && mkdir gnulinux && cd gnulinux ;\
640: pwd ;\
641: cmake ../..;\
642: cmake --build . ; \
643: echo $(OSTYPE);\
644: cpack -D CPACK_RPM_PACKAGE_DEBUG=1 -D CPACK_RPM_SPEC_INSTALL_POST="/bin/true" -G RPM;\
1.78 brouard 645: cp imach-$(VERSION)-*.rpm ../../src/Output/ ;)
1.49 brouard 646:
647: #imachdmg : imachopt.o create-dmg applet IMaChInfo.plist.in IMaChPkgInfo.in IMaCh.icns main.scpt.in IMaCh-ecrandemarrage.rsrc TXT.rtf
1.65 brouard 648: # $(CC) $(LFLAGSOPT) -o imach imachopt.o
1.37 brouard 649: #hdiutil detach /Volumes/IMaCh\ $(VERSION)
1.73 brouard 650: # cp ../../distributions/osx/gnuplot_bin/gnuplot_2_6_5_OSX imach$(VERSION).app/Contents/Resources/bin/gnuplot;\
651:
1.82 ! brouard 652: imachdmg : imachopt.o ../distributions/osx/create-dmg ../distributions/osx/createdmg4.sh ../distributions/osx/IMaChInfo.plist.in ../distributions/osx/IMaChPkgInfo.in ../distributions/osx/IMaCh.icns ../distributions/osx/TXT.rtf
1.65 brouard 653: pwd
654: (cd ../build && rm -r osx && mkdir osx && cd osx ;\
655: pwd ;\
656: cmake ../..;\
657: cmake --build . ; \
1.72 brouard 658: echo $(OSTYPE);\
1.65 brouard 659: rm -rf imach$(VERSION).app;\
660: mkdir -p imach$(VERSION).app;\
661: mkdir -p imach$(VERSION).app/Contents;\
662: mkdir -p imach$(VERSION).app/Contents/MacOS;\
1.82 ! brouard 663: cp ../../distributions/osx/imach imach$(VERSION).app/Contents/MacOS;\
1.65 brouard 664: mkdir -p imach$(VERSION).app/Contents/Resources;\
665: mkdir -p imach$(VERSION).app/Contents/Resources/Scripts;\
666: mkdir -p imach$(VERSION).app/Contents/Resources/bin;\
1.75 brouard 667: mkdir -p imach$(VERSION).app/Contents/Resources/lib;\
1.82 ! brouard 668: mkdir -p imach$(VERSION).app/Contents/Resources/doc;\
1.65 brouard 669: cp IMaCh-$(VERSION) imach$(VERSION).app/Contents/Resources/bin/imach;\
1.75 brouard 670: cp ../../distributions/osx/gnuplot_bin/bin/gnuplot imach$(VERSION).app/Contents/Resources/bin/gnuplot;\
671: cp ../../distributions/osx/gnuplot_bin/lib/* imach$(VERSION).app/Contents/Resources/lib;\
1.65 brouard 672: mkdir -p imach$(VERSION).app/Contents/Resources/description.rtfd;\
673: cp -p ../../distributions/osx/TXT.rtf imach$(VERSION).app/Contents/Resources/description.rtfd ;\
674: $(SED) -e "s/@VERSION@/$(VERSION)/g;" ../../distributions/osx/IMaChInfo.plist.in >imach$(VERSION).app/Contents/Info.plist ;\
675: cp -p ../../distributions/osx/IMaChPkgInfo.in imach$(VERSION).app/Contents/PkgInfo ;\
1.82 ! brouard 676: cp -p ../../distributions/osx/IMaCh.icns imach$(VERSION).app/Contents/Resources/IMaCh.icns ;\
! 677: cp ../../html/doc/data1.txt imach$(VERSION).app/Contents/Resources/doc ;\
! 678: cp ../../html/doc/biaspar.log imach$(VERSION).app/Contents/Resources/doc ;\
! 679: cp ../../html/doc/biaspar.imach imach$(VERSION).app/Contents/Resources/doc ;\
! 680: cp ../../src/README.txt imach$(VERSION).app/Contents/Resources/doc ;\
1.65 brouard 681: rm -f imach$(VERSION).dmg ;\
682: pwd ;\
1.82 ! brouard 683: cp ../../distributions/osx/createdmg4.sh . ;\
1.65 brouard 684: cp ../../distributions/osx/Background.png .;\
685: pwd ;\
1.82 ! brouard 686: ./createdmg4.sh --volname "IMaCh $(VERSION)" imach$(VERSION).dmg imach$(VERSION) ;\
1.75 brouard 687: cp imach$(VERSION).dmg ../../src/Output/ ;)
1.65 brouard 688: # ./create-dmg --volname "IMaCh $(VERSION)" imach$(VERSION).dmg imach$(VERSION).app
1.38 brouard 689: # ./createdmg2.sh --volname "IMaCh $(VERSION)" imach$(VERSION).dmg imach$(VERSION)
1.27 brouard 690:
1.58 brouard 691: md5:
692: ls Output/* | xargs md5sum
1.38 brouard 693: upload:
1.79 brouard 694: # rsync -v Output/imach-0.98r4-1.x86_64.rpm brouard@henry.ined.fr:/home/euroreves/html/imach/Download
1.80 brouard 695: # rsync -v Output/IMaCh-0.99a3-icl-setup.exe brouard@henry.ined.fr:/home/euroreves/html/imach/Download
696: # rsync -v Output/imach0.99a3.dmg brouard@henry.ined.fr:/home/euroreves/html/imach/Download
1.81 brouard 697: # rsync -v Output/IMaCh-0.98r7-icl-setup.exe brouard@henry.ined.fr:/home/euroreves/html/imach/Download
698: # rsync -v Output/imach0.98r7.dmg brouard@henry.ined.fr:/home/euroreves/html/imach/Download
699: # rsync -v Output/imach-0.99r9-icl-setup.exe brouard@henry.ined.fr:/home/euroreves/html/imach/Download
700: # rsync -v Output/imach0.99r9.dmg brouard@henry.ined.fr:/home/euroreves/html/imach/Download
1.82 ! brouard 701: rsync -v Output/imach-0.99r16-icl-setup.exe brouard@henry.ined.fr:/home/euroreves/html/imach/Download
! 702: rsync -v Output/imach0.99r16.dmg brouard@henry.ined.fr:/home/euroreves/html/imach/Download
1.81 brouard 703: # rsync -v Output/imach0.99r12-1.x86_64.rpm brouard@henry.ined.fr:/home/euroreves/html/imach/Download
1.62 brouard 704: # rsync -v Output/* brouard@henry.ined.fr:/home/euroreves/html/imach/Download
1.27 brouard 705:
1.44 brouard 706: imachcyg : imachcyg.o
707: $(CC) $(LFLAGS) -o imach imachcyg.o
1.21 brouard 708: imachcyg.o : imach.c
709: $(CC) $(CFLAGS) -c -o imachcyg.o imach.c
1.44 brouard 710: imachcygopt.exe : imachcygopt.o
711: $(CC) $(LFLAGSOPT) -o imachcygopt.exe imachcygopt.o
1.21 brouard 712: imachcygopt.o : imach.c
713: $(CC) $(CFLAGSOPT) -c -o imachcygopt.o imach.c
714:
715: imachw32.o : imach.c
716: i386-mingw32-gcc -c imach.c -o imachw32.o
717: imach.exe : imachw32.o
718: i386-mingw32-gcc -mwindows -o imach.exe -lm imachw32.o
719: i386-mingw32-strip imach.exe
720:
1.81 brouard 721: valgrindtoto: valgrindtoto.c
722: gcc -o valgrindtoto -DCROSS=0 -g valgrindtoto.c
723: valgrindtototest: valgrindtoto
724: valgrind --dsymutil=yes --leak-check=full --show-leak-kinds=all --track-origins=yes ./valgrindtoto
725:
1.34 brouard 726: valgrind-test : imach $(TESTFILE)
727: valgrind --dsymutil=yes --leak-check=full --show-leak-kinds=all --track-origins=yes ./imach $(TESTFILE)
1.81 brouard 728: # valgrind --dsymutil=yes --leak-check=full --show-leak-kinds=all --track-origins=yes ./imach-0.98r-powellf1f3linmnb $(TESTFILE)
1.34 brouard 729: test: imach $(TESTFILE)
730: gdb ./imach $(TESTFILE)
1.21 brouard 731:
732: $(PARAM).htm: imach $(PARAM).imach data1.txt
733: ./imach $(PARAM).imach
734:
735: clean:
736: rm or$(PARAM).txt er$(PARAM).txt pijr$(PARAM).txt plr$(PARAM).txt \
737: r$(PARAM).txt tr$(PARAM).txt vpl$(PARAM).txt pr$(PARAM).txt \
738: vr$(PARAM).txt *.gif imach.exe imach.o
739:
740:
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>