News for hackers. Stuff that matters.
Re:Ask HN: In what creative ways are you using Makefiles? by analogwzrd on Monday July 24, 2017 @11:44AM (#14839401)
I'm taking a grad school embedded systems class where we have to maintain a makefile that cross compiles to two different embedded platforms as well as compiles on the host machine.

We're doing it by calling a PLATFORM and using an IF statement in the makefile: make PLATFORM=HOST for example. The makefile then replaces the compiler variable, compiler flags, linker, flags, etc.

There are no comments on this comment yet.