A nice example of "it's not easy enough for the beginner, and it doesn't include all the tricks for the pro". When writing a tutorial, I tend to address only one of the two...Combuster wrote:It leaves dealing with multiple intermediate/output files (like kernel, separate drivers, bundling into floppy image) as an exercise to the reader. And it doesn't support multiple architectures...Solar wrote:Have you seen the Makefile tutorial? If it doesn't suit your needs, tell me what's missing and I'll see if I can extend the tutorial...
Besides, there are many different ways of supporting multiple architectures (autoconf, makefile tweaking, file overlays, ...), and I didn't want to open that can of worms as my preference (file overlay) is rather non-standard.
I'll look into it if an hour of free time materializes.
Not a pro on makefiles either, but...(speaking of which, a pro's comment on my make settarget hack would be welcome ).
The passing of parameters by environment is a nice one, I used that for my "make find" and "make test" targets myself. I'm not sure I like the idea of having to maintain seperate Makefiles for each supported architecture, though.