Use pattern rules in Makefile
Suppress warnings by adding link attribute and renaming static constants