aboutsummaryrefslogtreecommitdiffstats
path: root/test/monniaux/micro-bunzip/Makefile
blob: 46a4ec774ae681ebf362cefa9c4f4373cd737cdf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
all: testfile.txt testfile.txt.2ccomp testfile.txt.2gcc testfile.txt.ccomp.out testfile.txt.gcc.out
	cmp testfile.txt testfile.txt.2ccomp
	cmp testfile.txt testfile.txt.2gcc

../clock.gcc.k1c.o : ../clock.c ../cycles.h 
	k1-mbr-gcc -c -Wall -O3 $< -o $@

micro-bunzip.ccomp.k1c: micro-bunzip.c ../clock.gcc.k1c.o
	../../../ccomp -Wall -O3 $+ -U __SIZEOF_INT128__ -D __SIZE_TYPE__='unsigned long long' -o $@

# TODO: -O3 buggy??
micro-bunzip.gcc.k1c: micro-bunzip.c ../clock.gcc.k1c.o
	k1-mbr-gcc -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.txt.ccomp.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.txt.ccomp.out

testfile.txt.2gcc testfile.txt.gcc.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.txt.gcc.out