开发者

gnu Makefile for gdc

开发者 https://www.devze.com 2023-03-20 23:35 出处:网络
Can someone please fill me in on how one would go about building a Makefile to compile *.d sources with gdc?

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消