r300g: Use automake to generate Makefile v3