lh-l4v/proof/Makefile

75 lines
1.6 KiB
Makefile
Raw Normal View History

2014-07-14 19:32:44 +00:00
#
# Copyright 2014, General Dynamics C4 Systems
#
2020-03-09 06:18:30 +00:00
# SPDX-License-Identifier: GPL-2.0-only
2014-07-14 19:32:44 +00:00
#
## Targets
images: BaseRefine CBaseRefine Refine CRefine
default: images test
test:
all: images test
# Allow sorry command in AARCH64 Refine during development:
ifeq "$(L4V_ARCH)" "AARCH64"
export REFINE_QUICK_AND_DIRTY=1
endif
2014-07-14 19:32:44 +00:00
#
# Setup heaps.
#
# Refine heaps.
HEAPS += AInvs BaseRefine Refine RefineOrphanage
2014-07-14 19:32:44 +00:00
# CRefine heaps.
HEAPS += CKernel CSpec CBaseRefine CRefine
2014-07-14 19:32:44 +00:00
# capDL heaps.
2014-11-23 08:54:59 +00:00
HEAPS += DBaseRefine DRefine DPolicy SepDSpec DSpecProofs
2014-07-14 19:32:44 +00:00
# Security Proofs
HEAPS += Access InfoFlow InfoFlowCBase InfoFlowC
2014-07-14 19:32:44 +00:00
# Binary Verification
HEAPS += SimplExportAndRefine
# Separation Kernel Bisimilarity
HEAPS += Bisim
2014-07-14 19:32:44 +00:00
# Separation Logic Tactics
HEAPS += SepTactics
2014-07-14 19:32:44 +00:00
# Additional dependencies
AInvs: design-spec ASpec-files
BaseRefine Refine DBaseRefine DRefine: design-spec ASpec-files
# CKernel uses the `machinety=machine_state` option for `install_C_file`,
# and therefore depends on `design-spec`.
CKernel CSpec : c-kernel design-spec
CBaseRefine CRefine SimplExportAndRefine : c-kernel design-spec ASpec-files
2014-07-14 19:32:44 +00:00
# Preprocess the kernel's source code and bitfield theory files.
c-kernel: .FORCE
cd ../spec && $(ISABELLE_TOOL) env make c-kernel
.PHONY: c-kernel
# Run the haskell translator
design-spec: .FORCE
cd ../spec && $(ISABELLE_TOOL) env make design-spec
.PHONY: design-spec
ASpec-files: .FORCE
cd ../spec && make ASpec-files
.PHONY: ASpec-files
2014-07-14 19:32:44 +00:00
include ../misc/isa-common.mk
# SimplExport is treated specially, to not save an image.
SimplExport: c-kernel design-spec
$(ISABELLE_TOOL) build -v -c -d $(ROOT_PATH) $@
.PHONY: SimplExport