22.12.2012 Views

z/TPF Program Management - IBM

z/TPF Program Management - IBM

z/TPF Program Management - IBM

SHOW MORE
SHOW LESS

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

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

3. Update the user control file and add a new entry for the offline Linux program<br />

named CustomerSummary. Enter the following information on one line.<br />

CustomerSummary;OL;billing/linux/src/CustomerSummary.mak;1;LINUX;<br />

NOOBJ;;;;;;;;;;;;;;;;;;;;;;;;;;;;<br />

See “Control files” on page 103 for more information about the control file fields<br />

and values.<br />

4. Enter the maketpf command to build the program. This assumes a that file<br />

named maketpf.cfg exists in the /home/joe/mywork/build directory.<br />

cd /home/joe/mywork/build<br />

maketpf CustomerSummary<br />

See “maketpf utility” on page 6 for more information about the maketpf<br />

command and its options.<br />

Create an archive for offline Linux programs<br />

To create and build an archive for offline Linux programs, follow these steps:<br />

1. Create a new makefile (/home/joe/mywork/billing/linux/src/Receipts.mak) as<br />

shown in the following example:<br />

ARCHIVE := Receipts<br />

<strong>TPF</strong>_OL := Linux<br />

CXX_SRC := receipts.cpp<br />

maketpf_env := billing_linux<br />

maketpf_env += base_rt<br />

include maketpf.rules<br />

2. Create a source segment named /home/joe/mywork/billing/linux/src/<br />

receipts.cpp.<br />

3. Update the user control file and add a new entry for the archive named<br />

Receipts. Enter the following information on one line.<br />

Receipts;ARCHIVE;billing/linux/src/Receipts.mak;1;LINUX;<br />

NOOBJ;;;;;;;;;;;;;;;;;;;;;;;;;;;;<br />

Note: You must add this archive to the control file before any program that calls<br />

it. In our example tasks, this means that the entry for Receipts must<br />

appear before offline program CustomerSummary.<br />

See “Control files” on page 103 for more information about the control file fields<br />

and values.<br />

4. Enter the maketpf command to build the program. This assumes that a file<br />

named maketpf.cfg exists in the /home/joe/mywork/build directory.<br />

cd /home/joe/mywork/build<br />

maketpf Receipts<br />

Create an offline z/OS program<br />

68 z/<strong>TPF</strong> <strong>Program</strong> <strong>Management</strong><br />

See “maketpf utility” on page 6 for more information about the maketpf<br />

command and its options.<br />

To create and build a new makefile for an offline z/OS program (EXE), follow these<br />

steps:<br />

1. Create a new makefile (home/joe/mywork/billing/zos/src/custsumm.mak) as<br />

shown in the following example:

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

Saved successfully!

Ooh no, something went wrong!