Mercurial > hg > Game > Cerium
annotate Renderer/Test/Makefile.cell @ 1276:e92f00ed2fc0 draft
apply view matrix to normal vector
author | Yutaka_Kinjyo <yutaka@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 22 Nov 2011 19:26:18 +0900 |
parents | 20e3c81b6f9f |
children | 3778a1eda68d |
rev | line source |
---|---|
555 | 1 include ./Makefile.def |
1085 | 2 ABIBIT=32 |
555 | 3 |
556 | 4 LIBS += -lCerium -lCellManager -lspe2 -lpthread |
555 | 5 |
6 CFLAGS += `sdl-config --cflags` `xml2-config --cflags` | |
1223
20e3c81b6f9f
add freetype path in Cell Makefile
root@luis.cr.ie.u-ryukyu.ac.jp
parents:
1207
diff
changeset
|
7 LIBS += `sdl-config --libs` -lSDL_image -lGL `xml2-config --libs` -L/usr/local/lib -lfreetype |
556 | 8 |
555 | 9 |
904 | 10 .SUFFIXES: .proto .pb.o .pb.cc .cc .o .xml .xml.h .xml.cc |
555 | 11 |
12 .cc.o: | |
13 $(CC) $(CFLAGS) $(INCLUDE) -c $< -o $@ | |
14 | |
904 | 15 %.pb.cc: $(PROTODIR)/%.proto |
16 $(PROTO) $(PROTOFLAGS) $< | |
17 | |
1276
e92f00ed2fc0
apply view matrix to normal vector
Yutaka_Kinjyo <yutaka@cr.ie.u-ryukyu.ac.jp>
parents:
1223
diff
changeset
|
18 ALL = spe-main ball_bound boss1_action direction gaplant ieshoot node panel universe untitled vacuum dynamic viewer SgRootChange property_test create_task property_universe chain_old property_chain aquarium network init_aquarium viewer_2 light_test |
779 | 19 |
579 | 20 all: $(ALL) |
555 | 21 |
556 | 22 speobject: |
23 cd spe; $(MAKE) | |
24 | |
25 run: $(TARGET) | |
26 sudo ./$(TARGET) -width 576 -height 384 -bpp 32 | |
27 run-hd: $(TARGET) | |
889
5f5301028e29
minor fix. Redering Engine not worked yet.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
858
diff
changeset
|
28 sudo /usr/sbin/ps3-video-mode -v 133 |
556 | 29 sudo ./$(TARGET) -video fb -width 1920 -height 1080 -bpp 32 |
30 | |
555 | 31 |
556 | 32 spe-main: |
33 ln -s ../Engine/spe-main . | |
34 | |
564 | 35 |
36 BALL_BOUND_OBJ = ball_bound.o | |
37 ball_bound : $(BALL_BOUND_OBJ) | |
38 $(CC) -o $@ $? $(LIBS) | |
39 | |
40 BOSS_OBJ = boss1_action.o | |
41 boss1_action : $(BOSS_OBJ) | |
42 $(CC) -o $@ $? $(LIBS) | |
43 | |
44 DIRECTION_OBJ = direction.o | |
45 direction : $(DIRECTION_OBJ) | |
46 $(CC) -o $@ $? $(LIBS) | |
47 | |
48 GAPLAN_OBJ = gaplant.o gaplant_action.o back_action.o ball_action.o | |
49 gaplant : $(GAPLAN_OBJ) | |
50 $(CC) -o $@ $? $(LIBS) | |
555 | 51 |
564 | 52 IESHOOT_OBJ = ieshoot.o |
53 ieshoot : $(IESHOOT_OBJ) | |
54 $(CC) -o $@ $? $(LIBS) | |
55 | |
56 NODE_OBJ = node.o | |
57 node : $(NODE_OBJ) | |
58 $(CC) -o $@ $? $(LIBS) | |
59 | |
60 PANEL_OBJ = panel.o | |
61 panel : $(PANEL_OBJ) | |
62 $(CC) -o $@ $? $(LIBS) | |
555 | 63 |
564 | 64 UNIV_OBJ = universe.o |
65 universe : $(UNIV_OBJ) | |
66 $(CC) -o $@ $? $(LIBS) | |
555 | 67 |
564 | 68 UNTITLED_OBJ = untitled.o |
69 untitled : $(UNTITLED_OBJ) | |
70 $(CC) -o $@ $? $(LIBS) | |
71 | |
72 VACUUM_OBJ = vacuum.o cube.o game_over.o title.o | |
73 vacuum : $(VACUUM_OBJ) | |
74 $(CC) -o $@ $? $(LIBS) | |
555 | 75 |
578 | 76 DYNAMIC_OBJ = dynamic_create.o |
77 dynamic : $(DYNAMIC_OBJ) | |
78 $(CC) -o $@ $? $(LIBS) | |
79 | |
589 | 80 VIEWER_OBJ = viewer.o |
81 viewer : $(VIEWER_OBJ) | |
82 $(CC) -o $@ $? $(LIBS) | |
83 | |
653
7a311860a76e
remove global variable "sgroot" , add SgChange.{cc, h} SgMain.cc SgRootChange.{cc, h}
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
589
diff
changeset
|
84 SG_CHANGE_OBJ = SgRootChange.o |
7a311860a76e
remove global variable "sgroot" , add SgChange.{cc, h} SgMain.cc SgRootChange.{cc, h}
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
589
diff
changeset
|
85 SgRootChange : $(SG_CHANGE_OBJ) |
755
8aaa29d3e874
add Test/create_task {spe, task}/Property
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
747
diff
changeset
|
86 $(CC) -o $@ $? $(LIBS) |
8aaa29d3e874
add Test/create_task {spe, task}/Property
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
747
diff
changeset
|
87 |
8aaa29d3e874
add Test/create_task {spe, task}/Property
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
747
diff
changeset
|
88 PROPERTY_TEST_OBJ = property_test.o |
8aaa29d3e874
add Test/create_task {spe, task}/Property
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
747
diff
changeset
|
89 property_test : $(PROPERTY_TEST_OBJ) |
8aaa29d3e874
add Test/create_task {spe, task}/Property
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
747
diff
changeset
|
90 $(CC) -o $@ $? $(LIBS) |
8aaa29d3e874
add Test/create_task {spe, task}/Property
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
747
diff
changeset
|
91 |
8aaa29d3e874
add Test/create_task {spe, task}/Property
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
747
diff
changeset
|
92 CREATE_TASK_OBJ = create_task.o |
8aaa29d3e874
add Test/create_task {spe, task}/Property
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
747
diff
changeset
|
93 create_task : $(CREATE_TASK_OBJ) |
8aaa29d3e874
add Test/create_task {spe, task}/Property
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
747
diff
changeset
|
94 $(CC) -o $@ $? $(LIBS) |
768
06302c1dc87d
add add spe/chain_move Test/property_chain, not workd
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
755
diff
changeset
|
95 |
06302c1dc87d
add add spe/chain_move Test/property_chain, not workd
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
755
diff
changeset
|
96 P_UNIVERSE_OBJ = property_universe.o |
06302c1dc87d
add add spe/chain_move Test/property_chain, not workd
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
755
diff
changeset
|
97 property_universe : $(P_UNIVERSE_OBJ) |
06302c1dc87d
add add spe/chain_move Test/property_chain, not workd
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
755
diff
changeset
|
98 $(CC) -o $@ $? $(LIBS) |
06302c1dc87d
add add spe/chain_move Test/property_chain, not workd
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
755
diff
changeset
|
99 |
06302c1dc87d
add add spe/chain_move Test/property_chain, not workd
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
755
diff
changeset
|
100 CHAIN_OLD = chain_old.o |
06302c1dc87d
add add spe/chain_move Test/property_chain, not workd
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
755
diff
changeset
|
101 chain_old : $(CHAIN_OLD) |
06302c1dc87d
add add spe/chain_move Test/property_chain, not workd
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
755
diff
changeset
|
102 $(CC) -o $@ $? $(LIBS) |
771
0ad733bd134a
Test/property_chain is work
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
768
diff
changeset
|
103 |
0ad733bd134a
Test/property_chain is work
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
768
diff
changeset
|
104 P_CHAIN_OBJ = property_chain.o |
0ad733bd134a
Test/property_chain is work
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
768
diff
changeset
|
105 property_chain : $(P_CHAIN_OBJ) |
0ad733bd134a
Test/property_chain is work
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
768
diff
changeset
|
106 $(CC) -o $@ $? $(LIBS) |
858
9f6e29836095
Renderer/Test/aquarium init
kazz <kazz@cr.ie.u-ryukyu.ac.jp>
parents:
779
diff
changeset
|
107 |
904 | 108 AQUARIUM_OBJ = aquarium.pb.o aquarium.o |
858
9f6e29836095
Renderer/Test/aquarium init
kazz <kazz@cr.ie.u-ryukyu.ac.jp>
parents:
779
diff
changeset
|
109 aquarium : $(AQUARIUM_OBJ) |
904 | 110 $(CC) -o $@ $? $(LIBS) $(PROTOLIBS) |
858
9f6e29836095
Renderer/Test/aquarium init
kazz <kazz@cr.ie.u-ryukyu.ac.jp>
parents:
779
diff
changeset
|
111 |
976 | 112 NETWORK_OBJ = network_game.pb.o network.o |
113 network : $(NETWORK_OBJ) | |
114 $(CC) -o $@ $? $(LIBS) $(PROTOLIBS) | |
115 | |
904 | 116 INIT_AQUARIUM_OBJ = aquarium.pb.o init_aquarium.o |
117 init_aquarium : $(INIT_AQUARIUM_OBJ) | |
118 $(CC) -o $@ $? $(LIBS) $(PROTOLIBS) | |
119 | |
1207 | 120 VIEWER_OBJ2 = viewer_2.o |
121 viewer_2 : $(VIEWER_OBJ2) | |
122 $(CC) $(CFLAGS) -o $@ $? $(LIBS) | |
123 | |
1276
e92f00ed2fc0
apply view matrix to normal vector
Yutaka_Kinjyo <yutaka@cr.ie.u-ryukyu.ac.jp>
parents:
1223
diff
changeset
|
124 LIGHT_TEST = light_test.o |
e92f00ed2fc0
apply view matrix to normal vector
Yutaka_Kinjyo <yutaka@cr.ie.u-ryukyu.ac.jp>
parents:
1223
diff
changeset
|
125 light_test : $(LIGHT_TEST) |
e92f00ed2fc0
apply view matrix to normal vector
Yutaka_Kinjyo <yutaka@cr.ie.u-ryukyu.ac.jp>
parents:
1223
diff
changeset
|
126 $(CC) $(CFLAGS) -o $@ $? $(LIBS) |
e92f00ed2fc0
apply view matrix to normal vector
Yutaka_Kinjyo <yutaka@cr.ie.u-ryukyu.ac.jp>
parents:
1223
diff
changeset
|
127 |
e92f00ed2fc0
apply view matrix to normal vector
Yutaka_Kinjyo <yutaka@cr.ie.u-ryukyu.ac.jp>
parents:
1223
diff
changeset
|
128 |
1207 | 129 |
555 | 130 debug: $(TARGET) |
131 sudo ppu-gdb ./$(TARGET) | |
132 | |
133 depend: | |
134 $(RM) depend.inc | |
135 $(CC) -MM -MG $(INCLUDE) $(CFLAGS) $(SRCS) $(TASK_SRCS) > depend.inc | |
136 | |
137 clean: | |
138 rm -f $(TARGET) $(OBJS) $(TASK_OBJS) *.o | |
579 | 139 rm -f *~ \#* $(ALL) |
555 | 140 rm -f $(BALL_BOUND_XML).cc $(BALL_BOUND_XML).h $(BALL_BOUND_OBJ) |
141 | |
142 -include depend.inc | |
564 | 143 |
144 |