added README_changes.txt
[wrffire.git] / wrfv2_fire / external / RSL / RSL / makefile.hp
blobc7de51094dfba98d9620c5954c736929f448122a
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 = mpicc
11 FC = mpif90
13 MPIHOME=#/usr/local/mpi
14 IDIR=#$(MPIHOME)/include
16 LIB = 
18 .SUFFIXES: .o .c .F
20 CFLAGS = -DMPI -DNOUNDERSCORE -g
21 FFLAGS = +noppu +O3
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)
38         ranlib librsl.a
40 .c.o :
41         $(CC) -c $(CFLAGS) $(CONFIG_OPTS) $<
43 .F.o :
44         $(FC) -c $(FFLAGS) $<
46 clean :
47         /bin/rm -f *.o
49 ###
51 $(OBJ) : $(HDR)