r/BSD Aug 02 '26

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-base.tar.gz at www.tanjaos.org/downloads

5 Upvotes

5 comments sorted by

4

u/laffer1 Aug 02 '26

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 Aug 02 '26

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 Aug 02 '26

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 Aug 02 '26

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

2

u/linux_transgirl 27d ago

Maybe transition to a cmake based system? That way it doesn't really matter what underlying build system someone has