The variable ASFILES (as given through the file test/Makefile.asfiles) specifies the source files with extension .as.nw that are considered to build the libraries. As in the case of the src directory there will be two versions of .as files.
These files are used by the ALDOR compiler for the build of the testcases libraries. Here line numbers of the form
#line LINENUMBER "FILENAME"
|
are generated into the .as file. This is done by means of the ’-L’ option of NOTANGLE. The ’-L’ option, however, copies the indentation directly from the .as.nw file. There is no nested indentation as in the first case.
Both versions differ only in indentation and the fact that the second version will have the line numbers from the .as.nw file added.
The reason for the generation of two versions is that it is easier to generate the dependencies from the source files that have a proper indentation (first version).
The file test/Makefile.asfiles is generated by tools/asfiles.pl.nw (see Section 29.3) and looks as follows.
In order to avoid to specify the paths of the .as.nw files, we use the vpath directive.
Note that we also make the directory PROJECTROOT/src available, because that is where the generated project library is before installation.
The generation of the .as files with prefix is given below. The generation of the .as files without prefix is the standard one as described in Section 29.4.