


IPATH:=$(shell ruby -rrbconfig -e'puts Config::CONFIG["archdir"]')

all: aplay

aplay: aplay.rb vector2.so
	ruby rubyscript2exe.rb aplay.rb
	mv aplay_linux aplay

%.so: %.c
	gcc -fPIC -g -O2 -shared  -o $@ $< -I$(IPATH)

