Added support for at-expressions to i386 and AMD64 targets.
[voodoo-lang.git] / test / Makefile
blobde2d64e98e17f936b7352610817db1f804b4432e
1 include ../Makefile.cfg
3 NASM ?= nasm
4 VOODOOC ?= env RUBYLIB=$(PWD)/../lib:$(RUBYLIB) ../bin/voodooc
6 TARGETS = at bitwise call div fact goto hello if many-vars mod mul \
7 plusminus set-byte set-word tail-calls vtable 99bottles gcd
9 all : $(TARGETS)
11 clean :
12 -for target in $(TARGETS); do rm "$$target.asm" "$$target.o"; done
14 distclean : clean
15 -rm $(TARGETS)
17 test : $(TARGETS)
18 env RUBYLIB=$(PWD)/../lib:$(RUBYLIB) RUBY=$(RUBY) ./test
20 99bottles.o : 99bottles.rb
21 env RUBYLIB=$(PWD)/../lib:$(RUBYLIB) $(RUBY) 99bottles.rb
23 gcd.o : gcd.rb
24 env RUBYLIB=$(PWD)/../lib:$(RUBYLIB) $(RUBY) gcd.rb
26 .SUFFIXES : .asm .o .voo
28 .asm.o :
29 $(NASM) -f elf $<
31 .o :
32 $(CC) $< -o $@
34 .s.o :
35 $(GAS) $< -o $@
37 .voo.asm :
38 $(VOODOOC) -f nasm -o $@ $<
40 .voo.o :
41 $(VOODOOC) -o $@ $<
43 .voo.s :
44 $(VOODOOC) -f gas -o $@ $<
46 .PHONY : all clean distclean test