Added depends makefiles

Tested on linux and android/arm cross compilation
Probably quite ugly and needs some cleaning up