3 Jun 2004 12:07
need help with jam
Hi
i'm trying to build gnu bash using jam and i have little problems.
there is a build tool named 'mkbuiltins' which is built with a BinCommand
rule and it builds successfully.
This build tool is used to compile .def files to .c files.
I tried to add the following to the Jamfile (based on the rc stuff in
Jamrules) to have .def files compiled to .c files :
BinCommand mkbuiltins : mkbuiltins.c
rule MkBuiltinsComp
{
# MkBuiltins <c file> : <def file> ;
#
# <c file> and <def file> must be gristed.
SetupObjectsDir ;
SEARCH on $(2) += $(SEARCH_SOURCE) ;
MakeLocate $(1) : $(LOCATE_TARGET) ;
Depends $(1) : $(2) mkbuiltins ;
LocalClean clean : $(1) ;
MkBuiltins1 $(1) : mkbuiltins $(2) ;
}
actions MkBuiltins1
{
$(2[1]) -o $(1) $(2[2-])
}
(Continue reading)
> A cool thing to do would be something like what the SkyOS guys are doing.
> Basically that is an extra layer that allows attributes to be read and
> written from a specific location (a file, for instance) and that would
> allow adding attribute support to filesystems that do not nativelly
> support it. It is moe or less what HPFS does with FAT partitions in OS/2.
You mean on the same device? I thought about that idea for a while as well,
but decided it was much easier to start with mirror files on the boot disk.
> I guess a cool approach would be to create a link that would be linked to
> the FS add-on and would provide all the abstraction for this so the code
It's important to use a different rule there, because the application
must run on the host platform, not the target one (even if that's not a
big problem at this point).
Bye,
Axel.
RSS Feed