ports makefile stuff (bsd.lib.mk)

[ Available lists | Index of freebsd-questions | Month of Feb 2008 | Week of 6 Feb 2008 | Raw email | View thread | Wrap long lines | Reply | Tag ]
From
Jim Stapleton <stapleton.41@gmail.com>
Date
6 Feb 2008 15:49:47
Subject
ports makefile stuff (bsd.lib.mk)
Message-ID
80f4f2b20802060749p60c9d0ddw83b1ecbbed19db47@mail.gmail.com

Replies

[ Hide this part ]
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


Elapsed time: 0.141 seconds