[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

6.4 obj-res

 
obj-res [ -l ] [ -L exportfile ] [ -z n ] bfdfile

The obj-res utility reads a file in a BFD supported object file format (most usually COFF) and generates the raw binary resource files necessary to make up a Palm OS executable in the current directory. These files can be bound together into a Palm OS resource data file using build-prc.

This utility is deprecated. It is provided only for use in existing legacy build scripts and makefiles. In new projects it is more convenient to present the same object file directly to build-prc, thus enabling better error checking, avoiding a separate obj-res step, and avoiding the clutter of separate `.grc' files.

In particular, if you are using multiple code resources or the stand-alone code facilities then you must not use obj-res. Such projects require information that is thrown away by obj-res, and your build will fail or, worse, silently produce invalid results.

But if you nonetheless choose to use it: obj-res reads from bfdfile and writes to a number of files with names of the form `typennnn.bfdfile.grc'. By default it generates resources for a Palm OS application.

-l
Generate resources for a GLib shared library.

-L exportfile
Generate resources for a Palm OS version 2 system shared library.

Unlike previous versions of obj-res, this version cannot generate an offset table in exportfile. You should use build-prc directly with a definition file instead.

-z n
Compress the data resource, `data0000.bfdfile.grc', similarly to the corresponding build-prc option.



This document was generated by Guillaume Rousse on December, 12 2004 using texi2html