################################################################################ # # Makefile for irs library spu # all: @ echo " " @ echo "Error:" @ echo "This Makefile must be called by the driving Makefile." @ echo " " ################################################################################ SPUCC = ccache spu-gcc SPUCC_FLAGS = -c -g -O3 -DUNIX -DFUNCTION_TIMERS -Daix -DCOMMPI SPU_LINK_FLAGS = -g -O3 -m32 -Wl,-N -L/opt/cell/sdk/usr/spu/lib SPUEMBED = ppu-embedspu SPUEMBED_FLAGS = -m32 SPU_BASE_INCPATH= -I. -I /opt/cell/sdk/usr/spu/include -I../../../irs.1.0/includes -I/usr/local/include -I/opt/cell/sdk/usr/include PPU_AR = ppu-ar B = ../$(LIB_DIR)/libspu_irs.a libspu_irs: $(B) $(B): spu_irs $(SPUEMBED) $(SPUEMBED_FLAGS) $< $< $<-embed.o # $(PPU_AR) -qcs $@ $<-embed.o $$irs_ar $(B) $<-embed.o rm *.o spu_irs: spu_irs.o $(SPUCC) $(SPU_LINK_FLAGS) -o $@ $^ -lmisc spu_irs.o: spu_irs.c $(SPUCC) $(SPUCC_FLAGS) $(SPU_BASE_INCPATH) $<