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