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.
Makefiles<br />
Control files<br />
4 z/<strong>TPF</strong> <strong>Program</strong> <strong>Management</strong><br />
Makefiles are used by the maketpf command to specify the program name, type,<br />
component, and any special build options that are required for a clean build<br />
(assemble, compile, and link). All information is coded by assignment statements<br />
and adheres to GNU make syntax.<br />
Makefiles refer to environment files to define the paths for files that you need for the<br />
build process and to specify the directories to use for output. Makefiles also include<br />
maketpf.rules as their last statement to include the compile, assemble, and link<br />
rules for z/<strong>TPF</strong> processing.<br />
The maketpf.rules file includes a set of common rules files that are located in the<br />
tpftools/include_ztpf and tpftools/include_ztpf_user directories. The audits in<br />
these files are run by maketpf to check build input and output, and can issue errors<br />
and warning messages. These audits can be external programs that check for<br />
errors. For example, the maketpf audit that checks for programs that export data<br />
objects needing relocation is defined in these files. See “Resolve TSOC0001W<br />
warnings” on page 70 for more information about this maketpf audit.<br />
You can add and audit rules in the maketpf.rules_setup1 and<br />
maketpf.rules_setup2 files. If you want to change a rules file that was included by<br />
<strong>IBM</strong> ® , move the appropriate file to the tpftools/include_ztpf_user directory (this<br />
directory is searched before the tpftools/include_ztpf directory) and modify the<br />
file.<br />
See “Assemble, compile, and link (build) application programs” on page 57 for tasks<br />
dealing with makefiles. For reference information about coding makefiles, enter man<br />
maketpf.mak on your Linux build system.<br />
Control files contain a list of programs that can be built by the Make<strong>TPF</strong> build<br />
solution. Control files do the following:<br />
v Define program build options such as makefile, build order, whether the program<br />
is offline or online, and others<br />
v Are used as input for bldtpf to create general file loader, image loader, and<br />
E-type loader input files<br />
v Are used as input for bldtpf to create the program attribute table (PAT)<br />
v Define program attributes (such as protection, restricted use, and so on)<br />
v Are used for system programs (tpf.cntl) and user applications (usr.cntl).<br />
The Make<strong>TPF</strong> build solution recognizes two system-level control files: tpf.cntl and<br />
usr.cntl. However, you can arrange control files into smaller and more<br />
manageable chunks by using include statements in the control files. See Table 4 on<br />
page 103 for information about the set of control files that are included.<br />
You can also use control files on a project level. See “Assemble, compile, and link<br />
(build) application programs” on page 57 for tasks showing how this can be done.<br />
For reference information about control files and the control file format, see “Control<br />
files” on page 103 and the prolog of base/cntl/tpf.cntl.