Advertisement
Guest User

Untitled

a guest
Jan 25th, 2016
387
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Make 1.02 KB | None | 0 0
  1. # Makefile to compile conversion utilities. You need to set include and library paths for NETCDF
  2. #
  3.  
  4. PLATFORM := $(shell uname -s)
  5.  
  6. #
  7. ifeq ($(PLATFORM),Linux)
  8.  
  9. INC_NETCDF = /home/santiago/Install/netcdf_sam/include
  10. LIB_NETCDF = /home/santiago/Install/netcdf_sam/lib
  11.  
  12.  
  13. FF = gfortran -O3 -ffixed-line-length-132 -fall-intrinsics -I${INC_NETCDF}
  14. LDFLAGS = -L${LIB_NETCDF} -lnetcdf -L/usr/lib64 -lpthread
  15.  
  16. endif
  17. #---------------------------------------------------------
  18.  
  19. VPATH = ./SRC
  20.  
  21. all: bin2D2nc bin3D2nc 2Dbin2nc 2Dbin2nc_mean bin3D2nc_mean com3D2bin 2Dcom2nc 2Dcom2nc_mean com3D2nc com3D2nc_mean com2D2nc stat2evol  stat2nc stat2evolnc isccp2nc stat2nc_sp com3D2nc_sep 2Dbin2nc_sep 2Dcom_sep2one 2Dbin_sep2one com3D_sep2one bin3D_sep2one
  22.  
  23.  
  24. stat2evol: stat2evol.f cape_analysis.f hbuf_lib.f
  25.     $(FF) -o $@ -I./SRC ./SRC/stat2evol.f ./SRC/cape_analysis.f ./SRC/hbuf_lib.f ./SRC/sat.f
  26.  
  27. .f:  
  28.     $(FF) -o $@ -I./SRC $< ./SRC/hbuf_lib.f ./SRC/cape.f ./SRC/cin.f $(LDFLAGS)
  29.  
  30. clean:
  31.     rm bin* com* stat* 2* isccp* *.o
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement