added README_changes.txt
[wrffire.git] / wrfv2_fire / external / RSL / RSL / makefile.vpp
blobd66ea831114ffc904b7af65593746f4a401b462e
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.o
7 HDR = $(CORE_HDR)
8 TAR = $(CORE_TAR)
10 CC = vcc
11 FC = frt
13 MPIHOME=#/usr/local/mpi
14 IDIR=$(MPIINCDIR)
16 LIB = 
18 .SUFFIXES: .o .c .F
20 CFLAGS = -I$(IDIR) -DMPI -Dvpp -DRSL_SYNCIO -O -Wl,-P -J -KA32 -Ka4
21 FFLAGS = -O -Fixed -X7 -Wl,-P -Wv -KA32
22 FVFLAGS = -Sw -Wv,-Of,-te,-ilfunc,-noalias,-m3,-P255 -Oe,-P -Kfast -Pdos -lmpi -lmp -KA32
25 warning :
26         @ echo 'This makefile is not a top level makefile'
27         @ echo 'and is not intended for direct use.  Please'
28         @ echo 'type "make" by itself for assistance.'
30 all : rsl.inc librsl.a
32 rsl.inc : $(HDR) rsl.inc_base
33         cat $(HDR) | sed $(SED_LINE) |\
34         grep '^#.*define.*\/\* FORTRAN \*\/' | \
35         awk '{printf("      integer %s\n      parameter(%s=%s)\n",$$2,$$2,$$3)}' | \
36         cat rsl.inc_base - > rsl.inc
38 librsl.a : $(OBJ)
39         ar cr librsl.a $(OBJ)
41 .c.o :
42         $(CC) -c $(CFLAGS) $(CONFIG_OPTS) $<
44 .F.o :
45         $(FC) -c $(FFLAGS) $<
47 clean :
48         /bin/rm -f *.o
50 ###
52 $(OBJ) : $(HDR)
54 vicopy.o : vicopy.F
55         $(FC) -c $(FVFLAGS) $<