123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146 |
- #!/bin/csh
- #
- # Makefile for interpolation code
- #
- # CVS:$Id: makefile,v 1.7 2000/04/19 21:46:44 pwjones Exp $
- #
- COMPILE = gfortran
- FLAGS = -O3 -I/usr/include -L/usr/lib
- LIB = -lnetcdf -lnetcdff
- INCLUDE =
- SRCDIR = .
- EXEDIR = ..
- OBJSET = \
- kinds_mod.o \
- constants.o \
- iounits.o \
- netcdf.o \
- grids.o \
- remap_vars.o \
- remap_distwgt.o \
- remap_conserv.o \
- remap_bilinear.o \
- remap_bicubic.o \
- timers.o \
- remap_write.o \
- scrip.o
- OBJTEST = \
- kinds_mod.o \
- constants.o \
- iounits.o \
- netcdf.o \
- grids.o \
- timers.o \
- remap_vars.o \
- remap_read.o \
- read_input_file.o \
- remap.o
- all: $(EXEDIR)/scrip $(EXEDIR)/scrip_test $(EXEDIR)/scrip_use $(EXEDIR)/scrip_use_extrap
- $(EXEDIR)/scrip: $(OBJSET)
- $(COMPILE) $(FLAGS) $(OBJSET) $(LIB) -o $(EXEDIR)/scrip
- $(EXEDIR)/scrip_test: $(OBJTEST) scrip_test.o
- $(COMPILE) $(FLAGS) $(OBJTEST) scrip_test.o $(LIB) \
- -o $(EXEDIR)/scrip_test
- $(EXEDIR)/scrip_use: $(OBJTEST) scrip_use.o
- $(COMPILE) $(FLAGS) $(OBJTEST) scrip_use.o $(LIB) \
- -o $(EXEDIR)/scrip_use
- $(EXEDIR)/scrip_use_extrap: $(OBJTEST) scrip_use_extrap.o
- $(COMPILE) $(FLAGS) $(OBJTEST) scrip_use_extrap.o $(LIB) \
- -o $(EXEDIR)/scrip_use_extrap
- kinds_mod.o: $(SRCDIR)/kinds_mod.f $(INCLUDE)
- $(COMPILE) $(FLAGS) -c $(SRCDIR)/kinds_mod.f
- constants.o: $(SRCDIR)/constants.f kinds_mod.o $(INCLUDE)
- $(COMPILE) $(FLAGS) -c $(SRCDIR)/constants.f
- iounits.o: $(SRCDIR)/iounits.f kinds_mod.o $(INCLUDE)
- $(COMPILE) $(FLAGS) -c $(SRCDIR)/iounits.f
- netcdf.o: $(SRCDIR)/netcdf.f kinds_mod.o constants.o $(INCLUDE)
- $(COMPILE) $(FLAGS) -c $(SRCDIR)/netcdf.f
- grids.o: $(SRCDIR)/grids.f kinds_mod.o constants.o iounits.o netcdf.o \
- $(INCLUDE)
- $(COMPILE) $(FLAGS) -c $(SRCDIR)/grids.f
- remap_vars.o: $(SRCDIR)/remap_vars.f kinds_mod.o constants.o grids.o \
- $(INCLUDE)
- $(COMPILE) $(FLAGS) -c $(SRCDIR)/remap_vars.f
- remap_conserv.o: $(SRCDIR)/remap_conserv.f kinds_mod.o constants.o \
- timers.o remap_vars.o grids.o $(INCLUDE)
- $(COMPILE) $(FLAGS) -c $(SRCDIR)/remap_conserv.f
- remap_distwgt.o: $(SRCDIR)/remap_distwgt.f kinds_mod.o constants.o \
- remap_vars.o grids.o $(INCLUDE)
- $(COMPILE) $(FLAGS) -c $(SRCDIR)/remap_distwgt.f
- remap_bilinear.o: $(SRCDIR)/remap_bilinear.f kinds_mod.o constants.o \
- remap_vars.o grids.o timers.o $(INCLUDE)
- $(COMPILE) $(FLAGS) -c $(SRCDIR)/remap_bilinear.f
- remap_bicubic.o: $(SRCDIR)/remap_bicubic.f kinds_mod.o constants.o \
- remap_vars.o grids.o $(INCLUDE)
- $(COMPILE) $(FLAGS) -c $(SRCDIR)/remap_bicubic.f
- timers.o: $(SRCDIR)/timers.f kinds_mod.o constants.o $(INCLUDE)
- $(COMPILE) $(FLAGS) -c $(SRCDIR)/timers.f
- remap_write.o: $(SRCDIR)/remap_write.f kinds_mod.o constants.o \
- netcdf.o remap_vars.o grids.o $(INCLUDE)
- $(COMPILE) $(FLAGS) -c $(SRCDIR)/remap_write.f
- remap_read.o: $(SRCDIR)/remap_read.f kinds_mod.o constants.o netcdf.o \
- remap_vars.o grids.o $(INCLUDE)
- $(COMPILE) $(FLAGS) -c $(SRCDIR)/remap_read.f
- read_input_file.o: $(SRCDIR)/read_input_file.f kinds_mod.o constants.o netcdf.o \
- remap_vars.o grids.o $(INCLUDE)
- $(COMPILE) $(FLAGS) -c $(SRCDIR)/read_input_file.f
- remap.o: $(SRCDIR)/remap.f kinds_mod.o constants.o
- $(COMPILE) $(FLAGS) -c $(SRCDIR)/remap.f
- scrip.o: $(SRCDIR)/scrip.f kinds_mod.o constants.o iounits.o timers.o \
- remap_vars.o grids.o remap_conserv.o remap_distwgt.o \
- remap_bilinear.o remap_bicubic.o remap_write.o \
- $(INCLUDE)
- $(COMPILE) $(FLAGS) -c $(SRCDIR)/scrip.f
- scrip_test.o: $(SRCDIR)/scrip_test.f kinds_mod.o constants.o iounits.o \
- netcdf.o remap_vars.o grids.o remap.o remap_read.o \
- $(INCLUDE)
- $(COMPILE) $(FLAGS) -c $(SRCDIR)/scrip_test.f
- scrip_use.o: $(SRCDIR)/scrip_use.f kinds_mod.o constants.o iounits.o \
- netcdf.o remap_vars.o grids.o remap.o \
- remap_read.o read_input_file.o \
- $(INCLUDE)
- $(COMPILE) $(FLAGS) -c $(SRCDIR)/scrip_use.f
- scrip_use_extrap.o: $(SRCDIR)/scrip_use_extrap.f kinds_mod.o \
- constants.o iounits.o \
- netcdf.o remap_vars.o grids.o remap.o \
- remap_read.o read_input_file.o \
- $(INCLUDE)
- $(COMPILE) $(FLAGS) -c $(SRCDIR)/scrip_use_extrap.f
- scripshape.o: $(SRCDIR)/scripshape.F90 $(INCLUDE)
- $(COMPILE) $(FLAGS) -c $(SRCDIR)/scripshape.F90
- scrip_test_repeat.o: $(SRCDIR)/scrip_test_repeat.f kinds_mod.o \
- constants.o netcdf.o \
- iounits.o remap_vars.o grids.o $(INCLUDE)
- $(COMPILE) $(FLAGS) -c $(SRCDIR)/scrip_test_repeat.f
- clean:
- /bin/rm *.o *.mod
|