diff --git a/src/asm/main.c b/src/asm/main.c index 19bfab71..e21c1544 100644 --- a/src/asm/main.c +++ b/src/asm/main.c @@ -403,6 +403,9 @@ main(int argc, char *argv[]) } if (dependfile) { + if (!tzObjectname) + errx(1, "Dependency files can only be created if an output object file is specified.\n"); + fprintf(dependfile, "%s: %s\n", tzObjectname, tzMainfile); }