Can someone please fill me in on how one would go about building a Makefile to compile *.d sources with gdc?
Specifically, I have built the Android NDK, gcc, binutils with D support via GDC (had to modify som开发者_Python百科e of libphobos to support Bionic better), and I would like to use ndk-build to compile that, however I'm stuck on the Makefile part of it. Or specifically Android.mk... either way would be nice.
I've tried invoking the compiler directly, but none of the include/lib folders are obvious within the structure of the NDK.
I am far from an expert in GNU Make, but I don't see how it would be any different than building a C or C++ project. If you want an example of how to make it work in a non-trivial project, GtkD's makefile would probably be useful.
精彩评论