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 / omega-from-seed.mk
| 1 | # Pure seeded-Omega build, birth, UXL, and release coordinators (seed/build/*.om). |
| 2 | # Birth the Omega compiler from seed-0 through pure-Omega seed/build/birth.om (seed0 -> hex1 -> |
| 3 | # asm2 -> om4 -> omc fixpoint -> diaggen -> 8-case size-record -> names-pass probes). |
| 4 | # No C compiler and no Python runs on this path. |
| 5 | .PHONY: omega-from-seed om-build-gate om-check-locks om-check-paths om-uxl om-layers om-release |
| 6 | |
| 7 | OMC_BIN ?= seed/out/omc |
| 8 | OM_BUILD_DIR ?= build/om-coord |
| 9 | |
| 10 | $(OM_BUILD_DIR): |
| 11 | @mkdir -p $(OM_BUILD_DIR) |
| 12 | |
| 13 | $(OM_BUILD_DIR)/om-birth: seed/build/common.om seed/build/birth.om $(OMC_BIN) | $(OM_BUILD_DIR) |
| 14 | cat seed/build/common.om seed/build/birth.om | $(OMC_BIN) > $@.tmp.$$$$ && chmod 755 $@.tmp.$$$$ && mv -f $@.tmp.$$$$ $@ |
| 15 | |
| 16 | $(OM_BUILD_DIR)/om-release: seed/build/common.om seed/build/release.om $(OMC_BIN) | $(OM_BUILD_DIR) |
| 17 | cat seed/build/common.om seed/build/release.om | $(OMC_BIN) > $@.tmp.$$$$ && chmod 755 $@.tmp.$$$$ && mv -f $@.tmp.$$$$ $@ |
| 18 | |
| 19 | $(OM_BUILD_DIR)/om-build-gate: seed/build/common.om seed/build/gate.om $(OMC_BIN) | $(OM_BUILD_DIR) |
| 20 | cat seed/build/common.om seed/build/gate.om | $(OMC_BIN) > $@.tmp.$$$$ && chmod 755 $@.tmp.$$$$ && mv -f $@.tmp.$$$$ $@ |
| 21 | |
| 22 | omega-from-seed: |
| 23 | sh seed/omega-from-seed.sh |
| 24 | |
| 25 | om-build-gate: $(OM_BUILD_DIR)/om-build-gate |
| 26 | rm -rf $(OM_BUILD_DIR)/gate-work |
| 27 | ./$(OM_BUILD_DIR)/om-build-gate $(OM_BUILD_DIR)/gate-work |
| 28 | |
| 29 | om-check-locks: $(OM_BUILD_DIR)/om-release |
| 30 | ./$(OM_BUILD_DIR)/om-release check-locks |
| 31 | |
| 32 | om-check-paths: $(OM_BUILD_DIR)/om-release |
| 33 | ./$(OM_BUILD_DIR)/om-release check-paths |
| 34 | |
| 35 | om-uxl: $(OM_BUILD_DIR)/om-release |
| 36 | rm -rf $(OM_BUILD_DIR)/uxl-work |
| 37 | ./$(OM_BUILD_DIR)/om-release uxl $(OM_BUILD_DIR)/uxl-work |
| 38 | |
| 39 | om-layers: $(OM_BUILD_DIR)/om-release |
| 40 | rm -rf $(OM_BUILD_DIR)/layers-work |
| 41 | ./$(OM_BUILD_DIR)/om-release layers $(OM_BUILD_DIR)/layers-work |
| 42 | |
| 43 | OM_RELEASE_OUT ?= build/release-pkg |
| 44 | OM_RELEASE_VER ?= 1.0.0-dev |
| 45 | om-release: $(OM_BUILD_DIR)/om-release |
| 46 | rm -rf $(OM_RELEASE_OUT) |
| 47 | ./$(OM_BUILD_DIR)/om-release package $(OM_RELEASE_OUT) $(OM_RELEASE_VER) |
| 48 | ./$(OM_BUILD_DIR)/om-release verify $(OM_RELEASE_OUT) |