add Makefile
change ifdef to pragma once