
# ################################################################## 
# 
#			  NCSA HDF Vset release 2.1
#				MAY 1991
#
#	MAKEFILE for creating the vset library, libvg.a,
#
#  The make also creates fortran routines for use with fortran
#  programs. To omit all fortran routines, delete all references
# to fortran files (xxx.f) and their object files (xxx.o) from
# this makefile.
# 
# Likkai Ng  MAY 1991 NCSA
# Portions developed at the National Center for Supercomputing 
# Applications at the University of Illinois at Urbana-Champaign.
# 
# ################################################################## 
#
# PORTING INSTRUCTIONS
# You must modify the numbered lines.
#

# (1) specify your machine
MACHINE=IRIS4

# (2) specify your fortran compiler
F77=f77  
FFLAGS= -c 

# (3) where are your df.h and dfi.h files located?
IFLAGS= /usr/local/include

# (4) where is your HDF library (libdf.a) located?
LIBS=/usr/local/lib/libdf.a

# (5) If you don't want the Fortran, remove "vgFf.o" from the line below
OFILES=vg.o vrw.o vio.o vparse.o  vconv.o vsetf.o vgp.o vhi.o vgF.o vgFf.o
CFLAGS= -O -D${MACHINE} -I${IFLAGS}

libvg.a: $(OFILES) 
#  (6) modify your archiver (eg ranlib, or ar)
	ar cr libvg.a $(OFILES) 

	@echo ""
	@echo "***********************************************************"
	@echo "libvg.a successfully created."
	@echo ""
	@echo "If you have any old vset files (v 1.0) you must use vcompat"
	@echo "to make them compatible with Vset 2.0 applications"
	@echo ""
	@echo "You can move libvg.a, vg.h, dfi.h and df.h into your work directory"
	@echo "The utilities (vshow, vmake, vconcat) and the test programs"
	@echo "(vtest*.c) can be individually created as follows:"
	@echo ""
	@echo "	cc -D${MACHINE} program.c libvg.a libdf.a -o program"
	@echo "***********************************************************"
	@echo ""

vgp.o: vgp.c vg.h 
	cc $(CFLAGS) -c vgp.c

vsetf.o: vsetf.c vg.h 
	cc $(CFLAGS) -c vsetf.c

vg.o: vg.c vg.h 
	cc $(CFLAGS) -c vg.c

vparse.o: vparse.c vg.h 
	cc $(CFLAGS) -c vparse.c

vhi.o: vhi.c vg.h 
	cc $(CFLAGS) -c vhi.c

vio.o: vio.c vg.h 
	cc $(CFLAGS) -c vio.c

vrw.o: vrw.c vg.h 
	cc $(CFLAGS) -c vrw.c

vconv.o: vconv.c vg.h 
	cc $(CFLAGS) -c vconv.c

vgF.o: vgF.c vg.h 
	cc $(CFLAGS) -c vgF.c

vgFf.o: vgFf.f 
	${F77}   ${FFLAGS} vgFf.f 

