1 | # |
---|
2 | # makefile for Earthworm |
---|
3 | # Lucky Vidmar Mon Jan 11 21:31:51 MST 1999 |
---|
4 | # |
---|
5 | # |
---|
6 | # This makefile contains all the directives necessary to compile |
---|
7 | # earthworm modules in a directory under Solaris and NT, as well as |
---|
8 | # clean up the Earthworm source and binary file tree. |
---|
9 | # |
---|
10 | # 1. To build (compile) the Earthworm modules on a Sun: |
---|
11 | # make solaris |
---|
12 | # |
---|
13 | # 2. To build (compile) the Earthworm modules on an NT PC: |
---|
14 | # nmake nt |
---|
15 | # |
---|
16 | # 3. To clean up the source tree, i.e. remove all *.o, *.obj, *~, *%, |
---|
17 | # and core files from all modules, on a Sun: |
---|
18 | # make clean_solaris |
---|
19 | # |
---|
20 | # 4. To clean up the source tree, i.e. remove all *.o, *.obj, *~, *%, |
---|
21 | # and core files from all modules, on a PC running NT: |
---|
22 | # nmake clean_nt |
---|
23 | # |
---|
24 | # 5. To clean up the bin directory, i.e. remove all Earthworm programs, |
---|
25 | # on a Sun: |
---|
26 | # make clean_bin_solaris |
---|
27 | # |
---|
28 | # 6. To clean up the bin directory, i.e. remove all Earthworm programs, |
---|
29 | # on a PC running NT: |
---|
30 | # nmake clean_bin_nt |
---|
31 | # |
---|
32 | # |
---|
33 | # |
---|
34 | # Whenever a new module is added to Earthworm, it should be added to |
---|
35 | # this makefile to the list of ALL_MODULES, and to the appropriate (or |
---|
36 | # both) lists of SOLARIS_MODULES and NT_MODULES. The analogous |
---|
37 | # procedure should be followed when a module is removed from the |
---|
38 | # Earthworm distribution. |
---|
39 | # |
---|
40 | |
---|
41 | |
---|
42 | |
---|
43 | # |
---|
44 | # List all modules (for cleaning purposes) |
---|
45 | # |
---|
46 | ALL_MODULES = \ |
---|
47 | binder_ew \ |
---|
48 | carlstatrig \ |
---|
49 | carlsubtrig \ |
---|
50 | compress_UA \ |
---|
51 | decimate \ |
---|
52 | decompress_UA \ |
---|
53 | eqbuf \ |
---|
54 | eqcoda \ |
---|
55 | eqfilter \ |
---|
56 | eqprelim \ |
---|
57 | eqproc \ |
---|
58 | eqverify \ |
---|
59 | evansassoc \ |
---|
60 | evanstrig \ |
---|
61 | ew2rsam \ |
---|
62 | ew2ssam \ |
---|
63 | fir \ |
---|
64 | localmag \ |
---|
65 | geqproc \ |
---|
66 | glass \ |
---|
67 | globalproc \ |
---|
68 | gmew \ |
---|
69 | hyp2000 \ |
---|
70 | hyp2000_mgr \ |
---|
71 | pick_ew \ |
---|
72 | pkfilter \ |
---|
73 | rayloc_ew \ |
---|
74 | raypicker \ |
---|
75 | statrigfilter \ |
---|
76 | wftimefilter |
---|
77 | |
---|
78 | # |
---|
79 | # List all modules to be compiled into the NT distribution |
---|
80 | # |
---|
81 | NT_MODULES = \ |
---|
82 | binder_ew \ |
---|
83 | carlstatrig \ |
---|
84 | carlsubtrig \ |
---|
85 | compress_UA \ |
---|
86 | decimate \ |
---|
87 | decompress_UA \ |
---|
88 | eqbuf \ |
---|
89 | eqcoda \ |
---|
90 | eqfilter \ |
---|
91 | eqprelim \ |
---|
92 | eqproc \ |
---|
93 | eqverify \ |
---|
94 | evansassoc \ |
---|
95 | evanstrig \ |
---|
96 | ew2rsam \ |
---|
97 | ew2ssam \ |
---|
98 | fir \ |
---|
99 | geqproc \ |
---|
100 | glass \ |
---|
101 | globalproc \ |
---|
102 | localmag \ |
---|
103 | gmew \ |
---|
104 | hyp2000 \ |
---|
105 | hyp2000_mgr \ |
---|
106 | pick_ew \ |
---|
107 | pkfilter \ |
---|
108 | raypicker \ |
---|
109 | statrigfilter \ |
---|
110 | wftimefilter |
---|
111 | |
---|
112 | #rayloc_ew \ |
---|
113 | |
---|
114 | # DK 082402 hyp2000 and hyp2000_mgr will not compile without fortran |
---|
115 | # compiler and linker. |
---|
116 | |
---|
117 | |
---|
118 | # |
---|
119 | # List all modules to be compiled into the Solaris distribution |
---|
120 | # |
---|
121 | SOLARIS_MODULES = \ |
---|
122 | binder_ew \ |
---|
123 | carlstatrig \ |
---|
124 | carlsubtrig \ |
---|
125 | compress_UA \ |
---|
126 | decimate \ |
---|
127 | decompress_UA \ |
---|
128 | eqbuf \ |
---|
129 | eqcoda \ |
---|
130 | eqfilter \ |
---|
131 | eqprelim \ |
---|
132 | eqproc \ |
---|
133 | eqverify \ |
---|
134 | evansassoc \ |
---|
135 | evanstrig \ |
---|
136 | ew2rsam \ |
---|
137 | ew2ssam \ |
---|
138 | fir \ |
---|
139 | localmag \ |
---|
140 | geqproc \ |
---|
141 | globalproc \ |
---|
142 | gmew \ |
---|
143 | hyp2000 \ |
---|
144 | hyp2000_mgr \ |
---|
145 | pick_ew \ |
---|
146 | pkfilter \ |
---|
147 | rayloc_ew \ |
---|
148 | raypicker \ |
---|
149 | statrigfilter \ |
---|
150 | wftimefilter |
---|
151 | |
---|
152 | # |
---|
153 | # Top level directives |
---|
154 | # |
---|
155 | unix: unix_modules |
---|
156 | solaris: sol_modules |
---|
157 | nt: nt_modules |
---|
158 | |
---|
159 | |
---|
160 | # |
---|
161 | # Solaris directives |
---|
162 | # |
---|
163 | sol_modules:: FRC |
---|
164 | @for x in $(SOLARIS_MODULES); \ |
---|
165 | do \ |
---|
166 | (echo ------; cd $$x; echo Making $@ in:; pwd; \ |
---|
167 | make -f makefile.sol); \ |
---|
168 | done |
---|
169 | |
---|
170 | clean_solaris: |
---|
171 | @for x in $(SOLARIS_MODULES); \ |
---|
172 | do \ |
---|
173 | (cd $$x; echo Cleaning in:; pwd; \ |
---|
174 | make -f makefile.sol clean); \ |
---|
175 | done |
---|
176 | |
---|
177 | clean_bin_solaris: |
---|
178 | @for x in $(SOLARIS_MODULES); \ |
---|
179 | do \ |
---|
180 | (cd $$x; echo Cleaning binaries in:; pwd; \ |
---|
181 | make -f makefile.sol clean_bin); \ |
---|
182 | done |
---|
183 | |
---|
184 | # |
---|
185 | # Unix directives |
---|
186 | # |
---|
187 | unix_modules:: FRC |
---|
188 | @for x in $(SOLARIS_MODULES); \ |
---|
189 | do \ |
---|
190 | (echo ------; cd $$x; echo Making $@ in:; pwd; \ |
---|
191 | make -f makefile.ux); \ |
---|
192 | done |
---|
193 | |
---|
194 | clean_unix: |
---|
195 | @for x in $(SOLARIS_MODULES); \ |
---|
196 | do \ |
---|
197 | (cd $$x; echo Cleaning in:; pwd; \ |
---|
198 | make -f makefile.ux clean); \ |
---|
199 | done |
---|
200 | |
---|
201 | clean_bin_unix: |
---|
202 | @for x in $(SOLARIS_MODULES); \ |
---|
203 | do \ |
---|
204 | (cd $$x; echo Cleaning binaries in:; pwd; \ |
---|
205 | make -f makefile.ux clean_bin); \ |
---|
206 | done |
---|
207 | |
---|
208 | |
---|
209 | |
---|
210 | |
---|
211 | |
---|
212 | # |
---|
213 | # NT directives |
---|
214 | # |
---|
215 | nt_modules:: FRC |
---|
216 | @echo "Making Earthworm seismic_processing modules" |
---|
217 | @nt_make_subdirs $(NT_MODULES) |
---|
218 | |
---|
219 | |
---|
220 | clean_nt:: FRC |
---|
221 | @for %x in ($(NT_MODULES)) \ |
---|
222 | do \ |
---|
223 | @nt_clean %x |
---|
224 | |
---|
225 | clean_bin_nt:: FRC |
---|
226 | @for %x in ($(NT_MODULES)) \ |
---|
227 | do \ |
---|
228 | @nt_clbin %x |
---|
229 | |
---|
230 | FRC: |
---|