diff options
author | Xavier Leroy <xavier.leroy@college-de-france.fr> | 2021-09-16 14:54:22 +0200 |
---|---|---|
committer | Xavier Leroy <xavier.leroy@college-de-france.fr> | 2021-09-22 16:06:39 +0200 |
commit | dffc9885e54f9c68af23ec79023dfe8516a4cc32 (patch) | |
tree | f7a3755303b6a14b039d90f335d4b860da93ac1e /test/clightgen/Makefile | |
parent | d32955030937937706b71a96dc6584800f0b8722 (diff) | |
download | compcert-kvx-dffc9885e54f9c68af23ec79023dfe8516a4cc32.tar.gz compcert-kvx-dffc9885e54f9c68af23ec79023dfe8516a4cc32.zip |
Add support to clightgen for generating Csyntax AST as .v files
As proposed in #404.
This is presented as a new option `-clight` to the existing `clightgen` tool.
Revise clightgen testing to test the Csyntax output in addition to
the Clight output.
Diffstat (limited to 'test/clightgen/Makefile')
-rw-r--r-- | test/clightgen/Makefile | 56 |
1 files changed, 0 insertions, 56 deletions
diff --git a/test/clightgen/Makefile b/test/clightgen/Makefile deleted file mode 100644 index 83ba0fd3..00000000 --- a/test/clightgen/Makefile +++ /dev/null @@ -1,56 +0,0 @@ -include ../../Makefile.config - -ifeq ($(wildcard ../../$(ARCH)_$(BITSIZE)),) -ARCHDIRS=$(ARCH) -else -ARCHDIRS=$(ARCH)_$(BITSIZE) $(ARCH) -endif -RECDIRS := lib common $(ARCHDIRS) cfrontend export -COQINCLUDES := $(foreach d, $(RECDIRS), -R ../../$(d) compcert.$(d)) -ifeq ($(LIBRARY_FLOCQ),local) -COQINCLUDES += -R ../../flocq Flocq -endif - - -CLIGHTGEN=../../clightgen -COQC=coqc - -# Regression tests in the current directory -SRC=$(wildcard *.c) -# From ../c -SRC+=aes.c almabench.c binarytrees.c bisect.c chomp.c fannkuch.c fft.c \ - fftsp.c fftw.c fib.c integr.c knucleotide.c lists.c mandelbrot.c \ - nbody.c nsievebits.c nsieve.c perlin.c qsort.c sha1.c sha3.c \ - siphash24.c spectral.c vmach.c -# From ../raytracer -SRC+=arrays.c eval.c gmllexer.c gmlparser.c intersect.c light.c main.c \ - matrix.c memory.c object.c render.c simplify.c surface.c vector.c - -CFLAGS=-DSYSTEM_$(SYSTEM) - -aes.vo almabench.vo binarytrees.vo bisect.vo chomp.vo: CFLAGS += -short-idents - -fft.vo fftsp.vo fftw.vo fib.vo integr.vo knucleotide.vo: CFLAGS += -short-idents -normalize - -qsort.vo sha1.vo sha3.vo siphash24.vo spectral.vo vmach.vo: CFLAGS += -normalize - -all: $(SRC:.c=.vo) - -test: - -%.v: %.c - $(CLIGHTGEN) $(CFLAGS) -o $@ $< - -%.v: ../c/%.c - $(CLIGHTGEN) $(CFLAGS) -o $@ $< - -%.v: ../raytracer/%.c - $(CLIGHTGEN) -I../raytracer -fall $(CFLAGS) -o $@ $< - -%.vo: %.v - $(COQC) $(COQINCLUDES) -noglob $< - -.SECONDARY: $(SRC:.c=.v) - -clean: - rm -f *.v *.vo* .*.aux |