OPT = -fbounds-check  -Wglobals
#OPT = -fbounds-check  -Wsurprising 
#OPT = -fbounds-check  -Wunused -O -Wuninitialized

gmx:	gmx.o  algama.o dgamma.o\
	dgauss4.o sdf.o xflush.o subsgmix.o
	g77 -o gmx gmx.o  algama.o  dgamma.o\
	dgauss4.o sdf.o xflush.o subsgmix.o

gmx.o:	gmx.f
	g77 ${OPT} -c gmx.f

sdf.o:	sd.c
	gcc -c -DRETS -DSUNF -DDOUB sd.c -o sdf.o

subsgmix.o:	subsgmix.f
	g77 ${OPT} -c subsgmix.f
dgamma.o:	dgamma.f
	g77 ${OPT} -c dgamma.f
dgauss4.o:	dgauss4.f
	g77 ${OPT} -c dgauss4.f
algama.o:	algama.f
	g77 ${OPT} -c algama.f
xflush.o:	xflush.f
	g77 ${OPT} -c xflush.f

