Stas Bekman <[EMAIL PROTECTED]> writes:
>> Multiple .xs files in a directory used to at least sort-of-work.
>> The problem was that you needed a custom BOOT: {} section in at
>> least one to load the others.
>
>The problem is before the loading. How do you write Makefile.PL so it'll
>create the right rules for Makefile to do all the xs2c conversion.
You don't need to do anything:
nick@bactrian 1010$ cd /tmp/Thing
nick@bactrian 1011$ touch Foo.xs Bar.xs
nick@bactrian 1012$ perl -MExtUtils::MakeMaker -e 'WriteMakefile()'
Warning: Guessing NAME [Thing] from current directory name.
Writing Makefile for Thing
Gives:
# Handy lists of source code files:
XS_FILES= Bar.xs \
Foo.xs
C_FILES = Bar.c \
Foo.c
O_FILES = Bar.o \
Foo.o
So all you need is the "normal" OBJECT => '$(O_FILES)'
that anything with multiple .o files needs.
>I
>know that you need to override some My:: methods, but this is a big
>kludge as I couldn't find any module doing that (which is how I usually
>learn about MM untold magic) and the docs weren't tell me :(
>
>So I thought that the XS attribute is the perfect fit for doing the work
>for you. You provide a hash in the form .xs => .c and voila Makemaker
>does the right thing.
>
>
>__________________________________________________________________
>Stas Bekman JAm_pH ------> Just Another mod_perl Hacker
>http://stason.org/ mod_perl Guide ---> http://perl.apache.org
>mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com
>http://modperlbook.org http://apache.org http://ticketmaster.com
--
Nick Ing-Simmons
http://www.ni-s.u-net.com/