Installing OReilly Sample project

This section of the tutorial is for both Windows and Unix users of PRC-Tools.

We know our job is to make things as simple as possible for you. As a result, we imagine that when you create a new project you would like it to be as easy as can be expected. So, presto, we have made it so. We’ve created a new, very simple project that has the correct structure of a Palm OS application, but that doesn’t actually do very much. That way, it’s easier to use as the basis of a new application.

Download this project from http://www.calliopeinc.com/stationery.html.

Cloning the Sample Project

Duplicate the OReillyStationery directory:

cp -r OReillyStationery MyProject

Build the project by doing a make:

cd MyProject
make

The resulting PRC can be found in GCC/OReillyStarter.prc.

Customizing the Output File

To change the output file, edit the Makefile by changing the value of the APP variable:

APP=MyProject

In addition, rename the .def file:

mv OReillyStarter.def MyProject.def

Now, when you make, the resulting PRC can be found in GCC/MyProject.prc.

A Non-Debug Build

If you’d like to build without debugging, change the CFLAGS definition in the Makefile from:

CFLAGS = -palmos4.0 $(DEBUGCFLAGS)

to:

CFLAGS = -palmos4.0 $(RELEASECFLAGS)

Get Palm OS Programming, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.