Annotation of imach/src/Makefile, revision 1.26
1.25 brouard 1: VERSION=0.98h
1.21 brouard 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
1.23 lievre 12: # make _windows=1 imachcyg-setup (touch setup.iss.in)
13: # make _windows=1 imachcyg-noreg-setup
1.21 brouard 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
1.26 ! brouard 44: #CFLAGS= -g -DUNIX -DDEBUGHESS
1.21 brouard 45: CFLAGS= -g -DUNIX
1.25 brouard 46: LFLAGS= -g -lm
47: LGSL= -lgsl -lgslcblas
1.21 brouard 48: CFLAGSOPT= -O3 -DUNIX
49: LFLAGSOPT= -O3 -lm
50: UNIX2DOS= unix2dos
51: SETUPCOMP= wine "C:////Program Files////Inno Setup 4////Compil32.exe"
52: endif
53:
54: SED= sed
55: PACKAGE=imach
56: PROGRAM=IMaCh
57:
58:
59:
60: TMPSETUPSCRIPT=setup.iss
61: TMPNOREGSETUPSCRIPT=noreg-setup.iss
62: TMPSCRIPTIN=setup.iss.in
63: APPLICATION=IMaCh
64: APPNAME=$(APPLICATION)-$(VERSION)
65: GNUPLOTVERSION=4.0
66: LICENSE=Copying
67: TMPSETUPEXE=imach-$(VERSION)-$(IMACHSETUPVERSION)-setup.exe
68: LICENSEFILE=$(LICENSE)
69: INFOBEFOREFILE=README.txt
70:
71: $(TMPSETUPSCRIPT): $(TMPSCRIPTIN)
72: $(SED) -e "s/@APPNAME@/$(APPNAME)/g; \
73: s/@NOTINNOREG@//g; \
74: s/@NOREG@//g; \
75: s/@IMACHSETUPVERSION@/$(IMACHSETUPVERSION)/g; \
76: s/@VERSION@/$(VERSION)/g; \
77: s/@GNUPLOTVERSION@/$(GNUPLOTVERSION)/g; \
78: s/@INFOBEFOREFILE@/$(INFOBEFOREFILE)/g; \
79: s/@LICENSEFILE@/$(LICENSEFILE)/g; \
80: s/@PACKAGE@/$(PACKAGE)/g; \
81: s/@DICTLANG@/$(DICTLANG)/g; \
82: s/@VERMAJOR@/$(VERMAJOR)/g; \
83: s/@COPYRIGHT@/$(COPYRIGHT)/g;" \
84: $(TMPSCRIPTIN) > $(TMPSETUPSCRIPT)
85: $(UNIX2DOS) $(TMPSETUPSCRIPT)
86:
87: $(TMPNOREGSETUPSCRIPT): $(TMPSCRIPTIN)
88: $(SED) -e "s/@APPNAME@/$(APPNAME)/g; \
89: s/@NOTINNOREG@/\\;/g; \
90: s/@NOREG@/noreg-/g; \
91: s/@IMACHSETUPVERSION@/$(IMACHSETUPVERSION)/g; \
92: s/@VERSION@/$(VERSION)/g; \
93: s/@GNUPLOTVERSION@/$(GNUPLOTVERSION)/g; \
94: s/@INFOBEFOREFILE@/$(INFOBEFOREFILE)/g; \
95: s/@LICENSEFILE@/$(LICENSEFILE)/g; \
96: s/@PACKAGE@/$(PACKAGE)/g; \
97: s/@DICTLANG@/$(DICTLANG)/g; \
98: s/@VERMAJOR@/$(VERMAJOR)/g; \
99: s/@COPYRIGHT@/$(COPYRIGHT)/g;" \
100: $(TMPSCRIPTIN) > $(TMPNOREGSETUPSCRIPT)
101: $(UNIX2DOS) $(TMPNOREGSETUPSCRIPT)
102:
103: $(TMPSETUPEXE): $(TMPSETUPSCRIPT)
104: $(SETUPCOMP) /cc $(TMPSETUPSCRIPT)
105:
106: $(TMPNOREGSETUPEXE): $(TMPNOREGSETUPSCRIPT)
107: $(SETUPCOMP) /cc $(TMPNOREGSETUPSCRIPT)
108:
109: PARAM=mypar1
110:
111: imachcyg-setup: imachcygopt.exe setup.iss
112: cp imachcygopt.exe imach.exe
113: $(SETUPCOMP) /cc $(TMPSETUPSCRIPT)
114:
115: # imachcyg-noreg-setup : imachcygopt imachcygopt.o setup.iss.in noreg-setup.iss $(TMPNOREGSETUPEXE)
116: imachcyg-noreg-setup: imachcygopt.exe noreg-setup.iss
117: cp imachcygopt.exe imach.exe
118: $(SETUPCOMP) /cc $(TMPNOREGSETUPSCRIPT)
119:
1.25 brouard 120: simach : simach.o
121: $(CC) $(LFLAGS) $(LGSL) -o simach simach.o
122: simach.o : simach.c
123: $(CC) $(CFLAGS) -c simach.c
124:
1.21 brouard 125: imach : imach.o
126: $(CC) $(LFLAGS) -o imach imach.o
127: imach.o : imach.c
128: $(CC) $(CFLAGS) -c imach.c
129:
130: imachopt : imachopt.o
131: $(CC) $(LFLAGSOPT) -o imachopt imachopt.o
132: ln -f imachopt imach
133: imachopt.o : imach.c
134: $(CC) $(CFLAGSOPT) -o imachopt.o -c imach.c
135:
136: imachcyg : imachcyg.o strsep.o
137: $(CC) $(LFLAGS) -o imach imachcyg.o strsep.o
138: imachcyg.o : imach.c
139: $(CC) $(CFLAGS) -c -o imachcyg.o imach.c
140: imachcygopt.exe : imachcygopt.o strsep.o
141: $(CC) $(LFLAGSOPT) -o imachcygopt.exe imachcygopt.o strsep.o
142: imachcygopt.o : imach.c
143: $(CC) $(CFLAGSOPT) -c -o imachcygopt.o imach.c
144: strsep.o : strsep.c
145: $(CC) $(CFLAGSOPT) -c -o strsep.o strsep.c
146:
147: imachw32.o : imach.c
148: i386-mingw32-gcc -c imach.c -o imachw32.o
149: imach.exe : imachw32.o
150: i386-mingw32-gcc -mwindows -o imach.exe -lm imachw32.o
151: i386-mingw32-strip imach.exe
152:
153:
154: $(PARAM).htm: imach $(PARAM).imach data1.txt
155: ./imach $(PARAM).imach
156:
157: clean:
158: rm or$(PARAM).txt er$(PARAM).txt pijr$(PARAM).txt plr$(PARAM).txt \
159: r$(PARAM).txt tr$(PARAM).txt vpl$(PARAM).txt pr$(PARAM).txt \
160: vr$(PARAM).txt *.gif imach.exe imach.o
161:
162:
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>