Live data from Hacker News

Build Tools – Make, no more

hadihariri.com

141–143 of 143 posts

Re: Build Tools – Make, no more

#141

Another vote for higher-level meta-build-systems like cmake, premake or scons (I'm using cmake because it has very simple cross-compilation support). My personal road to build-system nirwana looked like this, I'm sure this is fairly common: - Started using hand-written Makefiles and autoconf. Then someone wants to build on Windows, in Visual Studio nonetheless. Add manually created VStudio project files to the projec…

I agree with this. As a cross platform (ie, Windows + OSX + Linux) person who enjoys Visual Studio (XCode less so) I need more than make. My own experience is with gyp and ninja which is used by the Chromium team ( http://martine.github.io/ninja/ ) which they use to build Windows, OSX, Linux, Android (and maybe iOS?) Of course for personal projects I'll probably never notice the speed difference but for bigger ones N…

CMake outputs to Ninja as well. It's the only way I know how to use Ninja in fact.

Re: Build Tools – Make, no more

#143

Earlier quoted context omitted.

This is eminently possible with make-plus-GCC - add the line: .depend : gcc -M *.c > .depend then at the bottom: source .depend

Thank you for that useful option. Just a nitpick: did you mean `include .depend`?

Great nit to pick. I was typing , not testing. I believe you are 100% correct.

You may need to do a little finagling to bootstrap .depend when adding to an existing make file: echo "garp" > .depend; make .depend : may suffice.

Post reply on HN