ports makefile stuff (bsd.lib.mk)

Jim Stapleton stapleton.41 at gmail.com
Wed Feb 6 15:49:47 UTC 2008


In my efforts to make some libraries, I looked up the documentation,
and found bsd.lib.mk does in fact make my life a lot easier.

However, I have a few questions.

1) Initially, this library will actually build several sublibraries.
To keep my code neat, each library has it's own source directory.
However, I also want to make cross linking easier and less prone to
"oops, I forgot to add the library's directory to the lib path list"
issues, so under the source directory I made an 'objs' directory,
where I was manually putting the output. Is there a way to simply have
the final output files sent to that directory?

2) How likely is it to cause compatibility erros if I simply go
through the bsd.lib.mk file, and grab out all of the parts I need, and
manually assemble them into my makefile? i.e. does this makefile vary
much from release-to-release/hardware-to-hardware?

Thanks,
-Jim Stapleton


More information about the freebsd-questions mailing list