aboutsummaryrefslogtreecommitdiffstats
path: root/test/monniaux/micro-bunzip/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'test/monniaux/micro-bunzip/Makefile')
-rw-r--r--test/monniaux/micro-bunzip/Makefile53
1 files changed, 53 insertions, 0 deletions
diff --git a/test/monniaux/micro-bunzip/Makefile b/test/monniaux/micro-bunzip/Makefile
new file mode 100644
index 00000000..58dfed9b
--- /dev/null
+++ b/test/monniaux/micro-bunzip/Makefile
@@ -0,0 +1,53 @@
+include ../rules.mk
+
+all: testfile.txt testfile.txt.2ccomp testfile.txt.2gcc testfile.ccomp.k1c.out testfile.gcc.k1c.out testfile.ccomp.host.out testfile.gcc.host.out
+ cmp testfile.txt testfile.txt.2ccomp
+ cmp testfile.txt testfile.txt.2gcc
+
+micro-bunzip.ccomp.host: micro-bunzip.c ../clock.gcc.host.o
+ $(CCOMP) $(CCOMPFLAGS) $+ -o $@
+
+micro-bunzip.ccomp.k1c: micro-bunzip.c ../clock.gcc.k1c.o
+ $(K1C_CCOMP) $(K1C_CCOMPFLAGS) $+ -o $@
+
+micro-bunzip.gcc.host: micro-bunzip.c ../clock.gcc.host.o
+ $(CC) $(CFLAGS) $+ -o $@
+
+# micro-bunzip.gcc.k1c: micro-bunzip.c ../clock.gcc.k1c.o
+# $(K1C_CC) $(K1C_CFLAGS) $+ -o $@
+
+# TODO: -O3 buggy??
+micro-bunzip.gcc.k1c: micro-bunzip.c ../clock.gcc.k1c.o
+ $(K1C_CC) -Wall -O2 $+ -o $@
+
+testfile.txt: micro-bunzip.c
+ cat micro-bunzip.c > $@
+ sha1sum micro-bunzip.c >> $@
+ cat micro-bunzip.c >> $@
+ md5sum micro-bunzip.c >> $@
+# cat micro-bunzip.c >> $@
+# sha224sum micro-bunzip.c >> $@
+# cat micro-bunzip.c >> $@
+# sha256sum micro-bunzip.c >> $@
+# cat micro-bunzip.c >> $@
+# sha384sum micro-bunzip.c >> $@
+# cat micro-bunzip.c >> $@
+# sha512sum micro-bunzip.c >> $@
+#x cat micro-bunzip.c >> $@
+
+testfile.txt.2ccomp testfile.ccomp.k1c.out: testfile.txt micro-bunzip.ccomp.k1c
+ bzip2 <testfile.txt | k1-cluster --cycle-based --syscall=libstd_scalls.so -- micro-bunzip.ccomp.k1c > testfile.txt.2ccomp 2> testfile.ccomp.k1c.out
+
+testfile.txt.2gcc testfile.gcc.k1c.out: testfile.txt micro-bunzip.gcc.k1c
+ bzip2 <testfile.txt | k1-cluster --cycle-based --syscall=libstd_scalls.so -- micro-bunzip.gcc.k1c > testfile.txt.2gcc 2> testfile.gcc.k1c.out
+
+testfile.txt.2host testfile.gcc.host.out: testfile.txt micro-bunzip.gcc.host
+ bzip2 <testfile.txt | ./micro-bunzip.gcc.host > testfile.txt.2host 2> testfile.gcc.host.out
+
+testfile.ccomp.host.out: testfile.txt micro-bunzip.ccomp.host
+ bzip2 <testfile.txt | ./micro-bunzip.ccomp.host > /dev/null 2> testfile.ccomp.host.out
+
+clean:
+ rm -f *.k1c *.out test*txt*
+
+.PHONY: clean