added some makefile magic