fixed makefile to accommodate the old device