Gradle example

Since java folks love to use java build systems, but all java build systems seem to dislike other languages, I've gone with the most flexible system I could find (gradle). For now, it still relies on make, because you cannot easily specify a toolchain (without writing or modifying a gradle plugin). This may actually be a good thing, as it is not clear that integrating two build tools has any major disadvantage in all scenarios.

The makefile could probably use some work (I'm not really proficient in make or gradle, but the gradle file I used is probably fairly standard).