2 # this is a makefile for RSL that maps the package down to the
3 # MPI message passing primitives on the DEC Alpha
6 OBJ = $(CORE_OBJ) rsl_mpi_compat.o mpi_init_f.o debug.o fort_doubleread.o fort_doublewrite.o rsl_error_dup.o fort_bdyin_dbl.o vicopy.o
10 ### When compiling RSL with MM5, the CC macro is defined by the call to make
11 ### from MM5/Makefile. Don't define it here.
12 # for compiling with MPICH
14 # for compiling with DEC's version of MPI
22 CFLAGS = -DMPI -DSWAPBYTES -O $(UNDERSCORE)
23 FFLAGS = -align dcommons -convert big_endian -O
24 #CFLAGS = -DMPI -DSWAPBYTES -g $(UNDERSCORE)
25 #FFLAGS = -align dcommons -convert big_endian -g
28 @ echo 'This makefile is not a top level makefile'
29 @ echo 'and is not intended for direct use. Please'
30 @ echo 'type "make" by itself for assistance.'
32 all : rsl.inc librsl.a
34 rsl.inc : $(HDR) rsl.inc_base
35 cat $(HDR) | sed $(SED_LINE) |\
36 grep '^#.*define.*\/\* FORTRAN \*\/' | \
37 awk '{printf(" integer %s\n parameter(%s=%s)\n",$$2,$$2,$$3)}' | \
38 cat rsl.inc_base - > rsl.inc
45 $(CC) -c $(CFLAGS) $(CONFIG_OPTS) $<