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