This looks like a mistake in your Makefile — I think you need to remove `Makefile` from the right-hand side of your rules, because it’s feeding the Makefile itself to the build commands. I think the error comes from the linker trying to treat the Makefile as a library.
- NIM Integration error when trying to generate dynamic library fro... panchove
- Re: NIM Integration error when trying to generate dynamic li... snej