Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

pdl::dev(3pm) [debian man page]

Dev(3pm)						User Contributed Perl Documentation						  Dev(3pm)

NAME
PDL::Core::Dev - PDL development module DESCRIPTION
This module encapsulates most of the stuff useful for PDL development and is often used from within Makefile.PL's. SYNOPSIS
use PDL::Core::Dev; FUNCTIONS
isbigendian Is the machine big or little endian? print "Your machins is big endian. " if isbigendian(); returns 1 if the machine is big endian, 0 if little endian, or dies if neither. It uses the "byteorder" element of perl's %Config array. my $retval = isbigendian(); trylink a perl configure clone if (trylink 'libGL', '', 'char glBegin(); glBegin();', '-lGL') { $libs = '-lGLU -lGL'; $have_GL = 1; } else { $have_GL = 0; } $maybe = trylink 'libwhatever', $inc, $body, $libs, $cflags, {MakeMaker=>1, Hide=>0, Clean=>1}; Try to link some C-code making up the body of a function with a given set of library specifiers return 1 if successful, 0 otherwise trylink $infomsg, $include, $progbody, $libs [,$cflags,{OPTIONS}]; Takes 4 + 2 optional arguments. o an informational message to print (can be empty) o any commands to be included at the top of the generated C program (typically something like "#include "mylib.h"") o the body of the program (in function main) o library flags to use for linking. Preprocessing by MakeMaker should be performed as needed (see options and example). o compilation flags. For example, something like "-I/usr/local/lib". Optional argument. Empty if omitted. o OPTIONS MakeMaker Preprocess library strings in the way MakeMaker does things. This is advisable to ensure that your code will actually work after the link specs have been processed by MakeMaker. Hide Controls if linking output etc is hidden from the user or not. On by default except within the build of the PDL distribution where the config value set in perldl.conf prevails. Clean Remove temporary files. Enabled by default. You might want to switch it off during debugging. perl v5.14.2 2012-04-05 Dev(3pm)

Check Out this Related Man Page

PPTEMPLATE(1p)						User Contributed Perl Documentation					    PPTEMPLATE(1p)

NAME
pptemplate - script to generate Makefile.PL and PP file skeleton SYNOPSIS
# generate Makefile.PL and mymodule.pd in CWD pptemplate PDL::MyModule; DESCRIPTION
The pptemplate script is the easiest way to start a new module for PDL that contains PP code (see also PDL::PP). The usage is simply pptemplate modulename; As a result pptemplate will generate a perl Makefile for the new module (Makefile.PL) that contains the minimal structure to generate a module from PP code and also a skeleton file for your new module. The file will be called mymod.pd if you called "pptemplate" as pptemplate PDL::CleverAlgs::Mymod; I suppose you can work out the naming rule ";)". If not resort to experimentation or the source code. "pptemplate" will refuse to overwrite existing files of the same name to avoid accidents. Move them out of the way if you really want to scrap them. Options Currently there is only the "-i" option which switches "pptemplate" into the so called internal mode. It should only be used when you are starting a new module within the main PDL tree that is supposed to be part of the PDL distribution and the normal PDL build process, e.g. cd PDL/IO; mkdir Mpthree; cd Mpthree; pptemplate -i PDL::IO::Mpthree; BUGS
Maybe ";)". Feedback and bug reports are welcome. COPYRIGHT
Copyright (c) 2001, Christian Soeller. All Rights Reserved. This module is free software. It may be used, redistributed and/or modified under the same terms as PDL itself (see <http://pdl.perl.org>). perl v5.14.2 2012-05-30 PPTEMPLATE(1p)
Man Page