[Coco] OS-9/6809 makefiles
Jeff Teunissen
deek at d2dc.net
Wed Mar 5 12:57:02 EST 2025
On Mon, Feb 24, 2025, 15:18 Allen Huffman via Coco <coco at maltedmedia.com>
wrote:
> I have no idea how I used to build my OS-9 C code. I found some scripts I
> wrote called “DoC” and such, but they would just prompt for a .c fle and
> then build it. Not useful for multi-C projects.
>
> I also found some scripts files that would link my project .r files
> together to make the final executable.
>
> I may have been manually doing “cc -r file.c” for everything, I guess.
>
> Makefiles were far too complicated for me back then, and I did not learn
> about using them until I started working for Microware.
>
> Does anyone have a simple “getting started with Microware OS-9/6809
> makefiles” blog post or something I can look at? As I restore all my old
> sources, I’d like to get makefiles for all of them since, I assume, that is
> still part of modern NitrOS-9.
>
I have lots of 'new' makefiles for various things in my 'CoCoC' project, if
examples are helpful.
For example, <
https://github.com/Deek/CoCoC/blob/master/Source%2FText%2FGrep%2FMakefile>
the Grep Makefile builds 3 programs (one of which generates its C source
from a YACC grammar) and has 'install', 'uninstall' and 'clean' targets to
install the programs and their help files into the appropriate locations,
remove the installed files if you want, and clean up the source directory
so the old object files don't clutter it up.
The same directory contains a 'GNUmakefile' that does all the same things,
but for the Unix/Linux versions of the programs.
I can also answer questions in my copious free time, heh.
More information about the Coco
mailing list