New Environment class. Tests pass on AMD64
[voodoo-lang.git] / test / Makefile
blobe2ccab3c472e565f4368c681f4ab3ee7e6857715
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 \
7 if many-vars mod mul plusminus raw rotate set-at set-byte set-word \
8 shift tail-calls vtable 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 gcd.o : gcd.rb
22 env RUBYLIB=$(PWD)/../lib:$(RUBYLIB) $(RUBY) gcd.rb
24 .SUFFIXES : .asm .o .voo
26 .asm.o :
27 $(NASM) -f elf $<
29 .o :
30 $(CC) $< -o $@
32 .s.o :
33 $(GAS) $< -o $@
35 .voo.asm :
36 $(VOODOOC) -f nasm -o $@ $<
38 .voo.o :
39 $(VOODOOC) -o $@ $<
41 .voo.s :
42 $(VOODOOC) -f gas -o $@ $<
44 .PHONY : all clean distclean test