interplane.Get Omega
Read in your language

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

branch main Branches Tags History

omega-mv / mk / omegatool-path.mk

15 lines · 997 bytes Raw Blame History
1# omegatool must not embed the omega checkout or physics path (CAND-2 prep). The physics
2# location is resolved at run time by src/omega_physics_dir.h (included by the C gate runners); the
3# resolution rule and the pin checks run on that header and on its pure OM-2 port
4# src/omega_physics_dir.om.
5OMEGATOOL_PATH_OMC ?= seed/out/omc
6OMEGATOOL_PATH_OM_SRCS := src/omega_physics_dir.om tests/omegatool_path/physics_dir_test.om
7.PHONY: test-omegatool-path
8$(OUT_DIR)/omegatool_path_test_om: $(OMEGATOOL_PATH_OM_SRCS) $(OMEGATOOL_PATH_OMC)
9 @mkdir -p $(dir $@)
10 (printf 'om2\n'; sed '/^om2$$/d' $(OMEGATOOL_PATH_OM_SRCS)) | $(OMEGATOOL_PATH_OMC) > $@ && chmod +x $@
11test-omegatool-path: $(OUT_DIR)/omegatool_path_test_om
12 $(CC) -std=gnu11 -Wall -Wextra -Werror -D_GNU_SOURCE -O2 -Isrc -o $(OUT_DIR)/omegatool_path_test tests/omegatool_path/physics_dir_test.c
13 $(OUT_DIR)/omegatool_path_test
14 $(OUT_DIR)/omegatool_path_test_om
15 PHYSICS_DIR=$(PHYSICS_DIR) tests/omegatool_path/no_embedded_path_test.sh