build the programs the way the modules are built

Each program had its own recipe: a hand-written link list, a cd into
tests/ so its includes would not find the modules' namesakes, and a
renamed output so csc would not overwrite the module sexc.o. Read off
their imports like the modules', and compiled to an object named after
their source, they share one rule; include-relative ends the cd.
This commit is contained in:
2026-10-15 15:18:17 +03:00
parent 0024ea4b8d
commit bdc45e38e4
3 changed files with 121 additions and 80 deletions

View File

@@ -1,18 +1,18 @@
(import
test)
(include "basic.scm")
(include "semen.scm")
(include "reader.scm")
(include "fmt-c-writer.scm")
(include "utils.scm")
(include "line-directives.scm")
(include "codegen.scm")
(include "encapsulation.scm")
(include "args.scm")
(include "module-path.scm")
(include "types.scm")
(include "infer.scm")
(include-relative "basic.scm")
(include-relative "semen.scm")
(include-relative "reader.scm")
(include-relative "fmt-c-writer.scm")
(include-relative "utils.scm")
(include-relative "line-directives.scm")
(include-relative "codegen.scm")
(include-relative "encapsulation.scm")
(include-relative "args.scm")
(include-relative "module-path.scm")
(include-relative "types.scm")
(include-relative "infer.scm")
;;; Should be the last in the test suite
(test-exit)