include ./Makefile.def LIBS += -lFifoManager -lCerium CFLAGS += `sdl-config --cflags` `xml2-config --cflags` LIBS += `sdl-config --libs` `xml2-config --libs` -lSDL_image -Wl,-framework,OpenGL .SUFFIXES: .cc .o .xml .xml.h .xml.cc .cc.o: $(CC) $(CFLAGS) $(INCLUDE) -c $< -o $@ all: ball_bound boss1_action direction gaplant BALL_BOUND_OBJ = ball_bound.o BALL_BOUND_XML = xml_file/Ball.xml 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) BOSS_OBJ = boss1_action.o BOSS_XMLS = xml_file/boss1.xml xml_file/player1.xml xml_file/p_shot.xml xml_file/blast.xml BOSS_XML = xml_file/boss1.xml boss1_action : $(BOSS_OBJ) xml_file/boss1.xml.o $(CC) -o $@ $< xml_file/boss1.xml.o $(LIBS) boss1_action.cc : $(BOSS_XML).h xml_file/boss1.xml.h : $(BOSS_XMLS) perl $(TOOL)/create_sglist.pl -o $@ $(BOSS_XMLS) DIRECTION_OBJ = direction.o DIRECTION_XML = xml_file/direction.xml DIRECTION_XMLS = $(DIRECTION_XML) direction : $(DIRECTION_OBJ) xml_file/direction.xml.o $(CC) -o $@ $< xml_file/direction.xml.o $(LIBS) direction.cc : xml_file/direction.xml.h xml_file/direction.xml.h : $(DIRECTION_XMLS) perl $(TOOL)/create_sglist.pl -o $@ $(DIRECTION_XMLS) GAPLAN_OBJ = gaplant.o gaplant_action.o back_action.o GAPLAN_XML = xml_file/gap_plane_test.xml GAPLAN_XMLS = $(GAPLAN_XML) xml_file/Ball.xml gaplant : $(GAPLAN_OBJ) xml_file/gap_plane_test.xml.o $(CC) -o $@ $? $(LIBS) gaplant.cc : xml_file/gap_plane_test.xml.h xml_file/gap_plane_test.xml.h : $(GAPLAN_XMLS) perl $(TOOL)/create_sglist.pl -o $@ $(GAPLAN_XMLS) run: $(TARGET) sudo ./$(TARGET) -width 576 -height 384 -bpp 32 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