include make_options CC = ppu32-gcc SPULIB = spu/lib_spu_main.a CELLLIB = -L${CELLDIR}/sysroot/usr/lib -R${CELLDIR}/sysroot/usr/lib -lspe2 ${SPULIB} -L${HOME}/celltask/lib -lnuma CFLAGS = -c ${OPT_LEVEL} -W -Wall -Winline -m32 -mabi=altivec -maltivec INCLUDE = -I. -I ${CELLDIR}/sysroot/usr/include -I../../include -include altivec.h -I /${HOME}/celltask/include DEPS :=$(wildcard *.d) SRCS := $(wildcard *.c) OBJECTS := $(SRCS:.c=.o) .c.o: ${CC} ${CFLAGS} ${INCLUDE} $< all: spubuild main spubuild: cd spu; make all main: $(OBJECTS) $(SPULIB) $(CC) -o main ${OBJECTS} ${LIBS} ${CELLLIB} -L${CELLDIR}/sysroot/usr/lib -lpputask clean: cd spu; make clean rm -f *.o *.d main deepclean: clean cd spu; make deepclean rm -f *~ ifneq "${DEPS}" "" include ${DEPS} endif