added README_changes.txt
[wrffire.git] / wrfv2_fire / external / RSL / RSL / makefile.alpha
blob1636dbfef2b613898d1608cb6f04b861975a6dbe
2 # this is a makefile for RSL that maps the package down to the
3 # MPI message passing primitives on the DEC Alpha
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 ### When compiling RSL with MM5, the CC macro is defined by the call to make
11 ### from MM5/Makefile.  Don't define it here.
12 # for compiling with MPICH
13 #CC = mpicc
14 # for compiling with DEC's version of MPI
15 #CC = cc
16 #FC = f77
18 LIB = 
20 .SUFFIXES: .o .c .F
22 CFLAGS = -DMPI -DSWAPBYTES -O $(UNDERSCORE)
23 FFLAGS  = -align dcommons -convert big_endian -O
24 #CFLAGS = -DMPI -DSWAPBYTES -g $(UNDERSCORE)
25 #FFLAGS  = -align dcommons -convert big_endian -g
27 warning :
28         @ echo 'This makefile is not a top level makefile'
29         @ echo 'and is not intended for direct use.  Please'
30         @ echo 'type "make" by itself for assistance.'
32 all : rsl.inc librsl.a
34 rsl.inc : $(HDR) rsl.inc_base
35         cat $(HDR) | sed $(SED_LINE) |\
36         grep '^#.*define.*\/\* FORTRAN \*\/' | \
37         awk '{printf("      integer %s\n      parameter(%s=%s)\n",$$2,$$2,$$3)}' | \
38         cat rsl.inc_base - > rsl.inc
40 librsl.a : $(OBJ)
41         ar cr librsl.a $(OBJ)
42         ranlib librsl.a
44 .c.o :
45         $(CC) -c $(CFLAGS) $(CONFIG_OPTS) $<
47 .F.o :
48         $(FC) -c $(FFLAGS) $<
50 clean :
51         /bin/rm -f *.o
53 ###
55 $(OBJ) : $(HDR)