Add static makefile support