523
|
1 include ./Makefile.def
|
|
2
|
524
|
3 LIBS += -lCerium -lCellManager -lspe2 -lpthread
|
523
|
4
|
|
5 CFLAGS += `sdl-config --cflags` `xml2-config --cflags`
|
524
|
6 LIBS += `sdl-config --libs` -lSDL_image -lGL `xml2-config --libs`
|
|
7
|
523
|
8
|
|
9 .SUFFIXES: .cc .o .xml
|
|
10
|
|
11 .cc.o:
|
|
12 $(CC) $(CFLAGS) $(INCLUDE) -c $< -o $@
|
|
13
|
579
|
14 ALL = ball_bound boss1_action direction gaplant ieshoot node panel universe untitled vacuum dynamic
|
|
15 all: $(ALL)
|
523
|
16
|
524
|
17 speobject:
|
|
18 cd spe; $(MAKE)
|
|
19
|
|
20 run: $(TARGET)
|
|
21 sudo ./$(TARGET) -width 576 -height 384 -bpp 32
|
|
22 run-hd: $(TARGET)
|
|
23 sudo /usr/sbin/ps3-video-mode -v 133
|
|
24 sudo ./$(TARGET) -video fb -width 1920 -height 1080 -bpp 32
|
|
25
|
523
|
26
|
524
|
27 spe-main:
|
|
28 ln -s ../Engine/spe-main .
|
|
29
|
564
|
30
|
|
31 BALL_BOUND_OBJ = ball_bound.o
|
|
32 ball_bound : $(BALL_BOUND_OBJ)
|
|
33 $(CC) -o $@ $? $(LIBS)
|
|
34
|
|
35 BOSS_OBJ = boss1_action.o
|
|
36 boss1_action : $(BOSS_OBJ)
|
|
37 $(CC) -o $@ $? $(LIBS)
|
|
38
|
|
39 DIRECTION_OBJ = direction.o
|
|
40 direction : $(DIRECTION_OBJ)
|
|
41 $(CC) -o $@ $? $(LIBS)
|
|
42
|
|
43 GAPLAN_OBJ = gaplant.o gaplant_action.o back_action.o ball_action.o
|
|
44 gaplant : $(GAPLAN_OBJ)
|
|
45 $(CC) -o $@ $? $(LIBS)
|
523
|
46
|
564
|
47 IESHOOT_OBJ = ieshoot.o
|
|
48 ieshoot : $(IESHOOT_OBJ)
|
|
49 $(CC) -o $@ $? $(LIBS)
|
|
50
|
|
51 NODE_OBJ = node.o
|
|
52 node : $(NODE_OBJ)
|
|
53 $(CC) -o $@ $? $(LIBS)
|
|
54
|
|
55 PANEL_OBJ = panel.o
|
|
56 panel : $(PANEL_OBJ)
|
|
57 $(CC) -o $@ $? $(LIBS)
|
523
|
58
|
564
|
59 UNIV_OBJ = universe.o
|
|
60 universe : $(UNIV_OBJ)
|
|
61 $(CC) -o $@ $? $(LIBS)
|
523
|
62
|
564
|
63 UNTITLED_OBJ = untitled.o
|
|
64 untitled : $(UNTITLED_OBJ)
|
|
65 $(CC) -o $@ $? $(LIBS)
|
|
66
|
|
67 VACUUM_OBJ = vacuum.o cube.o game_over.o title.o
|
|
68 vacuum : $(VACUUM_OBJ)
|
|
69 $(CC) -o $@ $? $(LIBS)
|
523
|
70
|
578
|
71 DYNAMIC_OBJ = dynamic_create.o
|
|
72 dynamic : $(DYNAMIC_OBJ)
|
|
73 $(CC) -o $@ $? $(LIBS)
|
|
74
|
523
|
75 debug: $(TARGET)
|
|
76 sudo ppu-gdb ./$(TARGET)
|
|
77
|
|
78 depend:
|
|
79 $(RM) depend.inc
|
|
80 $(CC) -MM -MG $(INCLUDE) $(CFLAGS) $(SRCS) $(TASK_SRCS) > depend.inc
|
|
81
|
|
82 clean:
|
|
83 rm -f $(TARGET) $(OBJS) $(TASK_OBJS) *.o
|
579
|
84 rm -f *~ \#* $(ALL)
|
523
|
85 rm -f $(BALL_BOUND_XML).cc $(BALL_BOUND_XML).h $(BALL_BOUND_OBJ)
|
|
86
|
|
87 -include depend.inc
|
564
|
88
|
|
89
|