Not sure how to put this into a Makefile
Hi , i'm not sure how to put this into a Makefile
Code:
spu-gcc-4.3 spe_example.c -o spe_example;
embedspu test_handle spe_example spe_example_csf.o;
gcc ppe_example.c spe_example_csf.o -lspe2 -o example;
Here is my attempt so far
Code:
CC=gcc
CFLAGS=-g -Wall
SPUGCC=spu-gcc-4.3
#EMBED=embedspu test_handle spe_example spe_example_csf.o
example: ppe_example.c spe_example_csf.o
$(CC) $(CFLAGS) ppe_example.c spe_example_csf.o -lspe2 -o example
embedspu test_handle spe_example spe_example_csf.o
spe_example: spe_example.c
$(SPUGCC) spe_example.c -o spe_example
clean:
rm -rf spe_example_csf.o example spe_example
With regards to it's background, It's for some test code using all the cores on the PS3
Changes in libspe: How libspe2 affects Cell Broadband Engine programming
(Ignore the differences, much to my annoyance i found that Debian has different naming conventions from what was written in the guide.)
Thanks! :D