Changed test/Makefile to work with BSD make
[voodoo-lang.git] / test / Makefile
blob13ee286ef2aeeafcf4f0ac538bbd8e0ba5c4e664
1 include ../Makefile.cfg
3 NASM ?= nasm
4 VOODOOC ?= env RUBYLIB=$(PWD)/../lib/ruby:$(RUBYLIB) ../src/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/ruby:$(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