Added test for bitwise and arithmetic shift operations
[voodoo-lang.git] / test / Makefile
bloba50ecdab01c953ac34027e76c1d1b3fc64613584
1 include ../Makefile.cfg
3 NASM ?= nasm
4 VOODOOC ?= env RUBYLIB=$(PWD)/../lib:$(RUBYLIB) ../bin/voodooc
6 TARGETS = at block bitwise bytes call div fact goto hello if many-vars mod \
7 mul plusminus raw set-byte set-word shift tail-calls vtable \
8 99bottles gcd
10 all : $(TARGETS)
12 clean :
13 -for target in $(TARGETS); do rm "$$target.asm" "$$target.o"; done
15 distclean : clean
16 -rm $(TARGETS)
18 test : $(TARGETS)
19 env RUBYLIB=$(PWD)/../lib:$(RUBYLIB) RUBY=$(RUBY) ./test
21 99bottles.o : 99bottles.rb
22 env RUBYLIB=$(PWD)/../lib:$(RUBYLIB) $(RUBY) 99bottles.rb
24 gcd.o : gcd.rb
25 env RUBYLIB=$(PWD)/../lib:$(RUBYLIB) $(RUBY) gcd.rb
27 .SUFFIXES : .asm .o .voo
29 .asm.o :
30 $(NASM) -f elf $<
32 .o :
33 $(CC) $< -o $@
35 .s.o :
36 $(GAS) $< -o $@
38 .voo.asm :
39 $(VOODOOC) -f nasm -o $@ $<
41 .voo.o :
42 $(VOODOOC) -o $@ $<
44 .voo.s :
45 $(VOODOOC) -f gas -o $@ $<
47 .PHONY : all clean distclean test