and the information from compat/archdirs.mk. Also add suport MKCOMPATTESTS and process the NetBSD.dist.tests to generate appropriate compat directories.