It’s a good week to learn: BSDNow 154 has no interview, but a lot of tutorials, including ones on GhostBSD, Enlightenment, Steam on FreeBSD, and so on.
4 Replies to “BSDNow 154: Myths, Pi’s & Features, oh my!”
Comments are closed.
It’s a good week to learn: BSDNow 154 has no interview, but a lot of tutorials, including ones on GhostBSD, Enlightenment, Steam on FreeBSD, and so on.
Comments are closed.
Hi Justin
Short question and yes I am aware that this is totally off-topic. Currently I am doing some development for myself on DragonFly but I am struggling with the Makefile.
I did not find any resource which would help me out to get an overall picture on how this works. There tons of examples for gmake, but not bmake.
Can you point me any direction, where I can have a look.
The project structure looks like this
proj_root
|- obj
|-
|-src
|- *.cxx; *.hpp
|- Makefile
|- Makefile
How can I run at and the build traverses down the folder and puts all object files to .
The form content strips tags as it seems.
The last sentence with the missing words
[…]
How can I run “make” at “proj_root” and the build traverses down the “src” folder and puts all object files to “obj”.
[…]
Have you looked at the bmake man page?
https://www.dragonflybsd.org/cgi/web-man?command=make§ion=ANY
It’s more help than I can be. NetBSD, FreeBSD, and DragonFly all use bmake, so looking at the other systems will get you more details:
https://www.freebsd.org/doc/en_US.ISO8859-1/books/developers-handbook/tools-make.html
Hi Justin
Thanks for the hints. Finally I took a Makefile from Netbsd and tailored it to my needs.
Now the build works, but not entirely as it would be nice. I adjusted my structure to get
benefits from “bsd.rules.mk”, as far as I have understood it.
Yes, I had a look at the man page, but it is only helpful if one has an idea on how this works.
It is not helpful, if one does not have an idea on how the actual file has to look like.
That’s like handing someone, who learns a new language, some words and rules and not giving
a hint on how this could work out or some example on how it may look like.
Maybe it would help, if someone, who has knowledge with bmake “Makefiles”, writes a small tutorial on it, explaining the basics and gives a small real world example.
Long story short. Thanks again for your effort, Justin. Keep up the good work with this page. I enjoy reading it. :)
Regards
Martin