Updated Makefiles to fit new directory structure.
[voodoo-lang.git] / test / Makefile
blobb50a0f00687697e6c2d45c2e4207c05630c05abe
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
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 ./test
20 99bottles.o : 99bottles.rb
21 env RUBYLIB=$(PWD)/../lib:$(RUBYLIB) $(RUBY) 99bottles.rb
23 .SUFFIXES : .asm .o .voo
25 .asm.o :
26 $(NASM) -f elf $<
28 .o :
29 $(CC) $< -o $@
31 .voo.asm :
32 $(VOODOOC) -f nasm -o $@ $<
34 .voo.o :
35 $(VOODOOC) -o $@ $<
37 .PHONY : all clean distclean test