E.7.2 Target variables

The second set of variables controls the targets that are constructed by the makefile. They are created by fpcmake, so you can use them in your rules, but you shouldn’t assign values to them yourself.

TARGET_DIRS
This is the list of directories that make will descend into when compiling. Set by the Dirs key in the Target section?
TARGET_EXAMPLES
The list of examples programs that must be compiled. Set by the examples key in the Target section.
TARGET_EXAMPLEDIRS
The list of directories that make will descend into when compiling examples. Set by the exampledirs key in the Target section.
TARGET_LOADERS
Is a list of space-separated names that identify loaders to be compiled. This is mainly used in the compiler’s RTL sources. It is set by the loaders keyword in the Targets section.
TARGET_PROGRAMS
This is a list of executable names that will be compiled. the makefile appends $(EXEEXT) to these names. It is set by the programs keyword in the Target section.
TARGET_UNITS
This is a list of unit names that will be compiled. The makefile appends $(PPUEXT) to each of these names to form the unit file name. The sourcename is formed by adding $(PASEXT). It is set by the units keyword in the Target section.
ZIPNAME
Is the name of the archive that will be created by the makefile. It is set by the zipname keyword in the Zip section.
ZIPTARGET
Is the target that is built before the archive is made. This target is built first. If successful, the zip archive will be made. It is set by the ziptarget keyword in the Zip section.