# For MATLAB access to call_mcd.F
# call_mcd.o julian.o heights.o
#
# 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 compiler NetCDF)
FCOMPILER = gfortran

prog: call_mcd.o julian.o heights.o

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