#Makefile for distance
SPU-GCC=/opt/cross/bin/spu-gcc
EMBED-SPU=/usr/bin/embedspu
CC=gcc

all: distance

distance: ppe_distance.c spe_distance.c
	$(SPU-GCC) spe_distance.c -o spe_distance
	$(EMBED-SPU) calculate_distance_handle spe_distance spe_distance_csf.o
	$(CC) ppe_distance.c spe_distance_csf.o -lspe -o distance
