Original WRF subgrid support version from John Michalakes without fire
[wrffire.git] / wrfv2_fire / external / RSL / RSL / makefile.o2k
blobce04e34697b887b54985796605751730d50515b2
2 # this is a makefile for RSL that maps the package down to the
3 # MPI message passing primitives on the IBM SP[12] and nets of wkstations
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_o2k.o
7 HDR = $(CORE_HDR)
8 TAR = $(CORE_TAR)
10 CC = cc -64 -mips4
11 FC = f90 -64 -mips4
13 MPIHOME=/usr
14 IDIR=$(MPIHOME)/include
16 LIB = 
18 .SUFFIXES: .o .c .F
20 CFLAGS = -w -I$(IDIR) -DMPI -DO2K -O2 -DMPI2_SUPPORT
21 FFLAGS = -w -O2
23 warning :
24         @ echo 'This makefile is not a top level makefile'
25         @ echo 'and is not intended for direct use.  Please'
26         @ echo 'type "make" by itself for assistance.'
28 all : rsl.inc librsl.a
30 rsl.inc : $(HDR) rsl.inc_base
31         cat $(HDR) | sed $(SED_LINE) |\
32         grep '^#.*define.*\/\* FORTRAN \*\/' | \
33         awk '{printf("      integer %s\n      parameter(%s=%s)\n",$$2,$$2,$$3)}' | \
34         cat rsl.inc_base - > rsl.inc
36 librsl.a : $(OBJ)
37         ar cr librsl.a $(OBJ)
39 .c.o :
40         $(CC) -c $(CFLAGS) $(CONFIG_OPTS) $<
42 .F.o :
43         $(FC) -c $(FFLAGS) $<
45 clean :
46         /bin/rm -f *.o
48 superclean : clean
49         /bin/rm -f librsl.a rsl.inc
52 ###
54 $(OBJ) : $(HDR)