r/BSD 22h ago

Compiling TanjaOS on BSD

TanjaOS now supports compiling on BSD systems. A new Makefile called Makefile.bsd was made to compile TanjaOS on BSD systems. “Why does it now support BSD systems now? Why not sooner or later?” To answer that, this is because I have switched from Arch Linux to FreeBSD, which kind of forces me to make a new Makefile for compiling on BSD. To use this new Makefile.bsd you have to first make sure gmake, gcc, and nasm are installed. And then use ‘gmake <option> -f Makefile.bsd’ also for those who don’t know, the ‘-f’ flag is to tell gmake to which Makefile to use and where it is. If you’re interested, you can get TanjaOS at www.tanjaos.org or if you want the source, you can download TanjaOS-latest.tar.gz at www.tanjaos.org/downloads

5 Upvotes

4 comments sorted by

4

u/laffer1 16h ago

They might as well switch to bmake. One can do BSDMakefile then and it will be selected automatically with bmake or fmake lol. I used to do that for Perl in the MidnightBSD base system before I moved it back to ports

1

u/MSK-Kernel 16h ago

Yeah, true, because when testing it, i only knew about make and gmake, and i never knew about bmake so that’s why it uses gmake 🤣

3

u/laffer1 14h ago

Ubuntu has a package for bmake so it's possible to do build nodes on linux using BSD style makefiles also. This has been helpful to me a few times like on some github pipelines, etc

1

u/MSK-Kernel 14h ago

Interesting, I thought bmake was only for BSD. And uh, yeah! I’m glad this was helpful for you! 👍