Original WRF subgrid support version from John Michalakes without fire
[wrffire.git] / wrfv2_fire / external / RSL / RSL / makefile.sx
blob55591c1f7aa679aa0c86eec3a37c76bb1bad2060
2 # this is a makefile for RSL that maps the package down to the
3 # MPI message passing primitives on the NEC SX-5
5 include makefile.core
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_sx.o
7 HDR = $(CORE_HDR)
8 TAR = $(CORE_TAR)
10 CC = sxmpic++
11 FC = sxmpif90
13 #MPIHOME=
14 #IDIR=
16 LIB = 
18 .SUFFIXES: .o .c .F
20 CFLAGS = -DMPI -I../../../include -Dsx -DRSL_SYNCIO -Dcrayx1 -DNO_RAGGED
21 CFLAGS = -DMPI -I../../../include -Dsx -DRSL_SYNCIO -DNEC_TUNE -DNEC_SINGLENEST -DNEC_TYPE4B
22 CFLAGS = -DMPI -I../../../include -Dsx -DRSL_SYNCIO -DNEC_TUNE
23 FFLAGS = -float0
24 #INLINE = -pi fullmsg auto file=proc.c
26 # "-DNEC_SINGLENEST"
27 # avoids redundant count of grid points.
28 # don't specify this if the form of the grid-plane changes.
29 # (i.e. multi-nest run)
30 # target file is "rsl_ioserve.c".
32 # "-DNEC_TYPE4B"
33 # 1 byte char data copy by "bcopy" is replaced with 4 byte float
34 # substitution.
35 # this modification promotes vectorization.
36 # this effects only multi-nest run.
37 # target file is "rsl_bcast.c".
39 warning :
40         @ echo 'This makefile is not a top level makefile'
41         @ echo 'and is not intended for direct use.  Please'
42         @ echo 'type "make" by itself for assistance.'
44 all : rsl.inc librsl.a
46 rsl.inc : $(HDR) rsl.inc_base
47         cat $(HDR) | sed $(SED_LINE) |\
48         grep '^#.*define.*\/\* FORTRAN \*\/' | \
49         awk '{printf("      integer %s\n      parameter(%s=%s)\n",$$2,$$2,$$3)}' | \
50         cat rsl.inc_base - > rsl.inc
52 librsl.a : $(OBJ)
53         sxar cr librsl.a $(OBJ)
54 #       ranlib librsl.a
56 rsl_mpi_compat.o:       rsl_mpi_compat.c
57         $(CC) -c $(CFLAGS) $(CONFIG_OPTS) $<
59 .c.o :
60         $(CC) -c $(CFLAGS) $(INLINE) $(CONFIG_OPTS) $<
62 .F.o :
63         $(FC) -c $(FFLAGS) $<
65 clean :
66         /bin/rm -f *.o
68 ###
70 $(OBJ) : $(HDR)