-
Notifications
You must be signed in to change notification settings - Fork 13
/
Makefile
54 lines (45 loc) · 1.49 KB
/
Makefile
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
54
GHC = ghc
CC = cc
.SUFFIXES : .lhs .lam .blc .blc8
%.blc: %.lam blc
./blc blc $< > $*.blc
%.blc8: %.blc uni
./uni deflate $< > $*.blc8
blc: AIT.lhs Lambda.lhs Main.lhs
$(GHC) -O2 -Wall --make Main.lhs -o blc
uni: uni.c
$(CC) -O3 -Wall uni.c -o uni
test: uni.pl uni.js uni.py uni.rb uni
echo ' hi' | ./uni.py
echo ' hi' | ./uni.js
echo ' hi' | ./uni.pl
echo ' hi' | ./uni.rb
./uni -b primes take256
./blc blc characteristic_sequences/primes256.lam | ./uni.py -b
./blc blc characteristic_sequences/primes256.lam | ./uni.js -b
./blc blc characteristic_sequences/primes256.lam | ./uni.pl -b
./blc blc characteristic_sequences/primes256.lam | ./uni.rb -b
./blc blc characteristic_sequences/primes256.lam | ./UniObf
cat ait/hw.bf | ./uni bf
cat bin/bf.blc8 ait/hw.bf | ./uni.py
cat bin/bf.blc8 ait/hw.bf | ./uni.js
cat bin/bf.blc8 ait/hw.bf | ./uni.pl
cat bin/bf.blc8 ait/hw.bf | ./uni.rb
echo '12' | ./uni hilbert
(cat hilbert; echo '12') | ./uni.py
(cat hilbert; echo '12') | ./uni.py
(cat hilbert; echo '12') | ./uni.js
(cat hilbert; echo '12') | ./uni.pl
(cat hilbert; echo '12') | ./uni.rb
printf '%s' '(\f\x f(f(f x)))(\f\x f(f x))' | ./uni parse | ./uni symbolic
cat bin/symbolic.blc8 bin/threetwo.blc | ./uni.py
cat bin/symbolic.blc8 bin/threetwo.blc | ./uni.js
cat bin/symbolic.blc8 bin/threetwo.blc | ./uni.pl
cat bin/symbolic.blc8 bin/threetwo.blc | ./uni.rb
bases: Bases.lhs
$(GHC) -O2 -Wall --make Bases.lhs -o bases
baserun: bases
echo 'yo'
.PHONY: clean
clean:
rm -f *.hi *.o