aboutsummaryrefslogtreecommitdiffstats
path: root/test/monniaux/sha-2
diff options
context:
space:
mode:
authorDavid Monniaux <david.monniaux@univ-grenoble-alpes.fr>2019-02-06 18:45:04 +0100
committerDavid Monniaux <david.monniaux@univ-grenoble-alpes.fr>2019-02-06 18:45:04 +0100
commite8b35c4b975a46a5dc5e0c022897359cbfe2d72b (patch)
tree63eefc37ce7964ffbfdc847dabe8e59e5894b540 /test/monniaux/sha-2
parent5ad25465f77c3009eaff7e9a124c254c1e9f33cd (diff)
downloadcompcert-kvx-e8b35c4b975a46a5dc5e0c022897359cbfe2d72b.tar.gz
compcert-kvx-e8b35c4b975a46a5dc5e0c022897359cbfe2d72b.zip
Makefiles now use rules.mk, and added a prohibition of unprototyped functions
Diffstat (limited to 'test/monniaux/sha-2')
-rw-r--r--test/monniaux/sha-2/Makefile21
1 files changed, 1 insertions, 20 deletions
diff --git a/test/monniaux/sha-2/Makefile b/test/monniaux/sha-2/Makefile
index eb878cd3..f3918f7f 100644
--- a/test/monniaux/sha-2/Makefile
+++ b/test/monniaux/sha-2/Makefile
@@ -1,25 +1,9 @@
-CFLAGS=-Wall -O3
-K1C_CC=k1-mbr-gcc
-K1C_CFLAGS=-Wall -O3 -std=c99
-K1C_CCOMP=../../../ccomp
-K1C_CCOMPFLAGS=-Wall -O3
+include ../rules.mk
PRODUCTS=sha-256.host sha-256.gcc.k1c.out sha-256.ccomp.k1c.out sha-256.ccomp.k1c.s sha-256.gcc.k1c.s sha-256.gcc.k1c sha-256.ccomp.k1c
all: $(PRODUCTS)
-%.gcc.k1c.s: %.c
- $(K1C_CC) $(K1C_CFLAGS) -S $< -o $@
-
-%.gcc.k1c.o: %.gcc.k1c.s
- $(K1C_CC) $(K1C_CFLAGS) -c $< -o $@
-
-%.ccomp.k1c.s: %.c
- $(K1C_CCOMP) $(K1C_CCOMPFLAGS) -S $< -o $@
-
-%.ccomp.k1c.o: %.ccomp.k1c.s
- $(K1C_CCOMP) $(K1C_CCOMPFLAGS) -c $< -o $@
-
sha-256.host: sha-256.c sha-256_run.c sha-256.h
$(CC) $(CFLAGS) sha-256.c sha-256_run.c -o $@
@@ -31,9 +15,6 @@ sha-256.gcc.k1c: sha-256.gcc.k1c.o sha-256_run.gcc.k1c.o
sha-256.ccomp.k1c: sha-256.ccomp.k1c.o sha-256_run.gcc.k1c.o
$(K1C_CCOMP) $(K1C_CCOMPFLAGS) $+ -o $@
-%.k1c.out: %.k1c
- k1-cluster --cycle-based -- $< | tee $@
-
clean:
$(RM) -f $(PRODUCTS) sha-256.gcc.k1c.o sha-256.ccomp.k1c.o sha-256_run.gcc.k1c.o sha-256_run.gcc.k1c.s