Update makefile to avoid recompiling unnecessary modules for simulation