added README_changes.txt
[wrffire.git] / wrfv2_fire / external / RSL / RSL / makefile.ibm.sv
blobb2f51c0cbf784f769b543615a9b9f852a88d4611
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 vicopy.o
7 HDR = $(CORE_HDR)
8 TAR = $(CORE_TAR)
10 CC = cc
11 FC = xlf
13 MPIHOME=/usr/local/mpi
14 IDIR=$(MPIHOME)/include
16 LIB = 
18 CFLAGS = -I$(IDIR) -DNOUNDERSCORE -DMPI -g # -O # -g
19 FFLAGS = -g
21 warning :
22         @ echo 'This makefile is not a top level makefile'
23         @ echo 'and is not intended for direct use.  Please'
24         @ echo 'type "make" by itself for assistance.'
26 all : rsl.inc librsl.a
28 rsl.inc : $(HDR) rsl.inc_base
29         cat $(HDR) | sed $(SED_LINE) |\
30         grep '^#.*define.*\/\* FORTRAN \*\/' | \
31         awk '{printf("      integer %s\n      parameter(%s=%s)\n",$$2,$$2,$$3)}' | \
32         cat rsl.inc_base - > rsl.inc
34 librsl.a : $(OBJ)
35         ar cr librsl.a $(OBJ)
36         ranlib librsl.a
38 .c.o :
39         $(CC) -c $(CFLAGS) $(CONFIG_OPTS) $<
41 .f.o :
42         $(FC) -c $(FFLAGS) $<
44 clean :
45         /bin/rm -f *.o
47 ###
49 $(OBJ) : $(HDR)