11.07.2015 Views

Advanced Programming Guide

Advanced Programming Guide

Advanced Programming Guide

SHOW MORE
SHOW LESS
  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

308 • Chapter 7: <strong>Advanced</strong> ConnectivityCOBJ_FLAG This is the flag used by the compiler to specify the objectfilename. The compiler command uses COBJ_FLAG || FILE ||OBJ_EXT to name the object file. On most platforms it is “-o”.LOBJ_FLAG This is the flag used by the linker to specify the targetlibrary name. The link command uses LOBJ_FLAG || FILE ||DLL_EXT to name the shared library.FILE This is the base name of the file to be compiled. The file extensionmust not be included in this name. For example, to compile “foo.c”,set FILE="foo" and FILE_EXT=".c". When FILE is set to NULL thesystem generates a file name based on the function name.FILE_EXT This is the program file extension. If you want to compile“foo.c”, set FILE_EXT=".c", and FILE="foo".OBJ_EXT This is the object file extension. Common extensions are“.o” and “.obj”.DLL_EXT This is the dynamic library extension. Common extensionsare “.dll” and “.so”.INC_FLAG This precedes directories in the INC_PATH. On most platformsit is “-I”.INC_PATH This specifies the directories to search for header files.Use an expression sequence to specify more than one directory,for example, INC_PATH=("/usr/local/maple/extern/include","/users/jdoe/include").COMPILE_COMMAND This is set to the procedure that generatesthe compiler command. The procedure must return a string. In general,it is not necessary to change the default.LINKER This specifies the name of the linker executable.LINK_FLAGS This specifies miscellaneous flags passed to the linker,including those that cause the linker to build a dynamic (shared)library.LIB_FLAG This precedes directories in the LIB_PATH. On most platformsit is “-L”.LIB_PATH This specifies the directories to search for libraries. Use anexpression sequence to specify more than one directory, for example,LIB_PATH=("/usr/local/maple/extern/lib","/users/jdoe/lib").

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!