# Makefile for code from _Numerical Recipes_

pliopt = ( m mar(1,100) nest not('') s inc(ext('CPY')) exit langlvl(saa2) \
 limits(extname(31)) a dft(ans) )

objs = doc.obj ran1.obj ran2.obj ran3.obj fmoment.obj

%.obj: %.pli
	plic $*.pli ${pliopt}

%.exe: %.obj
	link386 $*.obj+${objs} /m /pm:VIO /noe /co /stack:7000000,,load.map,ceelink +ibmlink, nul.def

test.exe: test.obj ${objs}

targets: ${objs} test.exe

test:
	touch test.stdout
	del test.stdout
	test>test.stdout 2>&1

