CC = cc
# You will need to adjust IDIRS and OLIBS so that the include and
# library files for netcdf are found
IDIRS = -I../include -I/usr/local/include
OLIBS = ../utils/libcdf.a -lnetcdf -lm
CFLAGS = -L/usr/local/lib
PROGS = uniget uniput olrget
system : $(PROGS)
	touch system
clean :
	-rm -f $(PROGS) core
	-rm -f *.o
	-rm -f *.out
	-rm -f *.html
html :
	for x in `ls *.1`; do groff -m man -T html $$x > $$x.html; done
install :
	-cp $(PROGS) /home/root/bin
	-cp *.1 /home/root/man/man1
uniget : uniget.c
	-$(CC) $(CFLAGS) ${IDIRS} -o uniget uniget.c $(OLIBS)
uniput : uniput.c
	-$(CC) $(CFLAGS) ${IDIRS} -o uniput uniput.c $(OLIBS)
olrget : olrget.c
	-$(CC) $(CFLAGS) ${IDIRS} -o olrget olrget.c $(OLIBS)
