
CC	= gcc
CFLAGS	= -Wall -O3

all: hello-world hello-world-parallel

hello-world: hello-world.o spe-hello-world-embed.o
hello-world-parallel: hello-world-parallel.o spe-hello-world-embed.o

hello-world hello-world-parallel: LDFLAGS+=-lspe2

spe-hello-world-embed.o: spe-hello-world
	embedspu spe_hello_world $^ $@

spe-hello-world: CC=spu-gcc
spe-hello-world: LDFLAGS=

clean:
	rm -f hello-world hello-world-parallel
	rm -f spe-hello-world
	rm -f *.o
