Added test case for chained if
[voodoo-lang.git] / test / Makefile
blobd0913813369d74501624017c1986150dd04360cc
1 include ../Makefile.cfg
3 NASM ?= nasm
4 VOODOOC ?= env RUBYLIB=$(PWD)/../lib:$(RUBYLIB) ../bin/voodooc
6 TARGETS = at block bitwise bytes call div else-if fact goto hello if \
7 many-vars mod mul plusminus raw rotate set-byte set-word shift \
8 tail-calls vtable 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