72 lines
1.6 KiB
Makefile
72 lines
1.6 KiB
Makefile
#
|
|
# Copyright 2014, General Dynamics C4 Systems
|
|
#
|
|
# SPDX-License-Identifier: GPL-2.0-only
|
|
#
|
|
|
|
## Targets
|
|
images: BaseRefine CBaseRefine Refine CRefine
|
|
default: images test
|
|
test:
|
|
all: images test
|
|
report-regression:
|
|
@echo Refine Access CBaseRefine CRefine \
|
|
DRefine InfoFlow InfoFlowCBase InfoFlowC DPolicy \
|
|
DSpecProofs Bisim
|
|
|
|
#
|
|
# Setup heaps.
|
|
#
|
|
|
|
# Refine heaps.
|
|
HEAPS += AInvs BaseRefine Refine RefineOrphanage
|
|
|
|
# CRefine heaps.
|
|
HEAPS += CKernel CSpec CBaseRefine CRefine
|
|
|
|
# capDL heaps.
|
|
HEAPS += DBaseRefine DRefine DPolicy SepDSpec DSpecProofs
|
|
|
|
# Security Proofs
|
|
HEAPS += Access InfoFlow InfoFlowCBase InfoFlowC
|
|
|
|
# Binary Verification
|
|
HEAPS += SimplExportAndRefine
|
|
|
|
# Separation Kernel Bisimilarity
|
|
HEAPS += Bisim
|
|
|
|
# Separation Logic Tactics
|
|
HEAPS += SepTactics
|
|
|
|
# Additional dependencies
|
|
|
|
BaseRefine Refine DBaseRefine DRefine: design-spec
|
|
|
|
# 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
|
|
|
|
# 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
|
|
|
|
include ../misc/isa-common.mk
|
|
|
|
# SimplExportOnly is treated specially, to not save an image.
|
|
SimplExportOnly: c-kernel design-spec
|
|
$(ISABELLE_TOOL) build -v -c -d $(ROOT_PATH) $@
|
|
.PHONY: SimplExportOnly
|