diff --git a/src/test/make/lift-directories.mk b/src/test/make/lift-directories.mk index 56eeb3d84..2e9788df5 100644 --- a/src/test/make/lift-directories.mk +++ b/src/test/make/lift-directories.mk @@ -25,11 +25,11 @@ BASIL_FLAGS ?= #BOOGIE_FLAGS=/proverOpt:O:smt.array.extensional=false BOOGIE_FLAGS ?= /useArrayAxioms -LIFT_ARTEFACTS=$(NAME).adt $(NAME).bir $(NAME).relf $(NAME).gts $(NAME).json +LIFT_ARTEFACTS=$(NAME).adt $(NAME).bir $(NAME).relf $(NAME).gts ENABLED_COMPILERS ?= clang clang_O2 clang_pic clang_no_plt_no_pic gcc gcc_O2 gcc_no_plt_no_pic gcc_pic -TARGETS := all verify clean cleanall cleanlift recompile json +TARGETS := all verify clean cleanall cleanlift cleanjson cleangts cleantest recompile json gts .PHONY : $(TARGETS) $(ENABLED_COMPILERS) $(TARGETS): $(ENABLED_COMPILERS) diff --git a/src/test/make/lift.mk b/src/test/make/lift.mk index f3f04d511..e38e3342f 100644 --- a/src/test/make/lift.mk +++ b/src/test/make/lift.mk @@ -6,7 +6,6 @@ $(LIFT_ARTEFACTS): a.out $(BAP) a.out -d adt:$(NAME).adt -d bir:$(NAME).bir ddisasm a.out --ir $(NAME).gtirb gtirb-semantics-nix $(NAME).gtirb $(NAME).gts - debug-gts.py $(NAME).gts > $(NAME).json ifdef $(SPEC) BASIL_SPECARG = --spec $(SPEC) @@ -28,11 +27,16 @@ $(BASIL): a.out: $(C_SOURCE) $(CC) $(CFLAGS) $(C_SOURCE) -.PHONY=recompile verify clean cleanlift cleanall cleanbin json +.PHONY=recompile verify clean cleanlift cleanall cleanbin cleantest cleangts json gts verify: $(NAME)_bap.bpl $(NAME)_gtirb.bpl recompile: a.out +gts: a.out + ddisasm a.out --ir $(NAME).gtirb + gtirb-semantics-nix $(NAME).gtirb $(NAME).gts + rm -rf $(NAME).gtirb + json: debug-gts.py $(NAME).gts > $(NAME).json @@ -42,7 +46,7 @@ $(NAME)bap_result.txt: $(NAME)_bap.bpl $(EXTRA_SPEC) $(NAME)gtirb_result.txt: $(NAME)_gtirb.bpl $(EXTRA_SPEC) bash -c "time boogie $(NAME)_gtirb.bpl $(EXTRA_SPEC) $(BOOGIE_FLAGS) | tee $(NAME)_result.txt" -cleanall: clean cleanlift cleanbin cleantest +cleanall: clean cleanlift cleanbin cleantest cleanjson cleantest: rm -rf $(NAME).bpl @@ -56,11 +60,16 @@ cleanbin: rm -rf a.out rm -rf $(NAME).gtirb -clean: cleanlift cleanbin +clean: cleanlift cleanbin cleanjson + +cleanjson: + rm -rf $(NAME).json cleanlift: rm -rf $(NAME).adt rm -rf $(NAME).bir rm -rf $(NAME).relf - rm -rf $(NAME).json + rm -rf $(NAME).gts +cleangts: + rm -rf $(NAME).gts \ No newline at end of file