include ./Makefile.def CELL_SPE_DIR = $(IMPL_CELL_DIR)/spe CELL_SPE_SRCS = $(wildcard $(CELL_SPE_DIR)/*.cpp) CELL_SPE_OBJS = $(CELL_SPE_SRCS:.cpp=.o) SPUCC = spu-g++ SPUCFLAGS = -fno-strict-aliasing all: default default: $(TARGET) spe PPE_ALL_OBJS = $(KERN_PPE_OBJS) $(KERN_SCHED_OBJS) $(IMPL_CELL_OBJS) $(TARGET): $(PPE_ALL_OBJS) ar crus $@ $(ALL_OBJS) $(PPE_ALL_OBJS): %.o : %.cpp $(CC) $(CFLAGS) $(SPUCFLAGS) $(INCLUDE) -c $< -o $@ spe: $(CELL_SPE_OBJS) $(CELL_SPE_OBJS): %.o %.cpp $(SPUCC) $(CFLAGS) $(INCLUDE) -c $< -o $@