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