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