For each file f we go through the list of constructors that are used in this file as specified by the variable USES (see Section 38.1). For each of these constructors we check whether it is defined in a file p of the current project. Such definitions are given through the variables DOMAINS and CATEGORIES.
If p could be found, then f depends on p and an appropriate entry is added to the DEP hash variable.
If such a p cannot be found than the constructor is considered to be external and nothing is done.
Extensions are treated afterwards.