omega-mv
Omega: a language for verified programs, semantic identity and machine realization. Seed-born work and existing implementations have distinct provenance.
Brought by drakestapleton
omega-mv / mk / polyglot-asm.mk
| 1 | # POLYGLOT-0 lane B1: pure seeded OM-2 correctness gate (spec/polyglot-0.md). |
| 2 | # test-polyglot-asm: builds and runs tests/polyglot/test_asm.om via seed/out/omc |
| 3 | # (error contract, MA-3 shape grid, random unaligned+canary cases, large magnitudes |
| 4 | # up to OMA_RZ_MAX_N). |
| 5 | # Guarded because Makefile includes mk/*.mk and mk/polyglot.mk may be read alongside. |
| 6 | ifndef POLYGLOT_ASM_MK |
| 7 | POLYGLOT_ASM_MK := 1 |
| 8 | |
| 9 | PGA_OMC ?= seed/out/omc |
| 10 | PGA_DIR = $(OUT_DIR)/tests-polyglot |
| 11 | PGA_SRCS = src/polyglot/omx_common.om tests/polyglot/test_asm.om |
| 12 | PGA_TEST = $(PGA_DIR)/test_asm |
| 13 | |
| 14 | $(PGA_TEST): $(PGA_SRCS) |
| 15 | @mkdir -p $(dir $@) |
| 16 | cat $(PGA_SRCS) | $(PGA_OMC) > $@ && chmod +x $@ |
| 17 | |
| 18 | .PHONY: test-polyglot-asm |
| 19 | test-polyglot-asm: $(PGA_TEST) |
| 20 | ./$(PGA_TEST) |
| 21 | |
| 22 | endif |