CELLDIR = /opt/IBM/cell-sdk-1.1 CC = ppu32-g++ AR = ppu-ar INSTALL = install SRCS := $(wildcard *.c) OBJS = ${SRCS:.c=.o} DEPS := ${wildcard *.d} INCLUDE = -I. -I ${CELLDIR}/sysroot/usr/include -I../../include -include altivec.h -I/home/gshi/celltask/include CFLAGS = -MD -g VERIFYLIB = libverify.a .c.o: ${CC} ${CFLAGS} ${INCLUDE} -c -o $@ $< ${LIBS} all: ${VERIFYLIB} spubuild spubuild: cd spu; make install: cd spu; make install ${INSTALL} -c -m 644 verify.h /home/gshi/celltask/include ${INSTALL} -c -m 644 ${VERIFYLIB} /home/gshi/celltask/lib ${VERIFYLIB}: ${OBJS} ${AR} rcs ${VERIFYLIB} ${OBJS} clean: cd spu; make clean rm -f *.o *.d ${VERIFYLIB} deepclean: clean rm -f *~ ifneq "${DEPS}" "" include ${DEPS} endif