Return to Makefile CVS log | Up to [Local Repository] / imach / src |
*** empty log message ***
1: VERSION=0.98d 2: COPYRIGHT=Copyright (C) 2002-2006 INED-EUROREVES-Institut de longévité 3: IMACHSETUPVERSION=1 4: 5: # make _linux=1 imachopt 6: # make _linux=1 imach 7: 8: # make _macosx=1 9: 10: # Windows 11: # make _windows=1 imachcyg 12: # make _windows=1 imach-setup.exe 13: # make _windows=1 imach-noreg-setup.exe 14: # sortie dans Output/setup.exe 15: # ln -s /cygdrive/c/Program\ Files/Inno\ Setup\ 4/Compil32.exe /usr/local/bin/Compil32 16: ##SETUPCOMP= "C:\Program Files\Inno Setup 3\Compil32.exe" 17: 18: #CC= gcc -v 19: CC= gcc 20: 21: ifdef _macosx 22: # Mac OS/X version 23: LFLAGS= -O3 -lm -DUNIX 24: CFLAGS= -O3 -DUNIX 25: UNIX2DOS= echo "Unix2dos " 26: # Don'know how to launch imach098.pmsp in batch to create package file imach098Panther.pkg 27: # ./createdmg.sh imach imach098panther ./imach098Panther 28: # and directory ./imach098Panther contains package file imach098Panther.pkg 29: endif 30: 31: ifdef _windows 32: # Windows cygwin version 33: LFLAGS= -g -mno-cygwin 34: CFLAGS= -g -mno-cygwin 35: LFLAGSOPT= -O3 -mno-cygwin 36: CFLAGSOPT= -O3 -mno-cygwin 37: UNIX2DOS= unix2dos 38: SETUPCOMP= Compil32 39: ##SETUPCOMP=start /wait "C:\Program\ Files\\Compil32.exe" 40: ##SETUPCOMP= "C:\Program Files\Inno Setup 4\Compil32.exe" 41: endif 42: 43: ifdef _linux 44: CFLAGS= -g -DUNIX 45: LFLAGS= -g -lm 46: CFLAGSOPT= -O3 -DUNIX 47: LFLAGSOPT= -O3 -lm 48: UNIX2DOS= unix2dos 49: SETUPCOMP= wine "C:////Program Files////Inno Setup 4////Compil32.exe" 50: endif 51: 52: SED= sed 53: PACKAGE=imach 54: PROGRAM=IMaCh 55: 56: 57: 58: TMPSETUPSCRIPT=setup.iss 59: TMPNOREGSETUPSCRIPT=noreg-setup.iss 60: TMPSCRIPTIN=setup.iss.in 61: APPLICATION=IMaCh 62: APPNAME=$(APPLICATION)-$(VERSION) 63: GNUPLOTVERSION=4.0 64: LICENSE=Copying 65: TMPSETUPEXE=imach-$(VERSION)-$(IMACHSETUPVERSION)-setup.exe 66: LICENSEFILE=$(LICENSE) 67: INFOBEFOREFILE=README.txt 68: 69: $(TMPSETUPSCRIPT): $(TMPSCRIPTIN) 70: $(SED) -e "s/@APPNAME@/$(APPNAME)/g; \ 71: s/@NOTINNOREG@//g; \ 72: s/@NOREG@//g; \ 73: s/@IMACHSETUPVERSION@/$(IMACHSETUPVERSION)/g; \ 74: s/@VERSION@/$(VERSION)/g; \ 75: s/@GNUPLOTVERSION@/$(GNUPLOTVERSION)/g; \ 76: s/@INFOBEFOREFILE@/$(INFOBEFOREFILE)/g; \ 77: s/@LICENSEFILE@/$(LICENSEFILE)/g; \ 78: s/@PACKAGE@/$(PACKAGE)/g; \ 79: s/@DICTLANG@/$(DICTLANG)/g; \ 80: s/@VERMAJOR@/$(VERMAJOR)/g; \ 81: s/@COPYRIGHT@/$(COPYRIGHT)/g;" \ 82: $(TMPSCRIPTIN) > $(TMPSETUPSCRIPT) 83: $(UNIX2DOS) $(TMPSETUPSCRIPT) 84: 85: $(TMPNOREGSETUPSCRIPT): $(TMPSCRIPTIN) 86: $(SED) -e "s/@APPNAME@/$(APPNAME)/g; \ 87: s/@NOTINNOREG@/\\;/g; \ 88: s/@NOREG@/noreg-/g; \ 89: s/@IMACHSETUPVERSION@/$(IMACHSETUPVERSION)/g; \ 90: s/@VERSION@/$(VERSION)/g; \ 91: s/@GNUPLOTVERSION@/$(GNUPLOTVERSION)/g; \ 92: s/@INFOBEFOREFILE@/$(INFOBEFOREFILE)/g; \ 93: s/@LICENSEFILE@/$(LICENSEFILE)/g; \ 94: s/@PACKAGE@/$(PACKAGE)/g; \ 95: s/@DICTLANG@/$(DICTLANG)/g; \ 96: s/@VERMAJOR@/$(VERMAJOR)/g; \ 97: s/@COPYRIGHT@/$(COPYRIGHT)/g;" \ 98: $(TMPSCRIPTIN) > $(TMPNOREGSETUPSCRIPT) 99: $(UNIX2DOS) $(TMPNOREGSETUPSCRIPT) 100: 101: $(TMPSETUPEXE): $(TMPSETUPSCRIPT) 102: $(SETUPCOMP) /cc $(TMPSETUPSCRIPT) 103: 104: $(TMPNOREGSETUPEXE): $(TMPNOREGSETUPSCRIPT) 105: $(SETUPCOMP) /cc $(TMPNOREGSETUPSCRIPT) 106: 107: PARAM=mypar1 108: 109: imachcyg-setup: imachcygopt.exe setup.iss 110: cp imachcygopt.exe imach.exe 111: $(SETUPCOMP) /cc $(TMPSETUPSCRIPT) 112: 113: # imachcyg-noreg-setup : imachcygopt imachcygopt.o setup.iss.in noreg-setup.iss $(TMPNOREGSETUPEXE) 114: imachcyg-noreg-setup: imachcygopt.exe noreg-setup.iss 115: cp imachcygopt.exe imach.exe 116: $(SETUPCOMP) /cc $(TMPNOREGSETUPSCRIPT) 117: 118: imach : imach.o 119: $(CC) $(LFLAGS) -o imach imach.o 120: imach.o : imach.c 121: $(CC) $(CFLAGS) -c imach.c 122: 123: imachopt : imachopt.o 124: $(CC) $(LFLAGSOPT) -o imachopt imachopt.o 125: ln -f imachopt imach 126: imachopt.o : imach.c 127: $(CC) $(CFLAGSOPT) -o imachopt.o -c imach.c 128: 129: imachcyg : imachcyg.o strsep.o 130: $(CC) $(LFLAGS) -o imach imachcyg.o strsep.o 131: imachcyg.o : imach.c 132: $(CC) $(CFLAGS) -c -o imachcyg.o imach.c 133: imachcygopt.exe : imachcygopt.o strsep.o 134: $(CC) $(LFLAGSOPT) -o imachcygopt.exe imachcygopt.o strsep.o 135: imachcygopt.o : imach.c 136: $(CC) $(CFLAGSOPT) -c -o imachcygopt.o imach.c 137: strsep.o : strsep.c 138: $(CC) $(CFLAGSOPT) -c -o strsep.o strsep.c 139: 140: imachw32.o : imach.c 141: i386-mingw32-gcc -c imach.c -o imachw32.o 142: imach.exe : imachw32.o 143: i386-mingw32-gcc -mwindows -o imach.exe -lm imachw32.o 144: i386-mingw32-strip imach.exe 145: 146: 147: $(PARAM).htm: imach $(PARAM).imach data1.txt 148: ./imach $(PARAM).imach 149: 150: clean: 151: rm or$(PARAM).txt er$(PARAM).txt pijr$(PARAM).txt plr$(PARAM).txt \ 152: r$(PARAM).txt tr$(PARAM).txt vpl$(PARAM).txt pr$(PARAM).txt \ 153: vr$(PARAM).txt *.gif imach.exe imach.o 154: 155: