Original WRF subgrid support version from John Michalakes without fire
[wrffire.git] / wrfv2_fire / external / RSL / RSL / makefile.linux
blob0af39ade6d075133044f2764b1d6c59e39694799
2 include makefile.core
3 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
4 HDR = $(CORE_HDR)
5 TAR = $(CORE_TAR)
7 IDIR=$(LINUX_MPIHOME)/include
8 #CC = $(LINUX_MPIHOME)/bin/mpicc
9 #FC = $(LINUX_MPIHOME)/bin/mpif77 -byteswapio
12 LIB = 
14 .SUFFIXES: .o .c .F
16 CFLAGS = -I$(IDIR) -DMPI -DRSL_SYNCIO -Dlinux -DSWAPBYTES -O
17 FFLAGS = -O
19 warning :
20         @ echo 'This makefile is not a top level makefile'
21         @ echo 'and is not intended for direct use.  Please'
22         @ echo 'type "make" by itself for assistance.'
24 all : rsl.inc librsl.a
26 rsl.inc : $(HDR) rsl.inc_base
27         cat $(HDR) | sed $(SED_LINE) |\
28         grep '^#.*define.*\/\* FORTRAN \*\/' | \
29         awk '{printf("      integer %s\n      parameter(%s=%s)\n",$$2,$$2,$$3)}' | \
30         cat rsl.inc_base - > rsl.inc
32 librsl.a : $(OBJ)
33         ar cr librsl.a $(OBJ)
34         ranlib librsl.a
36 .c.o :
37         $(CC) -c $(CFLAGS) $(CONFIG_OPTS) $<
39 .F.o :
40         $(FC) -c $(FFLAGS) $<
42 clean :
43         /bin/rm -f *.o
45 ###
47 $(OBJ) : $(HDR)