Return to Makefile CVS log | Up to [Local Repository] / imach / src |
*** empty log message ***
1: VERSION=0.98nR 2: COPYRIGHT=Copyright (C) 2002-2015 INED-EUROREVES-Institut de longevite-Japan Society for the Promotion of Science (Grant-in-Aid for Scientific Research 25293121) 3: IMACHSETUPVERSION=1 4: 5: # make _linux=1 imachopt 6: # make _linux=1 imach 7: 8: # make _macosx=1 imach 9: # make _macosx=1 imachdmg 10: # valgrind --dsymutil=yes --leak-check=full --show-leak-kinds=all --track-origins=yes ~/Documents/imachcvs/imach/src/imach-1.129cvsmac radlc-1.129.imach 11: 12: # Windows 13: # make _windows=1 imachcyg 14: # make _windows=1 imachcyg-setup (touch setup.iss.in) 15: # make _windows=1 imachcyg-noreg-setup 16: # 17: # make _windowsonlinux=1 imachcyg-setup (touch setup.iss.in) 18: # make _windowsonlinux=1 imachcyg-noreg-setup 19: # 20: # make _windowsonosx=1 imachcyg-setup (touch setup.iss.in) 21: # make _windowsonosx=1 imachcyg-noreg-setup 22: # 23: # sortie dans Output/setup.exe 24: # ln -s /cygdrive/c/Program\ Files/Inno\ Setup\ 4/Compil32.exe /usr/local/bin/Compil32 25: ##SETUPCOMP= "C:\Program Files\Inno Setup 3\Compil32.exe" 26: 27: #CC= gcc -v 28: CC=$(GCC) 29: GCC= gcc 30: 31: ifdef _macosx 32: # Mac OS/X version 33: LFLAGS= -g -lm -DUNIX 34: CFLAGS= -g -DUNIX 35: LFLAGSOPT= -O3 -lm -DUNIX 36: CFLAGSOPT= -O3 -DUNIX 37: UNIX2DOS= echo "Unix2dos " 38: # Don'know how to launch imach098.pmsp in batch to create package file imach098Panther.pkg 39: # ./createdmg.sh imach imach098panther ./imach098Panther 40: # ./createdmg.sh imach imach098leopard ./imach098Leopard 41: # and directory ./imach098Panther contains package file imach098Panther.pkg 42: #./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/ 43: # ./create-dmg --volname "IMaCh 0.98j" imach098j.dmg imach098Leopard 44: endif 45: 46: ifdef _windows 47: CC=c:\MinGW\bin\Mingw32-gcc 48: 49: # Windows cygwin version 50: LFLAGS= -g -mno-cygwin 51: CFLAGS= -g -mno-cygwin 52: LFLAGSOPT= -O3 -mno-cygwin 53: CFLAGSOPT= -O3 -mno-cygwin 54: UNIX2DOS= unix2dos 55: CP= copy 56: #SETUPCOMP= Compil32 57: ##SETUPCOMP=start /wait "C:\Program\ Files\\Compil32.exe" 58: # cygwin SETUPCOMP= "C:\Program Files\Inno Setup 4\Compil32.exe" 59: SETUPCOMP= "C:////Program Files////Inno Setup 4////Compil32.exe" 60: endif 61: 62: ifdef _windowsonlinux 63: GCC=/usr/bin/i586-pc-mingw32-gcc 64: LFLAGS= -g 65: CFLAGS= -g 66: LFLAGSOPT= -O3 -lm 67: CFLAGSOPT= -O3 68: CP= cp 69: UNIX2DOS= unix2dos 70: SETUPCOMP= wine "C:////Program Files////Inno Setup 4////Compil32.exe" 71: endif 72: 73: ifdef _windowsonosx 74: GCC=/usr/local/i386-mingw32-4.3.0/bin/i386-mingw32-gcc 75: # w64 outputs bigger executables 76: #GCC=/usr/local/cross-tools/bin/i686-w64-mingw32-gcc 77: LFLAGS= -g 78: CFLAGS= -g 79: LFLAGSOPT= -O3 80: CFLAGSOPT= -O3 81: UNIX2DOS= unix2dos 82: SETUPCOMP= ~/bin/InnoSetup5Playonmac 83: CP= cp 84: endif 85: 86: ifdef _linux 87: #CFLAGS= -g -DUNIX -DDEBUGHESS 88: CFLAGS= -g -DUNIX 89: LFLAGS= -g -lm 90: IGSL= -I/usr/include/gsl 91: LGSL= -lgsl -lgslcblas 92: CFLAGSOPT= -O3 -DUNIX 93: LFLAGSOPT= -O3 -lm 94: UNIX2DOS= unix2dos 95: SETUPCOMP= wine "C:////Program Files////Inno Setup 4////Compil32.exe" 96: endif 97: 98: SED= sed 99: PACKAGE=imach 100: PROGRAM=IMaCh 101: 102: 103: 104: TMPSETUPSCRIPT=setup.iss 105: TMPNOREGSETUPSCRIPT=noreg-setup.iss 106: TMPSCRIPTIN=setup.iss.in 107: APPLICATION=IMaCh 108: APPNAME=$(APPLICATION)-$(VERSION) 109: GNUPLOTVERSION=4.0 110: LICENSE=Copying 111: TMPSETUPEXE=imach-$(VERSION)-$(IMACHSETUPVERSION)-setup.exe 112: TMPNOREGSETUPEXE=imach-$(VERSION)-$(IMACHSETUPVERSION)-noreg-setup.exe 113: LICENSEFILE=$(LICENSE) 114: INFOBEFOREFILE=README.txt 115: 116: setup.iss: setup.iss.in 117: $(SED) -e "s/@APPNAME@/$(APPNAME)/g; \ 118: s/@NOTINNOREG@//g; \ 119: s/@NOREG@//g; \ 120: s/@IMACHSETUPVERSION@/$(IMACHSETUPVERSION)/g; \ 121: s/@VERSION@/$(VERSION)/g; \ 122: s/@GNUPLOTVERSION@/$(GNUPLOTVERSION)/g; \ 123: s/@INFOBEFOREFILE@/$(INFOBEFOREFILE)/g; \ 124: s/@LICENSEFILE@/$(LICENSEFILE)/g; \ 125: s/@PACKAGE@/$(PACKAGE)/g; \ 126: s/@DICTLANG@/$(DICTLANG)/g; \ 127: s/@VERMAJOR@/$(VERMAJOR)/g; \ 128: s/@COPYRIGHT@/$(COPYRIGHT)/g;" \ 129: setup.iss.in > setup.iss 130: 131: $(TMPNOREGSETUPSCRIPT): $(TMPSCRIPTIN) 132: $(SED) -e "s/@APPNAME@/$(APPNAME)/g; \ 133: s/@NOTINNOREG@/\\;/g; \ 134: s/@NOREG@/noreg-/g; \ 135: s/@IMACHSETUPVERSION@/$(IMACHSETUPVERSION)/g; \ 136: s/@VERSION@/$(VERSION)/g; \ 137: s/@GNUPLOTVERSION@/$(GNUPLOTVERSION)/g; \ 138: s/@INFOBEFOREFILE@/$(INFOBEFOREFILE)/g; \ 139: s/@LICENSEFILE@/$(LICENSEFILE)/g; \ 140: s/@PACKAGE@/$(PACKAGE)/g; \ 141: s/@DICTLANG@/$(DICTLANG)/g; \ 142: s/@VERMAJOR@/$(VERMAJOR)/g; \ 143: s/@COPYRIGHT@/$(COPYRIGHT)/g;" \ 144: $(TMPSCRIPTIN) > $(TMPNOREGSETUPSCRIPT) 145: # $(UNIX2DOS) $(TMPNOREGSETUPSCRIPT) 146: 147: $(TMPSETUPEXE): $(TMPSETUPSCRIPT) 148: $(SETUPCOMP) /cc $(TMPSETUPSCRIPT) 149: 150: $(TMPNOREGSETUPEXE): $(TMPNOREGSETUPSCRIPT) 151: $(SETUPCOMP) /cc $(TMPNOREGSETUPSCRIPT) 152: 153: PARAM=mypar1 154: 155: imachcyg-setup: imachcygopt.exe setup.iss 156: $(CP) imachcygopt.exe imach.exe 157: $(SETUPCOMP) /cc setup.iss 158: cp Output/$(TMPSETUPEXE) imachcyg-setup 159: 160: # imachcyg-noreg-setup : imachcygopt imachcygopt.o setup.iss.in noreg-setup.iss $(TMPNOREGSETUPEXE) 161: imachcyg-noreg-setup: imachcygopt.exe noreg-setup.iss 162: $(CP) imachcygopt.exe imach.exe 163: $(SETUPCOMP) /cc $(TMPNOREGSETUPSCRIPT) 164: cp Output/$(TMPNOREGSETUPEXE) imachcyg-noreg-setup 165: 166: simach : simach.o 167: $(CC) $(LFLAGS) $(LGSL) -o simach simach.o 168: simach.o : simach.c 169: $(CC) $(CFLAGS) -DGSL -c simach.c 170: 171: imach : imach.o 172: $(CC) $(LFLAGS) -o imach imach.o 173: imach.o : imach.c 174: $(CC) $(CFLAGS) -DPOWELL -c imach.c 175: imach-1.129cvsmac : imach-1.129cvsmac.o 176: $(CC) $(LFLAGS) -o imach-1.129cvsmac imach-1.129cvsmac.o 177: imach-1.129cvsmac.o : imach-1.129cvsmac.c 178: $(CC) $(CFLAGS) -DPOWELL -c imach-1.129cvsmac.c 179: 180: imach097b : imach097b.o 181: $(CC) $(LFLAGS) -o imach097b imach097b.o 182: imach097b.o : imach097b.c 183: $(CC) $(CFLAGS) -DPOWELL -c imach097b.c 184: 185: 186: imachsimplified : imachsimplified.o 187: $(CC) $(LFLAGSOPT) -o imachsimplified imachsimplified.o 188: imachsimplified.o : imachsimplified.c 189: $(CC) $(CFLAGSOPT) -DPOWELL -c imachsimplified.c 190: 191: imachgsl : imachgsl.o 192: $(CC) $(LFLAGS) $(LGSL) -o imachgsl imach.o 193: imachgsl.o : imach.c 194: $(CC) $(CFLAGS) -DGSL $(IGSL) -c imach.c 195: 196: imachopt : imachopt.o 197: $(CC) $(LFLAGSOPT) -o imachopt imachopt.o 198: ln -f imachopt imach 199: imachopt.o : imach.c 200: $(CC) $(CFLAGSOPT) -DPOWELL -o imachopt.o -c imach.c 201: 202: imachdmg : imachopt.o create-dmg 203: $(CC) $(LFLAGSOPT) -o imach imachopt.o 204: cp imach imach098Leopard/bin 205: ./create-dmg --volname "IMaCh $(VERSION)" imach$(VERSION).dmg imach098Leopard 206: 207: 208: imachcyg : imachcyg.o strsep.o 209: $(CC) $(LFLAGS) -o imach imachcyg.o strsep.o 210: imachcyg.o : imach.c 211: $(CC) $(CFLAGS) -c -o imachcyg.o imach.c 212: imachcygopt.exe : imachcygopt.o strsep.o 213: $(CC) $(LFLAGSOPT) -o imachcygopt.exe imachcygopt.o strsep.o 214: imachcygopt.o : imach.c 215: $(CC) $(CFLAGSOPT) -c -o imachcygopt.o imach.c 216: strsep.o : strsep.c 217: $(CC) $(CFLAGSOPT) -c -o strsep.o strsep.c 218: 219: imachw32.o : imach.c 220: i386-mingw32-gcc -c imach.c -o imachw32.o 221: imach.exe : imachw32.o 222: i386-mingw32-gcc -mwindows -o imach.exe -lm imachw32.o 223: i386-mingw32-strip imach.exe 224: 225: 226: $(PARAM).htm: imach $(PARAM).imach data1.txt 227: ./imach $(PARAM).imach 228: 229: clean: 230: rm or$(PARAM).txt er$(PARAM).txt pijr$(PARAM).txt plr$(PARAM).txt \ 231: r$(PARAM).txt tr$(PARAM).txt vpl$(PARAM).txt pr$(PARAM).txt \ 232: vr$(PARAM).txt *.gif imach.exe imach.o 233: 234: