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