Added substitute-number on ARM
[voodoo-lang.git] / test / Makefile
blob6ecbe028afd0c4cf41beced38bbbd90f52ab5b5f
1 include ../Makefile.cfg
3 NASM ?= nasm
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 goto hello if many-args many-args-tail many-locals mod mul plusminus \
8 raw rotate set-at set-byte set-word shift substitute-number \
9 tail-calls vtable gcd
11 all : $(TARGETS)
13 clean :
14 -for target in $(TARGETS); do rm "$$target.asm" "$$target.o"; done
16 distclean : clean
17 -rm $(TARGETS)
19 test : $(TARGETS)
20 env RUBYLIB=$(PWD)/../lib:$(RUBYLIB) RUBY=$(RUBY) ./test
22 gcd.o : gcd.rb
23 env RUBYLIB=$(PWD)/../lib:$(RUBYLIB) $(RUBY) gcd.rb
25 .SUFFIXES : .asm .o .s .voo
27 .asm.o :
28 $(NASM) -f elf $<
30 .o :
31 $(CC) $< -o $@
33 .s.o :
34 $(GAS) $< -o $@
36 .voo.asm :
37 $(VOODOOC) -f nasm -o $@ $<
39 .voo.o :
40 $(VOODOOC) -o $@ $<
42 .voo.s :
43 $(VOODOOC) -f gas -o $@ $<
45 .PHONY : all clean distclean test