Adrian Lambeck <[EMAIL PROTECTED]> wrote:

[ please don't top post ]

> I will try it out to see if it works for me. Now I know how to get the
> data but how can I include this into a Makfile. If this were Perl-code
> I could use MakeMaker but this way I need to do it somehow different.

There's a TODO item in the bug tracker, which describes an extension to
parrot-config.imc.

$ ./parrot parrot-config.imc libs
-lnsl -ldl -lm -lposix -lcrypt -lutil -lpthread -lrt -lgmp

It should eventually understand shortcuts like --compile or --link or
some such.

For now you can include something like:

foo$(EXE) : foo.c $(PARROT)     # or better the lib
        `$(PARROT) parrot-config.imc link`  \
        `$(PARROT) parrot-config.imc libs`  \
        ...

in the Makefile.

> By the way -  in which file did you find this example.

You are citing it:

>> > Am Sonntag, 6. März 2005 20:13 schrieb Will Coleda via RT:

>> >>it's actually in 'runtime/parrot/library/config.imc'

$ perldoc -F runtime/parrot/library/config.imc

leo

Reply via email to