Added method output_file_suffix to code generator API.
[voodoo-lang.git] / test / Makefile
blobaee578cea20868942666df334ed98dbf4fcb110a
1 include ../Makefile.cfg
3 NASM ?= nasm
4 VOODOOC ?= env RUBYLIB=$(PWD)/../lib:$(RUBYLIB) ../bin/voodooc
6 TARGETS = bitwise call div fact goto hello if mod mul plusminus \
7 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 .voo.asm :
35 $(VOODOOC) -f nasm -o $@ $<
37 .voo.o :
38 $(VOODOOC) -o $@ $<
40 .PHONY : all clean distclean test