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