1 include ..
/Makefile.cfg
4 VOODOOC ?
= env RUBYLIB
=$(PWD
)/..
/lib
:$(RUBYLIB
) ..
/bin
/voodooc
6 TARGETS
= add auto-bytes auto-words at block bitwise bytes call div \
7 else-if fact func goto group hello if labels libfunc.so \
8 libgroup.so libvar.so many-args many-args-tail many-locals mod \
9 mul plusminus raw restore-frame restore-locals rotate \
10 save-frame-and-locals set-at set-byte set-word shift \
11 sub substitute-number tail-calls var vtable gcd
16 -for target in
$(TARGETS
); do
rm "$$target.asm" "$$target.o" "$$target.s"; done
21 func
: func.o libfunc.so
22 $(CC
) func.o
-o func
-L.
-lfunc
24 group
: group.o libgroup.so
25 $(CC
) group.o
-o group
-L.
-lgroup
28 env RUBYLIB
=$(PWD
)/..
/lib
:$(RUBYLIB
) RUBY
=$(RUBY
) .
/test
31 env RUBYLIB
=$(PWD
)/..
/lib
:$(RUBYLIB
) $(RUBY
) gcd.rb
34 $(CC
) var.o
-o var
-L.
-lvar
36 .SUFFIXES
: .asm .o .s .so .voo
45 $(CC
) -shared
$< -o
$@
51 $(VOODOOC
) -f nasm
-o
$@
$<
57 $(VOODOOC
) -f gas
-o
$@
$<
59 .PHONY
: all clean distclean test