use ExtUtils::MakeMaker; WriteMakefile( NAME => 'YourModule', OBJECT => 'YourModule_wrap.o', # Add extra include paths here, if needed # INC => '-I/path/to/include', # Add shared and static libraries here, if needed # LDFROM => 'YourModule_wrap.o -L/path/to/lib -lyourmodule', );