Annotation of imach/src/Makefile, revision 1.75
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.57 brouard 10: 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.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.62 brouard 18: # cpack -D CPACK_RPM_PACKAGE_DEBUG=1 -D CPACK_RPM_SPEC_INSTALL_POST="/bin/true" -G RPM
1.40 brouard 19: # make _linux32onosx=1 imachopt
20: # make _linux64onosx=1 imachopt
21:
1.42 brouard 22: # OS/X
1.61 brouard 23: # make _macosx=1 imachdmg
1.48 brouard 24: # make _intel64onosx=1 imachopt
1.49 brouard 25: # make _intel32onosx=1 imachopt
26: # make _intelUNBonosx=1 imachdmg # Not implemented (not useful)
1.27 brouard 27: # make _macosx=1 imach
1.49 brouard 28: # make _macosx=1 imachopt
1.32 brouard 29: # 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 30:
31: # Windows
1.62 brouard 32: # make _windowsonosx=1 imachICL-setup (touch setup.iss.in) #binary should have been compiled on Windows with Intel
1.45 brouard 33: # make _windowsonosx=1 imachMVC-setup (touch setup.iss.in) #binary should have been compiled on Windows with cl
1.51 brouard 34: # make _windowsonosx=1 imachMVC-noreg-setup
1.42 brouard 35: #
1.44 brouard 36: # Windows cross-compiled mw64
37: # make _mw64onsox=1 imachcyg-setup
38: #
1.21 brouard 39: # make _windows=1 imachcyg
1.23 lievre 40: # make _windows=1 imachcyg-setup (touch setup.iss.in)
41: # make _windows=1 imachcyg-noreg-setup
1.31 brouard 42: #
43: # make _windowsonlinux=1 imachcyg-setup (touch setup.iss.in)
44: # make _windowsonlinux=1 imachcyg-noreg-setup
45: #
1.42 brouard 46: # make _windowscl=1 imachclopt
1.40 brouard 47:
1.31 brouard 48: #
1.21 brouard 49: # sortie dans Output/setup.exe
50: # ln -s /cygdrive/c/Program\ Files/Inno\ Setup\ 4/Compil32.exe /usr/local/bin/Compil32
51: ##SETUPCOMP= "C:\Program Files\Inno Setup 3\Compil32.exe"
1.36 brouard 52: #TESTFILE=$$HOME/Documents/Recherches/REVES/SAITO/Tokyo2014/adlc-test-mac/adecode-1.142c.imach
1.45 brouard 53: #TESTFILE=$(HOME)/Documents/Recherches/REVES/carol/carol-june2014/educadlmwt24.imach
1.55 brouard 54: #TESTFILE=$(HOME)/Documents/Recherches/REVES/Biaspar/biaspar-wopowell.imach
1.58 brouard 55: #TESTFILE=$(HOME)/Documents/Recherches/REVES/Biaspar/rbiaspar-098p.imach
1.64 brouard 56: #TESTFILE=$(HOME)/Documents/Recherches/REVES/Aaron/brouard/results/COVARAITE_94/rmypar24pis1cov1-age.imach
1.71 brouard 57: #TESTFILE=$(HOME)/Documents/Recherches/REVES/Flavia/rADL0w_V1V2b.imach
58: TESTFILE=$(HOME)/Documents/Recherches/REVES/Yao/rrtest3b.imach
1.34 brouard 59: #TESTFILE=$(HOME)/Documents/Recherches/REVES/SAITO/Tokyo2014/adlc-test-mac/adecode-1.142c.imach
1.35 brouard 60: #TESTFILE=$(HOME)/Documents/Recherches/REVES/SAITO/Tokyo2014/adlc_test_magei4/radlc_often.imach
1.21 brouard 61: #CC= gcc -v
1.28 brouard 62: CC=$(GCC)
63: GCC= gcc
1.21 brouard 64:
65: ifdef _macosx
66: # Mac OS/X version
1.45 brouard 67: LFLAGS= -g -lm
1.58 brouard 68: #CFLAGS= -g -DDEBUG
69: CFLAGS= -g
1.45 brouard 70: LFLAGSOPT= -O3 -lm
1.55 brouard 71: CFLAGSOPT= -O3
1.58 brouard 72: CP= cp
1.54 brouard 73: CROSSCOMPILATION= -DCROSS=0
1.21 brouard 74: UNIX2DOS= echo "Unix2dos "
1.34 brouard 75: DSYMUTIL= dsymutil
1.42 brouard 76: STRIP= strip
77: BINVERSION=OSX
1.21 brouard 78: # Don'know how to launch imach098.pmsp in batch to create package file imach098Panther.pkg
79: # ./createdmg.sh imach imach098panther ./imach098Panther
1.27 brouard 80: # ./createdmg.sh imach imach098leopard ./imach098Leopard
1.21 brouard 81: # and directory ./imach098Panther contains package file imach098Panther.pkg
1.27 brouard 82: #./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/
83: # ./create-dmg --volname "IMaCh 0.98j" imach098j.dmg imach098Leopard
1.21 brouard 84: endif
85:
86: ifdef _windows
1.29 brouard 87: CC=c:\MinGW\bin\Mingw32-gcc
88:
1.21 brouard 89: # Windows cygwin version
90: LFLAGS= -g -mno-cygwin
91: CFLAGS= -g -mno-cygwin
92: LFLAGSOPT= -O3 -mno-cygwin
93: CFLAGSOPT= -O3 -mno-cygwin
94: UNIX2DOS= unix2dos
1.30 brouard 95: CP= copy
1.42 brouard 96: BINVERSION=CYGWIN
1.29 brouard 97: #SETUPCOMP= Compil32
1.21 brouard 98: ##SETUPCOMP=start /wait "C:\Program\ Files\\Compil32.exe"
1.29 brouard 99: # cygwin SETUPCOMP= "C:\Program Files\Inno Setup 4\Compil32.exe"
100: SETUPCOMP= "C:////Program Files////Inno Setup 4////Compil32.exe"
1.21 brouard 101: endif
102:
1.28 brouard 103: ifdef _windowsonlinux
104: GCC=/usr/bin/i586-pc-mingw32-gcc
105: LFLAGS= -g
106: CFLAGS= -g
1.30 brouard 107: LFLAGSOPT= -O3 -lm
1.28 brouard 108: CFLAGSOPT= -O3
1.55 brouard 109: CROSSCOMPILATION= -DCROSS=1
1.30 brouard 110: CP= cp
1.28 brouard 111: UNIX2DOS= unix2dos
112: SETUPCOMP= wine "C:////Program Files////Inno Setup 4////Compil32.exe"
1.42 brouard 113: BINVERSION=WINDOWSonLINUX
1.28 brouard 114: endif
115:
1.31 brouard 116: ifdef _windowsonosx
1.40 brouard 117: #GCC=/usr/local/i386-mingw32-4.3.0/bin/i386-mingw32-gcc
1.31 brouard 118: #GCC=/usr/local/cross-tools/bin/i686-w64-mingw32-gcc
1.38 brouard 119: 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 120: STRIP=/usr/local/gcc-4.8.0-qt-4.8.4-for-mingw32/win32-gcc/bin/i586-mingw32-strip
121: LFLAGS= -g
122: CFLAGS= -g
123: LFLAGSOPT= -O3 -s
124: CFLAGSOPT= -O3
1.55 brouard 125: CROSSCOMPILATION= -DCROSS=1
1.40 brouard 126: UNIX2DOS= unix2dos
127: SETUPCOMP= ~/bin/InnoSetup5Playonmac
128: CP= cp
1.42 brouard 129: BINVERSION=WIN32onOSX
130: endif
131:
1.44 brouard 132: ifdef _mw64onosx
133: GCC=/usr/local/mingw-w64-bin_i686-darwin_20130622/bin/x86_64-w64-mingw32-gcc-4.9.0
134: STRIP=/usr/local/mingw-w64-bin_i686-darwin_20130622/bin/x86_64-w64-mingw32-strip
135: LFLAGS= -g
136: CFLAGS= -g
137: LFLAGSOPT= -O3 -lm -s
138: CFLAGSOPT= -O3
1.55 brouard 139: CROSSCOMPILATION= -DCROSS=1
1.44 brouard 140: UNIX2DOS= unix2dos
141: SETUPCOMP= ~/bin/InnoSetup5Playonmac
142: CP= cp
143: BINVERSION=w64-mingw32-x86-64-bin
144: endif
145:
1.42 brouard 146: ifdef _windowscl
147: rem "C:\Program Files\Microsoft Visual Studio 10.0\VC\bin\vcvas32.bat"
1.40 brouard 148: endif
149:
1.48 brouard 150: # make _intel64onosx=1 imachopt
151: #source /opt/intel/bin/iccvars.sh intel64
152: ifdef _intel64onosx
153: GCC=/opt/intel/bin/icc
154: CFLAGS= -m64 -g -std=c99
1.49 brouard 155: LFLAGS= -g -m64
1.52 brouard 156: #CFLAGSOPT= -O3 -m64 -g -std=c99 -no-prec-div idem
157: #CFLAGSOPT= -O3 -m64 -g -std=c99 -xSSSE3_ATOM 402
1.49 brouard 158: CFLAGSOPT= -O3 -m64 -g -std=c99
1.52 brouard 159: CROSSCOMPILATION= -DCROSS=0
1.48 brouard 160: IGNORE :=$(shell bash -c "source /opt/intel/bin/iccvars.sh intel64; env | sed 's/=/:=/' | sed 's/^/export /' > makeenv")
161: include makeenv
162: #lipo -create -arch i386 HelloWorld_32 -arch x86_64 HelloWorld_64 -output HelloWorld
1.49 brouard 163: LFLAGSOPT= -O3 -m64
1.48 brouard 164: UNIX2DOS= unix2dos
165: SETUPCOMP= ~/bin/InnoSetup5Playonmac
166: CP= cp
167: BINVERSION=osx-intel-x86-64-bin
1.49 brouard 168: #imach_64$(VERSION)
169: #
170: endif
171:
172: ifdef _intel32onosx
173: GCC=/opt/intel/bin/icc
174: CFLAGS= -m32 -g -std=c99
175: LFLAGS= -g -m32
176: CFLAGSOPT= -O3 -m32 -g -std=c99
1.52 brouard 177: CROSSCOMPILATION= -DCROSS=0
1.49 brouard 178: IGNORE :=$(shell bash -c "source /opt/intel/bin/iccvars.sh ia32; env | sed 's/=/:=/' | sed 's/^/export /' > makeenv")
179: include makeenv
180: #lipo -create -arch i386 HelloWorld_32 -arch x86_64 HelloWorld_64 -output HelloWorld
181: #lipo -create -arch i386 imach_32$(VERSION) -arch x86_64 imach_64$(VERSION) -output imach$(VERSION)
182: LFLAGSOPT= -O3 -m32
183: UNIX2DOS= unix2dos
184: SETUPCOMP= ~/bin/InnoSetup5Playonmac
185: CP= cp
186: BINVERSION=osx-intel-ia32-bin
1.48 brouard 187: endif
188:
1.40 brouard 189: ifdef _linux64onosx
1.51 brouard 190: GCC=/usr/localold/gcc-4.8.1-for-linux64/bin/x86_64-pc-linux-gcc
191: STRIP=/usr/localold/gcc-4.8.1-for-linux64/bin/x86_64-pc-linux-strip
1.40 brouard 192: LFLAGS= -g
193: CFLAGS= -g
1.51 brouard 194: CROSSCOMPILATION= -DCROSS=1
1.40 brouard 195: LFLAGSOPT= -O3 -lm -s
196: CFLAGSOPT= -O3
1.51 brouard 197: TAR= /sw/bin/gnutar
1.40 brouard 198: UNIX2DOS= unix2dos
199: SETUPCOMP= ~/bin/InnoSetup5Playonmac
200: CP= cp
1.42 brouard 201: BINVERSION=linux-x86-64-bin
1.40 brouard 202: endif
203:
204: ifdef _linux32onosx
205: #GCC=/usr/local/i386-mingw32-4.3.0/bin/i386-mingw32-gcc
206: #GCC=/usr/local/cross-tools/bin/i686-w64-mingw32-gcc
1.51 brouard 207: GCC=/usr/localold/gcc-4.8.1-for-linux32/bin/i586-pc-linux-gcc
208: STRIP=/usr/localold/gcc-4.8.1-for-linux32/bin/i586-pc-linux-strip
1.31 brouard 209: LFLAGS= -g
210: CFLAGS= -g
1.40 brouard 211: LFLAGSOPT= -O3 -s -lm
1.31 brouard 212: CFLAGSOPT= -O3
1.55 brouard 213: CROSSCOMPILATION= -DCROSS=1
1.51 brouard 214: TAR= /sw/bin/gnutar
1.31 brouard 215: UNIX2DOS= unix2dos
216: SETUPCOMP= ~/bin/InnoSetup5Playonmac
1.32 brouard 217: CP= cp
1.42 brouard 218: BINVERSION=linux-i586-bin
1.31 brouard 219: endif
220:
1.21 brouard 221: ifdef _linux
1.26 brouard 222: #CFLAGS= -g -DUNIX -DDEBUGHESS
1.56 brouard 223: #CFLAGS= -g -DDEBUG -DFIXMNBRAK
1.58 brouard 224: #CFLAGS= -g -DDEBUG
225: CFLAGS= -g
1.42 brouard 226: LFLAGS= -g -lm
1.30 brouard 227: IGSL= -I/usr/include/gsl
1.25 brouard 228: LGSL= -lgsl -lgslcblas
1.46 brouard 229: INLOPT= -I/usr/local/include
230: LNLOPT= -lm -L/usr/local/lib -lnlopt
1.47 brouard 231: CFLAGSOPT= -O3 -g
232: LFLAGSOPT= -O3 -g -lm
1.55 brouard 233: CROSSCOMPILATION= -DCROSS=0
1.21 brouard 234: UNIX2DOS= unix2dos
235: SETUPCOMP= wine "C:////Program Files////Inno Setup 4////Compil32.exe"
1.42 brouard 236: BINVERSION=LINUXnative
1.50 brouard 237: CP= cp
1.21 brouard 238: endif
239:
240: SED= sed
241: PACKAGE=imach
242: PROGRAM=IMaCh
243:
244:
245: TMPSETUPSCRIPT=setup.iss
246: TMPNOREGSETUPSCRIPT=noreg-setup.iss
247: TMPSCRIPTIN=setup.iss.in
248: APPLICATION=IMaCh
249: APPNAME=$(APPLICATION)-$(VERSION)
1.57 brouard 250: APPCOMPILATIONMODE=$(IMACHSETUPVERSION)
1.73 brouard 251: GNUPLOTVERSION=5.1
1.21 brouard 252: LICENSE=Copying
253: TMPSETUPEXE=imach-$(VERSION)-$(IMACHSETUPVERSION)-setup.exe
1.31 brouard 254: TMPNOREGSETUPEXE=imach-$(VERSION)-$(IMACHSETUPVERSION)-noreg-setup.exe
1.21 brouard 255: LICENSEFILE=$(LICENSE)
256: INFOBEFOREFILE=README.txt
257:
1.31 brouard 258: setup.iss: setup.iss.in
1.21 brouard 259: $(SED) -e "s/@APPNAME@/$(APPNAME)/g; \
260: s/@NOTINNOREG@//g; \
261: s/@NOREG@//g; \
262: s/@IMACHSETUPVERSION@/$(IMACHSETUPVERSION)/g; \
1.57 brouard 263: s/@APPCOMPILATIONMODE@/$(APPCOMPILATIONMODE)/g; \
1.21 brouard 264: s/@VERSION@/$(VERSION)/g; \
265: s/@GNUPLOTVERSION@/$(GNUPLOTVERSION)/g; \
266: s/@INFOBEFOREFILE@/$(INFOBEFOREFILE)/g; \
267: s/@LICENSEFILE@/$(LICENSEFILE)/g; \
268: s/@PACKAGE@/$(PACKAGE)/g; \
269: s/@DICTLANG@/$(DICTLANG)/g; \
270: s/@VERMAJOR@/$(VERMAJOR)/g; \
271: s/@COPYRIGHT@/$(COPYRIGHT)/g;" \
1.31 brouard 272: setup.iss.in > setup.iss
1.21 brouard 273:
274: $(TMPNOREGSETUPSCRIPT): $(TMPSCRIPTIN)
275: $(SED) -e "s/@APPNAME@/$(APPNAME)/g; \
276: s/@NOTINNOREG@/\\;/g; \
277: s/@NOREG@/noreg-/g; \
278: s/@IMACHSETUPVERSION@/$(IMACHSETUPVERSION)/g; \
279: s/@VERSION@/$(VERSION)/g; \
280: s/@GNUPLOTVERSION@/$(GNUPLOTVERSION)/g; \
281: s/@INFOBEFOREFILE@/$(INFOBEFOREFILE)/g; \
282: s/@LICENSEFILE@/$(LICENSEFILE)/g; \
283: s/@PACKAGE@/$(PACKAGE)/g; \
284: s/@DICTLANG@/$(DICTLANG)/g; \
285: s/@VERMAJOR@/$(VERMAJOR)/g; \
286: s/@COPYRIGHT@/$(COPYRIGHT)/g;" \
287: $(TMPSCRIPTIN) > $(TMPNOREGSETUPSCRIPT)
1.29 brouard 288: # $(UNIX2DOS) $(TMPNOREGSETUPSCRIPT)
1.21 brouard 289:
290: $(TMPSETUPEXE): $(TMPSETUPSCRIPT)
291: $(SETUPCOMP) /cc $(TMPSETUPSCRIPT)
292:
1.59 brouard 293: #$(TMPNOREGSETUPEXE): $(TMPNOREGSETUPSCRIPT)
294: # $(SETUPCOMP) /cc $(TMPNOREGSETUPSCRIPT)
1.21 brouard 295:
296: PARAM=mypar1
297:
298: imachcyg-setup: imachcygopt.exe setup.iss
1.38 brouard 299: touch setup.iss.in
1.30 brouard 300: $(CP) imachcygopt.exe imach.exe
1.42 brouard 301: $(CP) imachcygopt.exe imach$(VERSION)-$(BINVERSION).exe
1.31 brouard 302: $(SETUPCOMP) /cc setup.iss
303: cp Output/$(TMPSETUPEXE) imachcyg-setup
1.21 brouard 304:
305: # imachcyg-noreg-setup : imachcygopt imachcygopt.o setup.iss.in noreg-setup.iss $(TMPNOREGSETUPEXE)
306: imachcyg-noreg-setup: imachcygopt.exe noreg-setup.iss
1.38 brouard 307: touch setup.iss.in
1.30 brouard 308: $(CP) imachcygopt.exe imach.exe
1.42 brouard 309: $(CP) imachcygopt.exe imach$(VERSION)-$(BINVERSION).exe
1.21 brouard 310: $(SETUPCOMP) /cc $(TMPNOREGSETUPSCRIPT)
1.31 brouard 311: cp Output/$(TMPNOREGSETUPEXE) imachcyg-noreg-setup
1.62 brouard 312: # ICL compiler 64
313: imachICL-build: imach.c
314: icl /GS /W3 /Zc:wchar_t /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "UNICODE" /Qipo /Zc:forScope /MT imach.c
315: #/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"
316: # /Users/nbrouard/Documents/imach/imach-gui/build/icl64/Release/imach.exe
1.57 brouard 317: # both 32 and 64 executables should have been built on Windows with Intel compiler.
1.75 ! brouard 318:
1.73 brouard 319: 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 320: pwd
1.63 brouard 321: touch setup.iss.in
1.57 brouard 322: $(SETUPCOMP) /cc setup.iss
1.62 brouard 323: $(CP) Output/$(TMPSETUPEXE) imachICL-setup
1.57 brouard 324:
1.62 brouard 325: # imachICL64-setup: IMaCh-icl64-$(VERSION).exe setup.iss
326: # pwd
327: # $(CP) IMaCh-icl64-$(VERSION).exe imach.exe
328: # $(SETUPCOMP) /cc setup.iss
329: # $(CP) Output/$(TMPSETUPEXE) imachICL64-setup
1.45 brouard 330:
1.62 brouard 331: imachICL64-noreg-setup: IMaCh-icl64-$(VERSION).exe noreg-setup.iss
1.45 brouard 332: touch setup.iss.in
333: $(SETUPCOMP) /cc $(TMPNOREGSETUPSCRIPT)
1.62 brouard 334: $(CP) Output/$(TMPSETUPEXE) imachICL64-noreg-setup
335:
1.63 brouard 336: ../build/icl64/Release/IMaCh-$(VERSION).exe: imach.c ../distributions/windows/mybuildicl64.bat
1.75 ! brouard 337: # rm -rf ../build/icl64 && mkdir ../build/icl64
1.63 brouard 338: cp ../distributions/windows/mybuildicl64.bat ../build/icl64/
1.62 brouard 339: cd ../build/icl64
1.75 ! brouard 340: # VBoxManage --nologo guestcontrol "Windows7-64" run --exe "C:\Windows\SysWOW64\cmd.exe" --username brouard --verbose --wait-stdout --wait-stderr -- "/c" "DIR"
! 341: # VBoxManage --nologo guestcontrol "Windows7-64" run --exe "c:\\windows\\system32\\ipconfig.exe" --username brouard --verbose --wait-stdout --wait-stderr -- "/all"
! 342: #VBoxManage --nologo guestcontrol "Windows7-64" run --exe "C:\Windows\SysWOW64\cmd.exe" \
1.74 brouard 343: --username brouard --verbose --wait-stdout --wait-stderr -- "/c" "$(DRIVEG)$(DIRG)\icl64\mybuildicl64.bat" "$(VERSION)" "$(DRIVEG)" "$(DIRG)"
1.62 brouard 344:
1.63 brouard 345: ../build/icl32/Release/IMaCh-$(VERSION).exe: imach.c ../distributions/windows/mybuildicl32.bat
1.75 ! brouard 346: # rm -rf ../build/icl32 && mkdir -p ../build/icl32
1.63 brouard 347: cp ../distributions/windows/mybuildicl32.bat ../build/icl32/
1.62 brouard 348: cd ../build/icl32
1.75 ! brouard 349:
! 350: #VBoxManage --nologo guestcontrol "Windows7-64" run --exe "C:\Windows\SysWOW64\cmd.exe" \
1.74 brouard 351: --username brouard --verbose --wait-stdout -- "/c" "$(DRIVEG)$(DIRG)\icl32\mybuildicl32.bat" "$(VERSION)" "$(DRIVEG)" "$(DIRG)"
1.62 brouard 352:
353: ../build/vs32/Release/IMaCh-$(VERSION).exe: imach.c mybuildvs32.bat
354: rm -rf ../build/vs32 && mkdir -p ../build/vs32
355: cp mybuildvs32.bat ../build/vs32/
356: cd ../build/vs32
1.74 brouard 357: VBoxManage --nologo guestcontrol "Windows7-64" run --exe "C:\Windows\SysWOW64\cmd.exe" \
358: --username brouard --verbose --wait-stdout -- "/c" "g:\imach\imach-gui\build\vs32\mybuildvs32.bat" "$(VERSION)"
1.62 brouard 359: # C:\Windows\SysWOW64\cmd.exe /E:ON /V:ON /K "g:\imach\imach-gui\build\icl32\mybuild.bat"
360: #WORK --username brouard --verbose --wait-exit --wait-stdout -- "/c" "c:\users\brouard\mybuild.bat"
361: # --username brouard --verbose --wait-exit --wait-stdout -- "/c" "g: && cd \imach\imach-gui\build\icl32 && mybuild.bat"
362: # --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"
363: # --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"
364: # --username brouard --wait-exit --wait-stdout -- "/c" "g: && dir >c:\users\brouard\totog.txt"
365: #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"
366: #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 367:
1.62 brouard 368: imachICL64-setup: ../build/icl64/Release/IMaCh-$(VERSION).exe setup.iss mybuildicl64.bat
369:
370: imachICL32-setup: ../build/icl32/Release/IMaCh-$(VERSION).exe setup.iss mybuildicl32.bat
371:
372: imachVS32-setup: ../build/vs32/Release/IMaCh-$(VERSION).exe setup.iss mybuildvs32.bat
1.51 brouard 373:
1.62 brouard 374: imachICL32-noreg-setup: IMaCh-icl32.exe noreg-setup.iss
1.51 brouard 375: touch setup.iss.in
1.62 brouard 376: $(CP) IMaCh-icl32.exe imach.exe
1.51 brouard 377: $(SETUPCOMP) /cc $(TMPNOREGSETUPSCRIPT)
1.62 brouard 378: $(CP) Output/$(TMPSETUPEXE) imachICL32-noreg-setup
1.51 brouard 379:
1.42 brouard 380: imachMVC-setup: imachMVC.exe setup.iss
381: touch setup.iss.in
382: $(CP) imachMVC.exe imach.exe
383: $(SETUPCOMP) /cc setup.iss
1.58 brouard 384: $(CP) Output/$(TMPSETUPEXE) imachMVC-setup
1.42 brouard 385:
386: # imachcyg-noreg-setup : imachcygopt imachcygopt.o setup.iss.in noreg-setup.iss $(TMPNOREGSETUPEXE)
387: imachMVC-noreg-setup: imachMVC.exe noreg-setup.iss
388: touch setup.iss.in
389: $(CP) imachMVC.exe imach.exe
390: $(SETUPCOMP) /cc $(TMPNOREGSETUPSCRIPT)
391: $(CP) Output/$(TMPNOREGSETUPEXE) imachcyg-noreg-setup
392:
1.25 brouard 393: simach : simach.o
394: $(CC) $(LFLAGS) $(LGSL) -o simach simach.o
395: simach.o : simach.c
1.30 brouard 396: $(CC) $(CFLAGS) -DGSL -c simach.c
1.25 brouard 397:
1.56 brouard 398: imachtest: imachtest.o
399: $(CC) $(LFLAGS) -o imachtest imachtest.o
400: ifdef _macosx
401: $(DSYMUTIL) imachtest
402: endif
403:
404: imach: imach.o
1.21 brouard 405: $(CC) $(LFLAGS) -o imach imach.o
1.34 brouard 406: ifdef _macosx
407: $(DSYMUTIL) imach
408: endif
409:
1.21 brouard 410: imach.o : imach.c
1.58 brouard 411: $(CC) $(CFLAGS) $(CROSSCOMPILATION) -c imach.c
412: # $(CC) $(CFLAGS) $(CROSSCOMPILATION) -DDEBUGBRENT -c imach.c
1.56 brouard 413:
414: imachtest.o : imach.c
415: $(CC) $(CFLAGS) $(CROSSCOMPILATION) -DPOWELLORIGINAL -DNRCORIGINAL -DINFINITYORIGINAL -DDEBUGBRENT -o imachtest.o -c imach.c
416:
417: # $(CC) $(CFLAGS) $(CROSSCOMPILATION) -DFIXMNBRAK -o imachtest.o -c imach.c
1.32 brouard 418:
1.42 brouard 419: # http://msdn.microsoft.com/en-us/library/abx4dbyh%28v=vs.100%29.aspx
420: imachcl: imach.c
421: cl /O2 /MT /o imach.exe imach.c
422:
1.32 brouard 423: imach097b : imach097b.o
424: $(CC) $(LFLAGS) -o imach097b imach097b.o
425: imach097b.o : imach097b.c
426: $(CC) $(CFLAGS) -DPOWELL -c imach097b.c
1.30 brouard 427:
428:
429: imachsimplified : imachsimplified.o
430: $(CC) $(LFLAGSOPT) -o imachsimplified imachsimplified.o
431: imachsimplified.o : imachsimplified.c
432: $(CC) $(CFLAGSOPT) -DPOWELL -c imachsimplified.c
433:
434: imachgsl : imachgsl.o
1.46 brouard 435: $(CC) -o imachgsl imach.o $(LFLAGS) $(LGSL)
1.30 brouard 436: imachgsl.o : imach.c
437: $(CC) $(CFLAGS) -DGSL $(IGSL) -c imach.c
1.21 brouard 438:
1.47 brouard 439: imachNEWUOAopt : imachNEWUOAopt.o
440: $(CC) -o imachNEWUOAopt imachNEWUOAopt.o $(LFLAGS) -g $(LNLOPT)
441: imachNEWUOAopt.o : imach.c
442: $(CC) $(CFLAGS) -g -DNLOPT $(INLOPT) -DNEWUOA -o imachNEWUOAopt.o -c imach.c
443:
444: imachBOBYQAopt : imachBOBYQAopt.o
445: $(CC) -o imachBOBYQAopt imachBOBYQAopt.o $(LFLAGS) $(LNLOPT)
446: imachBOBYQAopt.o : imach.c
447: $(CC) $(CFLAGS) -DNLOPT $(INLOPT) -DBOBYQA -o imachBOBYQAopt.o -c imach.c
448:
1.46 brouard 449:
1.21 brouard 450: imachopt : imachopt.o
451: $(CC) $(LFLAGSOPT) -o imachopt imachopt.o
1.62 brouard 452: ln -f imachopt imach
1.49 brouard 453: $(CP) imachopt Output/imachopt$(VERSION)-$(BINVERSION)
1.50 brouard 454: $(CP) -f imach ../bin
1.49 brouard 455: ifdef _intel64onosx
456: $(CP) imachopt Output/imachopt$(VERSION)-$(BINVERSION)
457: endif
1.42 brouard 458: ifdef _macosx
459: $(STRIP) imach
460: endif
461: ifdef _linux32onosx
1.51 brouard 462: (cd .. && $(TAR) jcvf src/Output/imach-Linux-$(VERSION)-$(BINVERSION).tar.bz2 bin html/doc/biaspar.imach html/doc/data1.txt)
1.42 brouard 463: endif
464: ifdef _linux64onosx
1.51 brouard 465: (cd .. && $(TAR) jcvf src/Output/imach-Linux-$(VERSION)-$(BINVERSION).tar.bz2 bin html/doc/biaspar.imach html/doc/data1.txt)
1.42 brouard 466: endif
467:
1.73 brouard 468: imachopt.o : imach.c version.h
1.51 brouard 469: $(CC) $(CFLAGSOPT) $(CROSSCOMPILATION) -o imachopt.o -c imach.c
1.45 brouard 470: # $(CC) $(CFLAGSOPT) -DPOWELL -o imachopt.o -c imach.c
1.21 brouard 471:
1.49 brouard 472: imachUB : imach32 imach64
473: lipo -create -arch i386 imach_32 -arch x86_64 imach_64 -output imach$(VERSION)
474:
475:
476: #imachdmg : imachopt.o create-dmg applet IMaChInfo.plist.in IMaChPkgInfo.in IMaCh.icns main.scpt.in IMaCh-ecrandemarrage.rsrc TXT.rtf
1.65 brouard 477: # $(CC) $(LFLAGSOPT) -o imach imachopt.o
1.37 brouard 478: #hdiutil detach /Volumes/IMaCh\ $(VERSION)
1.73 brouard 479: # cp ../../distributions/osx/gnuplot_bin/gnuplot_2_6_5_OSX imach$(VERSION).app/Contents/Resources/bin/gnuplot;\
480:
1.65 brouard 481: imachdmg : imachopt.o ../distributions/osx/create-dmg ../distributions/osx/createdmg3.sh ../distributions/osx/applet ../distributions/osx/IMaChInfo.plist.in ../distributions/osx/IMaChPkgInfo.in ../distributions/osx/IMaCh.icns ../distributions/osx/main.scpt.in ../distributions/osx/IMaCh-ecrandemarrage.rsrc ../distributions/osx/TXT.rtf
482: pwd
483: (cd ../build && rm -r osx && mkdir osx && cd osx ;\
484: pwd ;\
485: cmake ../..;\
486: cmake --build . ; \
1.72 brouard 487: echo $(OSTYPE);\
1.65 brouard 488: rm -rf imach$(VERSION).app;\
489: mkdir -p imach$(VERSION).app;\
490: mkdir -p imach$(VERSION).app/Contents;\
491: mkdir -p imach$(VERSION).app/Contents/MacOS;\
492: cp ../../distributions/osx/applet imach$(VERSION).app/Contents/MacOS;\
493: mkdir -p imach$(VERSION).app/Contents/Resources;\
494: mkdir -p imach$(VERSION).app/Contents/Resources/Scripts;\
495: mkdir -p imach$(VERSION).app/Contents/Resources/bin;\
1.75 ! brouard 496: mkdir -p imach$(VERSION).app/Contents/Resources/lib;\
1.65 brouard 497: mkdir -p imach$(VERSION).app/Contents/Resources/html;\
498: cp IMaCh-$(VERSION) imach$(VERSION).app/Contents/Resources/bin/imach;\
1.75 ! brouard 499: cp ../../distributions/osx/gnuplot_bin/bin/gnuplot imach$(VERSION).app/Contents/Resources/bin/gnuplot;\
! 500: cp ../../distributions/osx/gnuplot_bin/lib/* imach$(VERSION).app/Contents/Resources/lib;\
1.65 brouard 501: mkdir -p imach$(VERSION).app/Contents/Resources/description.rtfd;\
502: cp -p ../../distributions/osx/TXT.rtf imach$(VERSION).app/Contents/Resources/description.rtfd ;\
503: $(SED) -e "s/@VERSION@/$(VERSION)/g;" ../../distributions/osx/IMaChInfo.plist.in >imach$(VERSION).app/Contents/Info.plist ;\
504: cp -p ../../distributions/osx/IMaChPkgInfo.in imach$(VERSION).app/Contents/PkgInfo ;\
505: cp -p ../../distributions/osx/IMaCh.icns imach$(VERSION).app/Contents/Resources/applet.icns ;\
506: cp -r -p ../../distributions/osx/main.scpt.in imach$(VERSION).app/Contents/Resources/Scripts/main.scpt ;\
507: cp ../../distributions/osx/IMaCH-ecrandemarrage.rsrc imach$(VERSION).app/Contents/Resources/applet.rsrc ;\
508: cp ../../html/doc/data1.txt imach$(VERSION).app/Contents/Resources/html ;\
509: cp ../../html/doc/biaspar.log imach$(VERSION).app/Contents/Resources/html ;\
510: cp ../../html/doc/biaspar.imach imach$(VERSION).app/Contents/Resources/html ;\
511: rm -f imach$(VERSION).dmg ;\
512: pwd ;\
513: cp ../../distributions/osx/createdmg3.sh . ;\
514: cp ../../distributions/osx/Background.png .;\
515: pwd ;\
516: ./createdmg3.sh --volname "IMaCh $(VERSION)" imach$(VERSION).dmg imach$(VERSION) ;\
1.75 ! brouard 517: cp imach$(VERSION).dmg ../../src/Output/ ;)
1.65 brouard 518: # ./create-dmg --volname "IMaCh $(VERSION)" imach$(VERSION).dmg imach$(VERSION).app
1.38 brouard 519: # ./createdmg2.sh --volname "IMaCh $(VERSION)" imach$(VERSION).dmg imach$(VERSION)
1.27 brouard 520:
1.58 brouard 521: md5:
522: ls Output/* | xargs md5sum
1.38 brouard 523: upload:
1.75 ! brouard 524: rsync -v Output/IMaCh-0.98r3-icl-setup.exe brouard@henry.ined.fr:/home/euroreves/html/imach/Download
! 525: rsync -v Output/imach0.98r3.dmg brouard@henry.ined.fr:/home/euroreves/html/imach/Download
1.62 brouard 526: # rsync -v Output/* brouard@henry.ined.fr:/home/euroreves/html/imach/Download
1.27 brouard 527:
1.44 brouard 528: imachcyg : imachcyg.o
529: $(CC) $(LFLAGS) -o imach imachcyg.o
1.21 brouard 530: imachcyg.o : imach.c
531: $(CC) $(CFLAGS) -c -o imachcyg.o imach.c
1.44 brouard 532: imachcygopt.exe : imachcygopt.o
533: $(CC) $(LFLAGSOPT) -o imachcygopt.exe imachcygopt.o
1.21 brouard 534: imachcygopt.o : imach.c
535: $(CC) $(CFLAGSOPT) -c -o imachcygopt.o imach.c
536:
537: imachw32.o : imach.c
538: i386-mingw32-gcc -c imach.c -o imachw32.o
539: imach.exe : imachw32.o
540: i386-mingw32-gcc -mwindows -o imach.exe -lm imachw32.o
541: i386-mingw32-strip imach.exe
542:
1.34 brouard 543: valgrind-test : imach $(TESTFILE)
544: valgrind --dsymutil=yes --leak-check=full --show-leak-kinds=all --track-origins=yes ./imach $(TESTFILE)
545: test: imach $(TESTFILE)
546: gdb ./imach $(TESTFILE)
1.21 brouard 547:
548: $(PARAM).htm: imach $(PARAM).imach data1.txt
549: ./imach $(PARAM).imach
550:
551: clean:
552: rm or$(PARAM).txt er$(PARAM).txt pijr$(PARAM).txt plr$(PARAM).txt \
553: r$(PARAM).txt tr$(PARAM).txt vpl$(PARAM).txt pr$(PARAM).txt \
554: vr$(PARAM).txt *.gif imach.exe imach.o
555:
556:
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>