blob: bfcc377a0ad696c36884ccb19c57f01c9ad6e8ac (
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
include ../rules.mk
all: testfile.txt testfile.txt.2ccomp testfile.txt.2gcc testfile.ccomp.kvx.out testfile.gcc.kvx.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.kvx: micro-bunzip.c ../clock.gcc.kvx.o
$(KVX_CCOMP) $(KVX_CCOMPFLAGS) $+ -o $@
micro-bunzip.gcc.host: micro-bunzip.c ../clock.gcc.host.o
$(CC) $(CFLAGS) $+ -o $@
# micro-bunzip.gcc.kvx: micro-bunzip.c ../clock.gcc.kvx.o
# $(KVX_CC) $(KVX_CFLAGS) $+ -o $@
# TODO: -O3 buggy??
micro-bunzip.gcc.kvx: micro-bunzip.c ../clock.gcc.kvx.o
$(KVX_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.kvx.out: testfile.txt micro-bunzip.ccomp.kvx
bzip2 <testfile.txt | k1-cluster --cycle-based --syscall=libstd_scalls.so -- micro-bunzip.ccomp.kvx > testfile.txt.2ccomp 2> testfile.ccomp.kvx.out
testfile.txt.2gcc testfile.gcc.kvx.out: testfile.txt micro-bunzip.gcc.kvx
bzip2 <testfile.txt | k1-cluster --cycle-based --syscall=libstd_scalls.so -- micro-bunzip.gcc.kvx > testfile.txt.2gcc 2> testfile.gcc.kvx.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 *.kvx *.out test*txt*
.PHONY: clean
|