#
# Makefile for SciLab and MCD
# make -f makefile
#
# Path to (top directory of) NetCDF distribution 
NETCDF_DIR = /path/to/netcdf
# Path to the Fortan routines (call_mcd.F, julian.F and heights.F)
FROUTINES_DIR = ..
# Fortran compiler (should be the same that was used to compile NetCDF)
FCOMPILER = gfortran

call_mcd.so : $(FROUTINES_DIR)/call_mcd.F $(FROUTINES_DIR)/julian.F $(FROUTINES_DIR)/heights.F
	$(FCOMPILER) -shared -fPIC -o call_mcd.so $(FROUTINES_DIR)/call_mcd.F $(FROUTINES_DIR)/julian.F $(FROUTINES_DIR)/heights.F -I$(FROUTINES_DIR) -I$(NETCDF_DIR)/include
