1 |
#!/bin/csh -f |
#!/bin/csh -f |
2 |
# |
# |
3 |
# $Header$ |
# $Header$ |
4 |
|
# $Name$ |
5 |
# |
# |
6 |
# Makefile generator for MITgcm UV codes |
# Makefile generator for MITgcm UV codes |
7 |
# created by cnh 03/98 |
# created by cnh 03/98 |
9 |
# modified by aja 01/00 |
# modified by aja 01/00 |
10 |
|
|
11 |
# Default lists |
# Default lists |
12 |
set DISABLE = ( aim ) |
set DISABLE = ( aim autodiff cal cost ctrl ecco exf grdchk ) |
13 |
set ENABLE = ( ) |
set ENABLE = ( ) |
14 |
set MODS = ( ) |
set MODS = ( ) |
15 |
|
|
51 |
echo "***" Command line \"$arg\" will override this. |
echo "***" Command line \"$arg\" will override this. |
52 |
endif |
endif |
53 |
set ROOTDIR = ( `echo $arg | sed 's/-rootdir=//' `) |
set ROOTDIR = ( `echo $arg | sed 's/-rootdir=//' `) |
|
if (! $?EXEDIR) set EXEDIR = ( . ) |
|
54 |
breaksw |
breaksw |
55 |
case -mods: |
case -mods: |
56 |
case -mods=: |
case -mods=: |
77 |
echo "-enable overrides -disable, ie. a package listed in both is enabled" |
echo "-enable overrides -disable, ie. a package listed in both is enabled" |
78 |
exit |
exit |
79 |
breaksw |
breaksw |
80 |
|
case -ieee: |
81 |
|
set IEEE |
82 |
|
breaksw |
83 |
case -enable=*: |
case -enable=*: |
84 |
set ENABLE = ( $ENABLE `echo $arg | sed 's/-enable=//' | sed 's/,/ /g' `) |
set ENABLE = ( $ENABLE `echo $arg | sed 's/-enable=//' | sed 's/,/ /g' `) |
85 |
breaksw |
breaksw |
92 |
echo "Including paths to JAM libraries" |
echo "Including paths to JAM libraries" |
93 |
breaksw |
breaksw |
94 |
case -help: |
case -help: |
95 |
echo "usage: $0 [-help] [-makefile[=...]] [-platform=...] [-mpi]" |
echo "usage: $0 [-help] [-makefile[=...]] [-platform=...] [-mpi] [-jam] [-disable=pkg1[,pkg2,...]] [-enable=pkg1[,pkg2,...]] [-mods=dir1[,dir2,...]] [-rootdir=dir]" |
96 |
|
cat << EOF |
97 |
|
|
98 |
|
$0 is used to generate the Makefile in the current directory. |
99 |
|
|
100 |
|
Typical invocations are: |
101 |
|
o from "bin": ../tools/genmake |
102 |
|
o from "verification/expt/code": ../../../tools/genmake |
103 |
|
o from "verification/expt/input": ../../../tools/genmake -mods=../code |
104 |
|
o from a scratch directory: ~/mitgcm/tools/genmake -rootdir=~/mitgcm |
105 |
|
or ~/mitgcm/tools/genmake -rootdir=~/mitgcm -mods=~/mymods |
106 |
|
|
107 |
|
Packages (collected modules of code) can be disabled to avoid unnecessary |
108 |
|
compilation of unused code. For instance if you know you will not |
109 |
|
use GM/Redi, KPP and OBCS and they are appropriate turned-off in the |
110 |
|
configuration: |
111 |
|
.../tools/genmake -disable=gmredi,kpp,obcs |
112 |
|
|
113 |
|
If you add some source files you can re-call the previous instance of |
114 |
|
genmake with "make makefile". |
115 |
|
|
116 |
|
genmake also reads the file .genmakerc which can be used to configure |
117 |
|
options (primarily the command-line options above) for particular experiments. |
118 |
|
EOF |
119 |
exit |
exit |
120 |
breaksw |
breaksw |
121 |
default: |
default: |
139 |
set mach = ( `uname -a` ) |
set mach = ( `uname -a` ) |
140 |
echo Operating system: $mach |
echo Operating system: $mach |
141 |
|
|
|
|
|
142 |
# Directories for source, includes, binaries and executables |
# Directories for source, includes, binaries and executables |
143 |
# |
# |
144 |
# If -rootdir wasn't specified then assume script is being run from bin |
# If -rootdir wasn't specified then assume script is being run from bin |
145 |
# but if it was supplied then we should place the executable in the build dir |
# but if it was supplied then we should place the executable in the build dir |
146 |
if (! $?ROOTDIR) then |
if (! $?ROOTDIR) then |
147 |
set pwd=`pwd` |
set pwd=`pwd` |
148 |
if ($pwd:t == bin) then |
if ($pwd:t == bin & -d ../model & -d ../eesupp & -d ../pkg) then |
149 |
if (-d ../exe & -d ../model & -d ../eesupp & -d ../pkg) then |
set ROOTDIR = ( .. ) |
|
set ROOTDIR = ( .. ) |
|
|
if (! $?EXEDIR) set EXEDIR = ( ../exe ) |
|
|
else if (-d ../model & -d ../eesupp & -d ../pkg) then |
|
|
echo In bin with no exe |
|
|
if (! $?EXEDIR) set EXEDIR = ( . ) |
|
|
endif |
|
150 |
endif |
endif |
151 |
endif |
endif |
152 |
# Scan for logical ROOTDIR |
# Scan for logical ROOTDIR |
154 |
foreach dr (. .. ../.. ../../.. ../../../.. ../../../../..) |
foreach dr (. .. ../.. ../../.. ../../../.. ../../../../..) |
155 |
if (-d $dr/model & -d $dr/eesupp & -d $dr/pkg) then |
if (-d $dr/model & -d $dr/eesupp & -d $dr/pkg) then |
156 |
set ROOTDIR = $dr |
set ROOTDIR = $dr |
|
if (! $?EXEDIR) set EXEDIR = ( . ) |
|
157 |
echo ROOTDIR was not specified. Setting ROOTDIR = \"$ROOTDIR\" |
echo ROOTDIR was not specified. Setting ROOTDIR = \"$ROOTDIR\" |
158 |
break |
break |
159 |
endif |
endif |
171 |
# source code in the standard directories |
# source code in the standard directories |
172 |
if (! $?MODS) then |
if (! $?MODS) then |
173 |
set SOURCEDIRS = ( ) |
set SOURCEDIRS = ( ) |
174 |
set INCLUDEDIRS = ( . ) |
set INCLUDEDIRS = ( ) |
175 |
else |
else |
176 |
set SOURCEDIRS = ( $MODS ) |
set SOURCEDIRS = ( $MODS ) |
177 |
set INCLUDEDIRS = ( . $MODS ) |
set INCLUDEDIRS = ( $MODS ) |
178 |
endif |
endif |
179 |
if (! $?BUILDDIR) set BUILDDIR = ( . ) |
if (! $?BUILDDIR) set BUILDDIR = ( . ) |
180 |
if (! -d $BUILDDIR) then |
if (! -d $BUILDDIR) then |
181 |
echo Build directory $BUILDDIR not found.;exit 1 |
echo Build directory $BUILDDIR not found.;exit 1 |
182 |
endif |
endif |
183 |
|
if (! $?EXEDIR) then |
184 |
|
set pwd=`pwd` |
185 |
|
if ($pwd:t == bin & -d ../exe & $ROOTDIR == ..) then |
186 |
|
set EXEDIR = ( ../exe ) |
187 |
|
else |
188 |
|
set EXEDIR = ( . ) |
189 |
|
endif |
190 |
|
endif |
191 |
if (! -d $EXEDIR) then |
if (! -d $EXEDIR) then |
192 |
echo Executable directory $EXEDIR not found.;exit 1 |
echo Executable directory $EXEDIR not found.;exit 1 |
193 |
endif |
endif |
197 |
endif |
endif |
198 |
if (! $?EXECUTABLE) set EXECUTABLE = ( mitgcmuv ) |
if (! $?EXECUTABLE) set EXECUTABLE = ( mitgcmuv ) |
199 |
|
|
200 |
|
# We have a special set of source files in eesupp/src which |
201 |
|
# are generated from some template source files. We'll make them |
202 |
|
# first so the appear as regular source code |
203 |
|
if (-r $ROOTDIR/eesupp/src/Makefile) then |
204 |
|
echo Making source files in eesupp from templates... |
205 |
|
(cd $ROOTDIR/eesupp/src/; make) >& make_eesupp.errs |
206 |
|
if ($status == 0) then |
207 |
|
rm -f make_eesupp.errs |
208 |
|
else |
209 |
|
cat make_eesupp.errs |
210 |
|
exit 2 |
211 |
|
endif |
212 |
|
endif |
213 |
|
|
214 |
# Now scan the standard source code tree |
# Now scan the standard source code tree |
215 |
foreach dr ($SOURCEDIRS) |
foreach dr ($SOURCEDIRS) |
216 |
set adr=$dr |
set adr=$dr |
217 |
if (! -d $adr) then |
if (! -d $adr) then |
218 |
echo mods directory $adr not found.; exit 1 |
echo mods directory $adr not found.; exit 1 |
219 |
endif |
endif |
220 |
echo Adding mods directory $adr |
echo Adding mods dir: $adr |
|
end |
|
|
if (! $?STANDARDDIRS) set STANDARDDIRS=(eesupp model diags) |
|
|
foreach dr ($STANDARDDIRS) |
|
|
set adr=$ROOTDIR/$dr/src |
|
|
if (! -d $adr) then |
|
|
echo Source directory $adr not found.; exit 1 |
|
|
endif |
|
|
echo Adding source directory $adr |
|
|
set SOURCEDIRS = ($SOURCEDIRS $adr) |
|
|
set idr = `echo $adr | sed 's/src/inc/'` |
|
|
set INCLUDEDIRS = ($INCLUDEDIRS $idr) |
|
221 |
end |
end |
222 |
if (! $?PACKAGES) then |
if (! $?PACKAGES) then |
223 |
set PACKAGES=(`cd $ROOTDIR/pkg; ls -1 | grep -v CVS`) |
set PACKAGES=() |
224 |
|
foreach pkg (`cd $ROOTDIR/pkg; find . -type d | grep -v CVS | sed 's:\./::' | grep -v "\." | sort`) |
225 |
|
if (-d $ROOTDIR/pkg/$pkg) set PACKAGES=($PACKAGES $pkg) |
226 |
|
end |
227 |
endif |
endif |
228 |
foreach dr ($PACKAGES) |
foreach dr ($PACKAGES) |
229 |
set enable |
set enable |
230 |
foreach p ($DISABLE) |
foreach p ($DISABLE) |
231 |
|
if ($p != 'all' & ! -d $ROOTDIR/pkg/$p) then |
232 |
|
echo Specified package \"$p\" does not exist. |
233 |
|
exit 1 |
234 |
|
endif |
235 |
if ($dr == $p) unset enable |
if ($dr == $p) unset enable |
236 |
if ($p == 'all') unset enable |
if ($p == 'all') unset enable |
237 |
|
# The following allows entire trees to be disabled |
238 |
|
if ($dr:h == $p) unset enable |
239 |
|
if ($dr:h:h == $p) unset enable |
240 |
|
if ($dr:h:h:h == $p) unset enable |
241 |
|
if ($dr:h:h:h:h == $p) unset enable |
242 |
end |
end |
243 |
foreach p ($ENABLE) |
foreach p ($ENABLE) |
244 |
if ($dr == $p) set enable |
if ($dr == $p) set enable |
248 |
if (! -d $adr) then |
if (! -d $adr) then |
249 |
echo Source directory $adr not found.; exit 1 |
echo Source directory $adr not found.; exit 1 |
250 |
endif |
endif |
251 |
echo Adding package directory $adr |
echo Adding pkg dir: $adr |
252 |
set SOURCEDIRS = ($SOURCEDIRS $adr) |
set SOURCEDIRS = ($SOURCEDIRS $adr) |
253 |
set INCLUDEDIRS = ($INCLUDEDIRS $adr) |
set INCLUDEDIRS = ($INCLUDEDIRS $adr) |
254 |
else |
else |
255 |
echo "*" Package \"$dr\" has not been enabled. |
echo " *" Package \"$dr\" NOT enabled. |
256 |
endif |
endif |
257 |
end |
end |
258 |
|
if (! $?STANDARDDIRS) set STANDARDDIRS=(eesupp model) |
259 |
|
foreach dr ($STANDARDDIRS) |
260 |
|
set adr=$ROOTDIR/$dr/src |
261 |
|
if (! -d $adr) then |
262 |
|
echo Source directory $adr not found.; exit 1 |
263 |
|
endif |
264 |
|
echo Adding src dir: $adr |
265 |
|
set SOURCEDIRS = ($SOURCEDIRS $adr) |
266 |
|
set idr = `echo $adr | sed 's/src/inc/'` |
267 |
|
set INCLUDEDIRS = ($INCLUDEDIRS $idr) |
268 |
|
end |
269 |
|
|
270 |
# This is the generic configuration. |
# This is the generic configuration. |
271 |
# Platform specific options are chosen below |
# Platform specific options are chosen below |
275 |
set FC = ( 'f77' ) |
set FC = ( 'f77' ) |
276 |
set LINK = ( 'f77' ) |
set LINK = ( 'f77' ) |
277 |
set DEFINES = ( ) |
set DEFINES = ( ) |
278 |
set INCLUDES = ( ) |
set INCLUDES = ( -I. ) |
279 |
set FFLAGS = ( ) |
set FFLAGS = ( ) |
280 |
set FOPTIM = ( ) |
set FOPTIM = ( ) |
281 |
set KFLAGS1 = ( ) |
set KFLAGS1 = ( ) |
297 |
|
|
298 |
# Platform specific options |
# Platform specific options |
299 |
switch ($platform$USEMPI) |
switch ($platform$USEMPI) |
|
case OSF1: |
|
300 |
case OSF1+mpi: |
case OSF1+mpi: |
301 |
|
echo "Configuring for DEC Alpha with MPI" |
302 |
|
set LIBS = ( '-lfmpi -lmpi -lkmp_osfp10 -pthread' ) |
303 |
|
case OSF1: |
304 |
echo "Configuring for DEC Alpha" |
echo "Configuring for DEC Alpha" |
305 |
set CPP = ( '/usr/bin/cpp -P' ) |
set CPP = ( '/usr/bin/cpp -P' ) |
306 |
set DEFINES = ( ${DEFINES} '-DTARGET_DEC -DWORDLENGTH=1' ) |
set DEFINES = ( ${DEFINES} '-DTARGET_DEC -DWORDLENGTH=1' ) |
307 |
set KPP = ( 'kapf' ) |
set KPP = ( ) |
308 |
set KPPFILES = ( 'main.F' ) |
set KPPFILES = ( ) |
309 |
set KFLAGS1 = ( '-scan=132 -noconc -cmp=' ) |
set KFLAGS1 = ( ) |
310 |
set FC = ( 'f77' ) |
set FC = ( 'f77' ) |
311 |
set FFLAGS = ( '-convert big_endian -r8 -extend_source -automatic -call_shared -notransform_loops -align dcommons' ) |
set FFLAGS = ( '-convert big_endian -r8 -extend_source -automatic -call_shared -notransform_loops -align dcommons' ) |
312 |
set FOPTIM = ( '-O5 -fast -tune host -inline all' ) |
set FOPTIM = ( '-O5 -fast -tune host -inline all' ) |
313 |
set NOOPTFLAGS = ( '-O0' ) |
set NOOPTFLAGS = ( '-O0' ) |
|
set LIBS = ( '-lfmpi -lmpi -lkmp_osfp10 -pthread' ) |
|
314 |
set NOOPTFILES = ( 'barrier.F different_multiple.F external_fields_load.F') |
set NOOPTFILES = ( 'barrier.F different_multiple.F external_fields_load.F') |
315 |
set RMFILES = ( '*.p.out' ) |
set RMFILES = ( '*.p.out' ) |
316 |
breaksw |
breaksw |
328 |
echo "Configuring for SGI Mips" |
echo "Configuring for SGI Mips" |
329 |
set DEFINES = ( ${DEFINES} '-DTARGET_SGI -DWORDLENGTH=4' ) |
set DEFINES = ( ${DEFINES} '-DTARGET_SGI -DWORDLENGTH=4' ) |
330 |
set INCLUDES = ( '-I/usr/local/mpi/include' ) |
set INCLUDES = ( '-I/usr/local/mpi/include' ) |
331 |
set FFLAGS = ( '-extend_source -mp -mpio -bytereclen -r10000 -mips4' ) |
set FFLAGS = ( '-extend_source -mp -mpio -bytereclen -r10000 -mips4 -r8 -static' ) |
332 |
set FOPTIM = ( '-O3' ) |
set FOPTIM = ( '-O3' ) |
333 |
# set NOOPTFLAGS = ( '-O0' ) |
# set NOOPTFLAGS = ( '-O0' ) |
334 |
# set NOOPTFILES = ( 'barrier.F different_multiple.F ' \ |
# set NOOPTFILES = ( 'barrier.F different_multiple.F ' \ |
380 |
set FFLAGS = ( '-stackvar -explicitpar -vpara -e -u -noautopar') |
set FFLAGS = ( '-stackvar -explicitpar -vpara -e -u -noautopar') |
381 |
set FOPTIM = ( '-fast -O3' ) |
set FOPTIM = ( '-fast -O3' ) |
382 |
set NOOPTFLAGS = ( '-O0' ) |
set NOOPTFLAGS = ( '-O0' ) |
383 |
set NOOPTFILES = ( 'barrier.F different_multiple.F external_fields_load.F ini_vertical_grid.F') |
set NOOPTFILES = ( 'barrier.F different_multiple.F external_fields_load.F ini_vertical_grid.F ini_spherical_polar_grid.F ini_cori.F') |
384 |
breaksw |
breaksw |
385 |
case SunOS+mpi: |
case SunOS+mpi: |
386 |
set LN = ( '/usr/bin/ln -s' ) |
set LN = ( '/usr/bin/ln -s' ) |
392 |
set NOOPTFLAGS = ( '-O0' ) |
set NOOPTFLAGS = ( '-O0' ) |
393 |
set LIBS = ( '-L/usr/local/mpi/lib/solaris/ch_shmem -lmpi -lthread' \ |
set LIBS = ( '-L/usr/local/mpi/lib/solaris/ch_shmem -lmpi -lthread' \ |
394 |
'-lsocket -lnsl' ) |
'-lsocket -lnsl' ) |
395 |
set NOOPTFILES = ( 'barrier.F different_multiple.F external_fields_load.F ini_vertical_grid.F') |
set NOOPTFILES = ( 'barrier.F different_multiple.F external_fields_load.F ini_vertical_grid.F ini_spherical_polar_grid.F ini_cori.F') |
396 |
breaksw |
breaksw |
397 |
case IRIX32: |
case IRIX32: |
398 |
echo "Configuring for SGI ONYX running IRIX64" |
echo "Configuring for SGI ONYX running IRIX64" |
429 |
set DEFINES = ( ${DEFINES} '-D_BYTESWAPIO -DWORDLENGTH=4' ) |
set DEFINES = ( ${DEFINES} '-D_BYTESWAPIO -DWORDLENGTH=4' ) |
430 |
set FC = ( 'g77' ) |
set FC = ( 'g77' ) |
431 |
set FFLAGS = ( '-Wimplicit -Wunused -Wuninitialized' ) |
set FFLAGS = ( '-Wimplicit -Wunused -Wuninitialized' ) |
432 |
set FOPTIM = ( '-O3 -malign-double -funroll-loops ' ) |
if ($?IEEE) set FFLAGS = ( $FFLAGS '-ffloat-store' ) |
433 |
|
set FOPTIM = ( '-O3 -malign-double -funroll-loops' ) |
434 |
set LINK = ( 'g77' ) |
set LINK = ( 'g77' ) |
435 |
breaksw |
breaksw |
436 |
case Linux+pgi+mpi: |
case Linux+pgi+mpi: |
437 |
if ($?include_jam_libs) then |
if ($?include_jam_libs) then |
438 |
set INCLUDES = ( '-I/usr/local//mpich-cnh-install/include' ) |
set INCLUDES = ( '-I/usr/local/mpich-1.2.1/pgi_fortran_binding/include' ) |
439 |
set LIBS = ( '-L/usr/local/mpich-cnh-install/lib/LINUX/ch_p4/ -lfmpich -lmpich' ) |
set LIBS = ( '-L/usr/local/mpich-1.2.1/pgi_fortran_binding/lib/ -lfmpich -lmpich' ) |
440 |
else |
else |
441 |
set INCLUDES = ( '-I/usr/local/include' ) |
set INCLUDES = ( '-I/usr/local/include' ) |
442 |
set LIBS = ( '-L/usr/local/lib/LINUX/ch_p4/ -lfmpich -lmpich' ) |
set LIBS = ( '-L/usr/local/lib/LINUX/ch_p4/ -lfmpich -lmpich' ) |
506 |
echo "" >> srclinks.tmp |
echo "" >> srclinks.tmp |
507 |
echo -n 'SRCFILES = ' > srclist.inc |
echo -n 'SRCFILES = ' > srclist.inc |
508 |
echo -n 'CSRCFILES = ' > csrclist.inc |
echo -n 'CSRCFILES = ' > csrclist.inc |
509 |
#echo -n 'HEADERFILES = ' > hlist.inc |
echo -n 'HEADERFILES = ' > hlist.inc |
510 |
foreach dr ($SOURCEDIRS) |
foreach dr ($SOURCEDIRS $INCLUDEDIRS .) |
511 |
set deplist=( ) |
set deplist=( ) |
512 |
foreach srcfile (`cd $dr; ls *.[hcF]`) |
foreach srcfile (`cd $dr; ls *.[hcF]`) |
513 |
if (! -r .links.tmp/$srcfile) then |
if (! -r .links.tmp/$srcfile) then |
526 |
echo -n " " $srcfile >> csrclist.inc |
echo -n " " $srcfile >> csrclist.inc |
527 |
breaksw |
breaksw |
528 |
case h: |
case h: |
529 |
# touch .links.tmp/$srcfile |
touch .links.tmp/$srcfile |
530 |
# set deplist=($deplist $srcfile) |
set deplist=($deplist $srcfile) |
531 |
# echo ' \' >> hlist.inc |
echo ' \' >> hlist.inc |
532 |
# echo -n " " $srcfile >> hlist.inc |
echo -n " " $srcfile >> hlist.inc |
533 |
breaksw |
breaksw |
534 |
endsw |
endsw |
535 |
endif |
endif |
544 |
rm -rf .links.tmp |
rm -rf .links.tmp |
545 |
echo "" >> srclist.inc |
echo "" >> srclist.inc |
546 |
echo "" >> csrclist.inc |
echo "" >> csrclist.inc |
547 |
#echo "" >> hlist.inc |
echo "" >> hlist.inc |
548 |
|
|
549 |
set THISHOSTNAME = ( `hostname` ) |
set THISHOSTNAME = ( `hostname` ) |
550 |
set THISCWD = ( `pwd` ) |
set THISCWD = ( `pwd` ) |
598 |
# extra stuff for Hyades ............................................ |
# extra stuff for Hyades ............................................ |
599 |
HYADES_DIR = /u/u0/cnh/jam-lib/software |
HYADES_DIR = /u/u0/cnh/jam-lib/software |
600 |
HYADES_DIR = /u/u0/cnh/jam-lib-twoproc |
HYADES_DIR = /u/u0/cnh/jam-lib-twoproc |
601 |
|
HYADES_DIR = /usr/local/jamlib/current/dual_proc |
602 |
WORK_DIR = \$(HYADES_DIR) |
WORK_DIR = \$(HYADES_DIR) |
603 |
DEPOSIT_DIR = linux_bin |
DEPOSIT_DIR = linux_bin |
604 |
|
|
658 |
|
|
659 |
cat srclist.inc >> ${mfile} |
cat srclist.inc >> ${mfile} |
660 |
cat csrclist.inc >> ${mfile} |
cat csrclist.inc >> ${mfile} |
661 |
|
cat hlist.inc >> ${mfile} |
662 |
echo 'F77FILES = $(SRCFILES:.F=.f)' >> ${mfile} |
echo 'F77FILES = $(SRCFILES:.F=.f)' >> ${mfile} |
663 |
echo 'OBJFILES = $(SRCFILES:.F=.o) $(CSRCFILES:.c=.o)' >> ${mfile} |
echo 'OBJFILES = $(SRCFILES:.F=.o) $(CSRCFILES:.c=.o)' >> ${mfile} |
664 |
|
|
675 |
depend: |
depend: |
676 |
@make links |
@make links |
677 |
makedepend -o .f \$(INCLUDES) \$(SRCFILES) |
makedepend -o .f \$(INCLUDES) \$(SRCFILES) |
678 |
links: \$(SRCFILES) |
|
679 |
|
links: \$(SRCFILES) \$(CSRCFILES) \$(HEADERFILES) |
680 |
|
|
681 |
small_f: \$(F77FILES) |
small_f: \$(F77FILES) |
682 |
|
|
684 |
-rm -rf *.o *.f *.p ${RMFILES} |
-rm -rf *.o *.f *.p ${RMFILES} |
685 |
Clean: |
Clean: |
686 |
@make clean |
@make clean |
687 |
-find . -type l -exec rm {} \; |
@make cleanlinks |
688 |
-rm -f Makefile.bak |
-rm -f Makefile.bak |
689 |
CLEAN: |
CLEAN: |
690 |
@make Clean |
@make Clean |
692 |
-find \$(EXEDIR) -name "*.data" -exec rm {} \; |
-find \$(EXEDIR) -name "*.data" -exec rm {} \; |
693 |
-rm -f \$(EXECUTABLE) |
-rm -f \$(EXECUTABLE) |
694 |
|
|
695 |
|
makefile: |
696 |
|
${0} $argv |
697 |
|
cleanlinks: |
698 |
|
-find . -type l -exec rm {} \; |
699 |
|
|
700 |
# The normal chain of rules is ( .F - .f - .o ) |
# The normal chain of rules is ( .F - .f - .o ) |
701 |
.F.f: |
.F.f: |
702 |
\$(CPP) \$(DEFINES) \$(INCLUDES) > \$@ |
\$(CPP) \$(DEFINES) \$(INCLUDES) > \$@ |