Original WRF subgrid support version from John Michalakes without fire
[wrffire.git] / wrfv2_fire / external / RSL / RSL / makefile.x1
bloba43f464fc43c1f4e09063b768300e74eda07568f
2 ##### from Bill Gropp #####
3 # (see /Net/moline14/moline14_5/gropp/mpich/examples/test/pt2pt/Makefile)
5 #MPIR_HOME   = /opt/ctl/mpt/1.1.0.1
6 ##LIB_PATH    = -L$(MPIR_HOME)/lib
7 #LIB_PATH    = -L/opt/ctl/mpt/1.1.0.1/lib
8 #LIB_LIST    = -lmpi
9 #INCLUDE_DIR =  -I$(MPIR_HOME)/include
11 LIBS = $(LIB_PATH) $(LIB_LIST)
13 ##### end stuff from Gropp #####
15 include makefile.core
16 OBJ = $(CORE_OBJ) rsl_mpi_compat.o mpi_init_f.o vicopy.o debug.o 
17 HDR = $(CORE_HDR)
18 TAR = $(CORE_TAR)
20 CC = cc
21 FC = ftn
23 .SUFFIXES: .o .c .F
25 IDIR= $(INCLUDE_DIR)
27 CFLAGS = -DMPI -O3 $(IDIR) -DRSL_SYNCIO -Dcrayx1 -h list=a  -DNO_RAGGED
28 FFLAGS = -Dcrayx1
30 CFLAGS0 = -hstream0,vector3,scalar3,fp2,inline3 -DMPI -DRSL_SYNCIO -VV -h display_opt -h report=imsvf -Dcrayx1
32 warning :
33         @ echo 'This makefile is not a top level makefile'
34         @ echo 'and is not intended for direct use.  Please'
35         @ echo 'type "make" by itself for assistance.'
37 all : rsl.inc librsl.a
39 fill_boundary.o : fill_boundary.c
40         $(CC) -P $(CFLAGS0) $(CONFIG_OPTS) fill_boundary.c
41         $(CC) -c $(CFLAGS0) $(CONFIG_OPTS) fill_boundary.c
43 rsl.inc : $(HDR) rsl.inc_base
44         cat $(HDR) | sed $(SED_LINE) |\
45         grep '^#.*define.*\/\* FORTRAN \*\/' | \
46         awk '{printf("      integer %s\n      parameter(%s=%s)\n",$$2,$$2,$$3)}' | \
47         cat rsl.inc_base - > rsl.inc
49 librsl.a : $(OBJ)
50         ar cr librsl.a $(OBJ)
51 #       ranlib librsl.a
53 .c.o :
54         $(CC) -c $(CFLAGS) $(CONFIG_OPTS) $<
56 .F.o :
57         $(FC) -c $(FFLAGS) $<
59 clean :
60         /bin/rm -f *.o
62 ###
64 $(OBJ) : $(HDR)