aboutsummaryrefslogtreecommitdiffstats
path: root/test/monniaux/idea
diff options
context:
space:
mode:
authorDavid Monniaux <david.monniaux@univ-grenoble-alpes.fr>2019-02-05 19:05:09 +0100
committerDavid Monniaux <david.monniaux@univ-grenoble-alpes.fr>2019-02-05 19:05:09 +0100
commitc5ce41e18c1cf9f2213a37825137aba5a38365a6 (patch)
tree5aa4ec766a3f0759f157787686298c28fe18273f /test/monniaux/idea
parent3ded76b3c514f21b3e3f10589d2ca2eb43f4fe6a (diff)
downloadcompcert-kvx-c5ce41e18c1cf9f2213a37825137aba5a38365a6.tar.gz
compcert-kvx-c5ce41e18c1cf9f2213a37825137aba5a38365a6.zip
simplification des Makefile
Diffstat (limited to 'test/monniaux/idea')
-rw-r--r--test/monniaux/idea/Makefile32
1 files changed, 1 insertions, 31 deletions
diff --git a/test/monniaux/idea/Makefile b/test/monniaux/idea/Makefile
index 6e0f2920..75b7ce43 100644
--- a/test/monniaux/idea/Makefile
+++ b/test/monniaux/idea/Makefile
@@ -1,33 +1,9 @@
-CFLAGS=-Wall -O3
-CCOMP=ccomp # for host
-CCOMPFLAGS=-Wall -O3
-K1C_CC=k1-mbr-gcc
-K1C_CFLAGS=-Wall -O3 -std=c99
-K1C_CCOMP=../../../ccomp
-K1C_CCOMPFLAGS=-Wall -O3
+include ../rules.mk
PRODUCTS=idea.gcc.host.out idea.ccomp.host.out idea.gcc.k1c.out idea.ccomp.k1c.out idea.ccomp.k1c.s idea.gcc.k1c.s idea.gcc.k1c idea.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 $@
-
-%.gcc.host.o: %.c
- $(CC) $(K1C_CFLAGS) -c $< -o $@
-
-%.ccomp.host.o: %.c
- $(CCOMP) $(CCOMPFLAGS) -c $< -o $@
-
idea.gcc.host: idea.c idea.h ../clock.gcc.host.o
$(CC) $(CFLAGS) idea.c ../clock.gcc.host.o -o $@
@@ -42,12 +18,6 @@ idea.gcc.k1c: idea.gcc.k1c.o ../clock.gcc.k1c.o
idea.ccomp.k1c: idea.ccomp.k1c.o ../clock.gcc.k1c.o
$(K1C_CCOMP) $(K1C_CCOMPFLAGS) $+ -o $@
-%.k1c.out: %.k1c
- k1-cluster --cycle-based -- $< | tee $@
-
-%.host.out: %.host
- ./$< | tee $@
-
clean:
$(RM) -f $(PRODUCTS) idea.gcc.k1c.o idea.ccomp.k1c.o