added Makefile mechanism