tech-toolchain archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: variable MAKEOBJDIR inside of Makefile
On Sun, Jan 26, 2025 at 17:05:42 +0100, Peter Skvarka wrote:
> Date: Sun, 26 Jan 2025 17:05:42 +0100
> From: Peter Skvarka <ps%softinengines.com@localhost>
> Subject: variable MAKEOBJDIR inside of Makefile
> To: tech-toolchain%netbsd.org@localhost
>
> Hello,
> I have simple Makefile for building kernel module and I am trying to use
> MAKEOBJDIR variable to specify existing directory "./obj_dir" for object
> files and result binary.
> Only way which I found functional was using MAKEOBJDIR on commane line:
>
> $make MAKEOBJDIR=./obj_dir
>
> When I try to define it inside of Makefile then it is ignored
[...]
> How to setup MAKEOBJDIR inside of Makefile ?
It's a feature. See make(1), search for .OBJDIR in the section
"Additional built-in variables".
-uwe
Home |
Main Index |
Thread Index |
Old Index