include ./Makefile.def LIBS += -lCerium -lCellManager -lspe2 -lpthread CFLAGS += `sdl-config --cflags` `xml2-config --cflags` LIBS += `sdl-config --libs` -lSDL_image -lGL `xml2-config --libs` .SUFFIXES: .cc .o .xml .cc.o: $(CC) $(CFLAGS) $(INCLUDE) -c $< -o $@ all: ball_bound spe-main cell: make -f Makefile.cell speobject: cd spe; $(MAKE) run: $(TARGET) sudo ./$(TARGET) -width 576 -height 384 -bpp 32 run-hd: $(TARGET) sudo /usr/sbin/ps3-video-mode -v 133 sudo ./$(TARGET) -video fb -width 1920 -height 1080 -bpp 32 BALL_BOUND_OBJ = ball_bound.o BALL_BOUND_XML = xml_file/Ball.xml spe-main: ln -s ../Engine/spe-main . ball_bound : $(BALL_BOUND_OBJ) $(BALL_BOUND_XML).o $(CC) -o $@ $< $(BALL_BOUND_XML).o $(LIBS) ball_bound.cc : $(BALL_BOUND_XML).h $(BALL_BOUND_XML).cc $(BALL_BOUND_XML).h : $(BALL_BOUND_XML) perl $(TOOL)/create_sglist.pl -o $@ $(BALL_BOUND_XML) debug: $(TARGET) sudo ppu-gdb ./$(TARGET) depend: $(RM) depend.inc $(CC) -MM -MG $(INCLUDE) $(CFLAGS) $(SRCS) $(TASK_SRCS) > depend.inc clean: rm -f $(TARGET) $(OBJS) $(TASK_OBJS) *.o rm -f *~ \#* rm -f $(BALL_BOUND_XML).cc $(BALL_BOUND_XML).h $(BALL_BOUND_OBJ) -include depend.inc