# Edit the following variables as needed
HDF_INSTALL =  
FC        = f77
FFLAGS    = 
LIB       = -lm
 
LIBSHDF   = $(HDF_INSTALL)/lib/libmfhdf.a $(HDF_INSTALL)/lib/libdf.a \
$(HDF_INSTALL)/lib/libjpeg.a $(HDF_INSTALL)/lib/libz.a

VG: create_vgroup \
	add_sds_to_vgroup \
	insert_vdatas_to_vgroup\
	get_vgroup_info \
	set_get_vgroup_attr \
	vgroup_contents 

create_vgroup: create_vgroup.f
	$(FC) $(FFLAGS) -o $@ create_vgroup.f $(LIBSHDF) $(LIB)

add_sds_to_vgroup: add_sds_to_vgroup.f
	$(FC) $(FFLAGS) -o $@ add_sds_to_vgroup.f $(LIBSHDF) $(LIB)

insert_vdatas_to_vgroup: insert_vdatas_to_vgroup.f
	$(FC) $(FFLAGS) -o $@ insert_vdatas_to_vgroup.f $(LIBSHDF) $(LIB)

get_vgroup_info: get_vgroup_info.f
	$(FC) $(FFLAGS) -o $@ get_vgroup_info.f $(LIBSHDF) $(LIB)
 
set_get_vgroup_attr: set_get_vgroup_attr.f
	$(FC) $(FFLAGS) -o $@ set_get_vgroup_attr.f $(LIBSHDF) $(LIB)
 
vgroup_contents: vgroup_contents.f
	$(FC) $(FFLAGS) -o $@ vgroup_contents.f $(LIBSHDF) $(LIB)

clean: 
	rm -f *.o create_vgroup \
	add_sds_to_vgroup \
	insert_vdatas_to_vgroup\
	get_vgroup_info \
	set_get_vgroup_attr \
	vgroup_contents 
.SUFFIXES:.o.f
