update Makefile.in with resampling code