Beginning with the May 12 build, zcc will be able to accept list files as part of the source code input on the compile line.
List files are indicated on the compile line by a leading '@' character in their filenames. This tells zcc that it should open the file and read a list of files inside to add to the compile. The list file must contain one filename per line. These filenames can themselves be list files (with leading '@'); the recursion depth is determined by the system's max allowed number of simultaneously open files.
An example:
zcc +cpm -vn -clib=sdcc_iy --max-allocs-per-node200000 @source.lst routines.asm mylib.c -o wordpro
Three files are listed for compiling into an output binary "wordpro": "@source.lst", "routines.asm" and "mylib.c". Because "source.lst" is a list file, zcc will open the file "source.lst" and read a list of more source files to add to the compile.
If file "source.lst" contains:
foo.asm
bar.c
zeet.c
Then zcc will also compile "foo.asm", "bar.c" and "zeet.c" into the output binary.