542
|
1 include ./Makefile.def
|
|
2
|
558
|
3 LIBS += -lFifoManager -lCerium
|
542
|
4
|
|
5 CFLAGS += `sdl-config --cflags` `xml2-config --cflags`
|
|
6 LIBS += `sdl-config --libs` `xml2-config --libs` -lSDL_image -Wl,-framework,OpenGL
|
|
7
|
558
|
8 .SUFFIXES: .cc .o .xml .xml.h
|
542
|
9
|
|
10 .cc.o:
|
|
11 $(CC) $(CFLAGS) $(INCLUDE) -c $< -o $@
|
|
12
|
558
|
13 all: ball_bound boss1_action
|
542
|
14
|
|
15
|
558
|
16 BALL_BOUND_OBJ = ball_bound.o
|
|
17 BALL_BOUND_XML = xml_file/Ball.xml
|
|
18 ball_bound : $(BALL_BOUND_OBJ) $(BALL_BOUND_XML).o
|
|
19 $(CC) -o $@ $< $(BALL_BOUND_XML).o $(LIBS)
|
|
20 ball_bound.cc : $(BALL_BOUND_XML).h
|
|
21 $(BALL_BOUND_XML).cc $(BALL_BOUND_XML).h : $(BALL_BOUND_XML)
|
|
22 perl $(TOOL)/create_sglist.pl -o $@ $(BALL_BOUND_XML)
|
542
|
23
|
558
|
24 BOSS_OBJ = boss1_action.o
|
|
25 BOSS_XML = xml_file/boss1.xml xml_file/player1.xml xml_file/p_shot.xml xml_file/blast.xml
|
|
26 boss1_action : $(BOSS_OBJ) xml_file/boss1.xml.o
|
|
27 $(CC) -o $@ $< xml_file/boss1.xml.o $(LIBS)
|
|
28 boss1_action.cc : xml_file/boss1.xml.h
|
|
29 xml_file/boss1.xml.h xml_file/boss1.xml.cc : $(BOSS_XML)
|
|
30 perl $(TOOL)/create_sglist.pl -o $@ $(BOSS_XML)
|
542
|
31
|
|
32 run: $(TARGET)
|
|
33 sudo ./$(TARGET) -width 576 -height 384 -bpp 32
|
|
34
|
|
35 debug: $(TARGET)
|
|
36 sudo ppu-gdb ./$(TARGET)
|
|
37
|
|
38 depend:
|
|
39 $(RM) depend.inc
|
|
40 $(CC) -MM -MG $(INCLUDE) $(CFLAGS) $(SRCS) $(TASK_SRCS) > depend.inc
|
|
41
|
|
42 clean:
|
558
|
43 rm -f $(TARGET) $(OBJS) $(TASK_OBJS) *.o
|
542
|
44 rm -f *~ \#*
|
558
|
45 rm -f $(BALL_BOUND_XML).cc $(BALL_BOUND_XML).h $(BALL_BOUND_OBJ)
|
542
|
46
|
|
47 -include depend.inc
|