z/TPF Program Management - IBM
z/TPF Program Management - IBM
z/TPF Program Management - IBM
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
|<br />
|<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 bill<br />
See “maketpf utility” on page 6 for more information about the maketpf<br />
command and its options.<br />
See Compiler and system levels by PUT for more information about the<br />
supported compiler levels for each program update (PUT).<br />
Create an archive for online programs<br />
To create and build an archive for online programs, follow these steps:<br />
1. Create a new makefile (/home/joe/mywork/billing/rt/src/TaxFunctions.mak)<br />
as shown in the following example:<br />
ARCHIVE := TaxFunctions<br />
C_SRC := addtax.c<br />
maketpf_env := billing<br />
maketpf_env += base_rt<br />
include maketpf.rules<br />
2. Create a source segment named /home/joe/mywork/billing/rt/src/addtax.c.<br />
3. Update the user control file and add a new entry for the archive named<br />
TaxFunctions. Enter the following information on one line.<br />
TaxFunctions;ARCHIVE;billing/rt/src/TaxFunctions.mak;1;ALL;OBJ;<strong>TPF</strong>_SBALL;NOLOAD;<br />
NOSTUB;;;;;;;;;;;;;;;;;;;;;;;;;<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 TaxFunctions must<br />
appear before online program BILL.<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 TaxFunctions<br />
Create an offline Linux program<br />
See “maketpf utility” on page 6 for more information about the maketpf<br />
command and its options.<br />
To create and build an offline Linux program (EXE), follow these steps:<br />
1. Create a new makefile (/home/joe/mywork/billing/linux/src/<br />
CustomerSummary.mak) as shown in the following example:<br />
Note: This program will use functions from an archive named Receipts.<br />
EXE := CustomerSummary<br />
<strong>TPF</strong>_OL := Linux<br />
ARCHIVES := Receipts<br />
CXX_SRC := list.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 />
list.cpp.<br />
Assemble, compile, and link (build) application programs 67