Makefiles

Makefiles are used by the maketpf command to specify the program name, type, component, and any special build options that are required for a clean build (assemble, compile, and link). All information is coded by assignment statements and adheres to GNU make syntax.

Makefiles refer to environment files to define the paths for files that you need for the build process and to specify the directories to use for output. Makefiles also include maketpf.rules as their last statement to include the compile, assemble, and link rules for z/TPF processing.

The maketpf.rules file includes a set of common rules files that are located in the tpftools/include_ztpf and tpftools/include_ztpf_user directories. The audits in these files are run by maketpf to check build input and output, and can issue errors and warning messages. These audits can be external programs that check for errors. For example, the maketpf audit that checks for programs that export data objects needing relocation is defined in these files. See Resolve TSOC0001W warnings for more information about this maketpf audit.

You can add and audit rules in the maketpf.rules_setup1 and maketpf.rules_setup2 files. If you want to change a rules file that was included by IBM®, move the appropriate file to the tpftools/include_ztpf_user directory (this directory is searched before the tpftools/include_ztpf directory) and modify the file.

See Assemble, compile, and link (build) application programs for tasks dealing with makefiles. For reference information about coding makefiles, enter man maketpf.mak on your Linux® on IBM Z® build system.