-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathMakefile
More file actions
33 lines (28 loc) · 878 Bytes
/
Makefile
File metadata and controls
33 lines (28 loc) · 878 Bytes
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
TOP_DIR := $(shell pwd)
ifndef CSI_CC
CSI_CC=$(shell which csi-cc)
CSI_CC_BAD=$(shell which csi-cc 1> /dev/null 2> /dev/null; echo $$?)
else
CSI_CC_BAD=0
endif
all: analysis/stamp do-csi-analysis
analysis/stamp:
ifndef SVPA_LIB_DIR
@(>&2 echo "error: No SVPA_LIB_DIR specified. Provide SVPA_LIB_DIR=/symbolicautomata/path to make.")
@exit 1
else
@$(MAKE) -C analysis test SVPA_LIB_DIR=$(SVPA_LIB_DIR) FIRST_SOLVER=FSA SECOND_SOLVER=UTL
touch $@
endif
.SECONDEXPANSION:
do-csi-analysis: frontend/$$@.in analysis/stamp
ifneq "$(CSI_CC_BAD)" "0"
@(>&2 echo "error: Could not find csi-cc. Provide CSI_CC=/path/to/csi/cc to make.")
@exit 1
else
sed -e 's|@TOP_DIR@|$(TOP_DIR)|' -e 's|@CSI_CC_DIR@|$(shell dirname $(shell dirname $(shell readlink -f $(CSI_CC))))|' $< >| $@
chmod u+x $@
endif
clean:
@$(MAKE) -C analysis clean
rm -f analysis/stamp do-csi-analysis