[jamming] Thanks for the last help but I need some more help
Craig Allsop
cjamallsop at gmail.com
Wed Sep 6 03:29:14 PDT 2006
Hi.
Btw the clue to most problems can be found by reading 'jambase'. What
you describe, you'll see is exactly what Yacc does. So add .lng support
to your UserObject rule:
case .lng : Cc $(<) : $(<:S=.c) ;
GenLanguage $(<:S=.c) : $(>) ;
Another words, $(<) being the object, $(>) being the source, $(<:S=.c)
is the intermediate c file. We convert the source to c as well as
convert the c to an object which in turn gets linked in via your
Library/Main rule.
rule GenLanguage
{
MakeLocate $(<) : $(LOCATE_SOURCE) ;
Clean clean : $(<) ;
Depends $(<) : $(>) ;
}
MakeLocate is needed here to tell jam where to stick the .c file based
on the current directory. The other two targets, the object & original
source already have their bindings set by the Object rule.
actions GenLanguage
{
...
}
Craig.
Joolz [RSD] wrote:
> Right I can now convert a .mp2 or .raw file into an object file so I can
> include the data in my builds without using batch files but what I need
> now is to be able to convert a file from one format into c and then have
> it compiled.
>
> So
>
>
> _sources = English French ;
> Library $(PROGRAMMER_LIB) : $(_sources).lng ;
>
> So I need to take the English.lng file and pass it thought a convertor
> that produces a .c (temp) file and then I need to compile it as normal?
>
> Joolz
>
> _______________________________________________
> jamming mailing list - jamming at perforce.com
> http://maillist.perforce.com/mailman/listinfo/jamming
>
More information about the jamming
mailing list