1 include ..
/Makefile.cfg
4 VOODOOC ?
= env RUBYLIB
=$(PWD
)/..
/lib
:$(RUBYLIB
) ..
/bin
/voodooc
6 TARGETS
= auto-bytes auto-words at block bitwise bytes call div else-if fact \
7 func goto hello if libfunc.so libvar.so many-args many-args-tail \
8 many-locals mod mul plusminus raw restore-frame restore-locals \
9 rotate save-frame-and-locals set-at set-byte set-word shift \
10 substitute-number tail-calls var vtable gcd
15 -for target in
$(TARGETS
); do
rm "$$target.asm" "$$target.o"; done
20 func
: func.o libfunc.so
21 $(CC
) func.o
-o func
-L.
-lfunc
24 env RUBYLIB
=$(PWD
)/..
/lib
:$(RUBYLIB
) RUBY
=$(RUBY
) .
/test
27 env RUBYLIB
=$(PWD
)/..
/lib
:$(RUBYLIB
) $(RUBY
) gcd.rb
30 $(CC
) var.o
-o var
-L.
-lvar
32 .SUFFIXES
: .asm .o .s .so .voo
41 $(CC
) -shared
$< -o
$@
47 $(VOODOOC
) -f nasm
-o
$@
$<
53 $(VOODOOC
) -f gas
-o
$@
$<
55 .PHONY
: all clean distclean test