vidarh / writing-a-compiler-in-ruby

Code from my series on writing a Ruby compiler in Ruby

This URL has Read+Write access

commit  cbefdad73ef9d0d430b03c939ea921e24a4fee54
tree    c6c68bf7cfd57e8e0f1740e53ce6213644f9d3d4
parent  386f2801b1921bb6c71a743343d60674bb32d7c7
writing-a-compiler-in-ruby / Makefile
100644 22 lines (12 sloc) 0.368 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
 
 
all: testargs testarray
 
clean:
@rm -f *~ *.o *.s testarray testargs
 
testarray.s: testarray.l
ruby compiler.rb <testarray.l >testarray.s
 
testarray.o: testarray.s
 
testarray: testarray.o runtime.o
gcc -o testarray testarray.o runtime.o
 
testargs.s: testargs.rb
ruby compiler.rb <testargs.rb >testargs.s
 
testargs.o: testargs.s
 
testargs: testargs.o runtime.o