Patrick Dupre wrote: > > How can I modify my Makefile.PL to have a Makefile which can make > cc -o test.o -c test.c `perl -MExtUtils::Embed -e ccopts` > > Thank
Makefile.PL is a program written using ExtUtils::MakeMaker to generate a makefile for building a Perl /extension/ module. ExtUtils::Embed is a module that will generate C code and compile/link options for /embedding/ a perl interpreter into a C program. Extending and embedding Perl are two very different, almost opposite ideas. Since it looks like you have a program called test.c I assume you want to embed a perl interpreter into that program, and if so you can forget about Makefile.PL. But in that case what are you asking? You clearly know how to compile test.c as you have written it in your post, and it is straightforward to write a makefile to do that if you want to. So what help do you need from us? Rob -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/