-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
49 lines (31 loc) · 1.3 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
.DEFAULT_GOAL := check
SHELL := /bin/bash
CORIM_DIR := draft-ietf-rats-corim/cddl/
CE_DIR := ./
include $(CORIM_DIR)corim-frags.mk
CORIM_DEPS := $(addprefix $(CORIM_DIR), $(CORIM_FRAGS))
include tools.mk
include funcs.mk
$(CORIM_DEPS): ; $(MAKE) -C $(CORIM_DIR)
check:: check-comidx check-comidx-examples
check:: check-spdm check-spdm-examples
check:: check-ce check-ce-examples
include $(CE_DIR)ce-frags.mk
CE_DEPS := $(addprefix $(CE_DIR), $(CE_FRAGS))
SPDM_FRAGS := spdm-start.cddl
SPDM_FRAGS += $(CE_DEPS)
SPDM_FRAGS += $(CORIM_DEPS)
SPDM_EXAMPLES := $(wildcard examples/spdm-*.diag) # spdm toc example filenames have 'spdm-' prefix
$(eval $(call cddl_check_template,spdm,$(SPDM_FRAGS),$(SPDM_EXAMPLES)))
CE_FRAGS := ce-start.cddl
CE_FRAGS += $(CE_DEPS)
CE_FRAGS += $(CORIM_DEPS)
CE_EXAMPLES := $(wildcard examples/ce-*.diag) # concise-evidence example filenames have 'ce-' prefix
$(eval $(call cddl_check_template,ce,$(CE_FRAGS),$(CE_EXAMPLES)))
COMID_X_FRAGS := comid-x-start.cddl
COMID_X_FRAGS += $(CE_DEPS)
COMID_X_FRAGS += $(CORIM_DEPS)
COMID_X_EXAMPLES := $(wildcard examples/comid-*.diag) # concise-mid-tag example filenames have 'comid-' prefix
$(eval $(call cddl_check_template,comidx,$(COMID_X_FRAGS),$(COMID_X_EXAMPLES)))
clean: ; rm -f $(CLEANFILES)
clean-extra: clean ; $(MAKE) -C $(CORIM_DIR) clean