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