using makefile to fetch sim.h automatically