Mercurial > hg > Members > kono > Cerium
annotate Renderer/Test/Makefile.macosx @ 864:8323230d766b
edit Renderer/Test/Makefile for ProtocolBuffers (please install ProtocolBuffers)
author | kazz <kazz@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 22 Jun 2010 12:08:14 +0900 |
parents | fdc24fbeaedc |
children | 58d426cece23 |
rev | line source |
---|---|
510 | 1 include ./Makefile.def |
2 | |
864
8323230d766b
edit Renderer/Test/Makefile for ProtocolBuffers (please install ProtocolBuffers)
kazz <kazz@cr.ie.u-ryukyu.ac.jp>
parents:
858
diff
changeset
|
3 PROTO = protoc |
8323230d766b
edit Renderer/Test/Makefile for ProtocolBuffers (please install ProtocolBuffers)
kazz <kazz@cr.ie.u-ryukyu.ac.jp>
parents:
858
diff
changeset
|
4 PROTODIR = ./protobuf |
8323230d766b
edit Renderer/Test/Makefile for ProtocolBuffers (please install ProtocolBuffers)
kazz <kazz@cr.ie.u-ryukyu.ac.jp>
parents:
858
diff
changeset
|
5 PROTOFLAGS = -I=$(PROTODIR) --cpp_out=./ |
8323230d766b
edit Renderer/Test/Makefile for ProtocolBuffers (please install ProtocolBuffers)
kazz <kazz@cr.ie.u-ryukyu.ac.jp>
parents:
858
diff
changeset
|
6 PROTOLIBS = -lprotobuf |
8323230d766b
edit Renderer/Test/Makefile for ProtocolBuffers (please install ProtocolBuffers)
kazz <kazz@cr.ie.u-ryukyu.ac.jp>
parents:
858
diff
changeset
|
7 |
8323230d766b
edit Renderer/Test/Makefile for ProtocolBuffers (please install ProtocolBuffers)
kazz <kazz@cr.ie.u-ryukyu.ac.jp>
parents:
858
diff
changeset
|
8 |
602
1733f3cbfa28
64bit mode try... not worked.
e075740@nw0740.st.ie.u-ryukyu.ac.jp
parents:
585
diff
changeset
|
9 LIBS += -lCerium -lFifoManager |
510 | 10 |
606
32a7260fad2f
32bit/64bit ABI (64 bit is not tested yet).
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
602
diff
changeset
|
11 CFLAGS += `sdl-config --cflags` `xml2-config --cflags` $(INCLUDE) |
32a7260fad2f
32bit/64bit ABI (64 bit is not tested yet).
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
602
diff
changeset
|
12 LIBS += `sdl-config --libs` `xml2-config --libs` -lSDL_image -Wl,-framework,OpenGL |
510 | 13 |
864
8323230d766b
edit Renderer/Test/Makefile for ProtocolBuffers (please install ProtocolBuffers)
kazz <kazz@cr.ie.u-ryukyu.ac.jp>
parents:
858
diff
changeset
|
14 .SUFFIXES: .proto .pb.o .pb.cc .cc .o .xml .xml.h .xml.cc |
510 | 15 |
16 .cc.o: | |
583 | 17 $(CC) $(CFLAGS) -c $< -o $@ |
510 | 18 |
864
8323230d766b
edit Renderer/Test/Makefile for ProtocolBuffers (please install ProtocolBuffers)
kazz <kazz@cr.ie.u-ryukyu.ac.jp>
parents:
858
diff
changeset
|
19 %.pb.cc: $(PROTODIR)/%.proto |
8323230d766b
edit Renderer/Test/Makefile for ProtocolBuffers (please install ProtocolBuffers)
kazz <kazz@cr.ie.u-ryukyu.ac.jp>
parents:
858
diff
changeset
|
20 $(PROTO) $(PROTOFLAGS) $< |
8323230d766b
edit Renderer/Test/Makefile for ProtocolBuffers (please install ProtocolBuffers)
kazz <kazz@cr.ie.u-ryukyu.ac.jp>
parents:
858
diff
changeset
|
21 |
858
fdc24fbeaedc
Renderer/Test/aquarium init
kazz <kazz@cr.ie.u-ryukyu.ac.jp>
parents:
845
diff
changeset
|
22 ALL = ball_bound boss1_action direction gaplant ieshoot node panel universe untitled vacuum property_test send_linda dynamic writer chain_old SgRootChange viewer aquarium |
779 | 23 |
748 | 24 oFLAGS=-g -O2 |
25 CFLAGt=-g -O2 | |
576 | 26 all: $(ALL) |
510 | 27 |
558 | 28 BALL_BOUND_OBJ = ball_bound.o |
562 | 29 ball_bound : $(BALL_BOUND_OBJ) |
30 $(CC) -o $@ $? $(LIBS) | |
510 | 31 |
558 | 32 BOSS_OBJ = boss1_action.o |
562 | 33 boss1_action : $(BOSS_OBJ) |
34 $(CC) -o $@ $? $(LIBS) | |
559 | 35 |
36 DIRECTION_OBJ = direction.o | |
562 | 37 direction : $(DIRECTION_OBJ) |
38 $(CC) -o $@ $? $(LIBS) | |
559 | 39 |
561
71b3363c16bf
gplant (not yet worked...)
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
560
diff
changeset
|
40 GAPLAN_OBJ = gaplant.o gaplant_action.o back_action.o ball_action.o |
562 | 41 gaplant : $(GAPLAN_OBJ) |
560
1a2f015c42b2
gaplant... how to solve scenegraph id conflict?
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
559
diff
changeset
|
42 $(CC) -o $@ $? $(LIBS) |
1a2f015c42b2
gaplant... how to solve scenegraph id conflict?
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
559
diff
changeset
|
43 |
563
b21a013051a2
all exmple on Mac OS X
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
562
diff
changeset
|
44 IESHOOT_OBJ = ieshoot.o |
b21a013051a2
all exmple on Mac OS X
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
562
diff
changeset
|
45 ieshoot : $(IESHOOT_OBJ) |
b21a013051a2
all exmple on Mac OS X
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
562
diff
changeset
|
46 $(CC) -o $@ $? $(LIBS) |
b21a013051a2
all exmple on Mac OS X
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
562
diff
changeset
|
47 |
b21a013051a2
all exmple on Mac OS X
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
562
diff
changeset
|
48 NODE_OBJ = node.o |
b21a013051a2
all exmple on Mac OS X
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
562
diff
changeset
|
49 node : $(NODE_OBJ) |
b21a013051a2
all exmple on Mac OS X
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
562
diff
changeset
|
50 $(CC) -o $@ $? $(LIBS) |
b21a013051a2
all exmple on Mac OS X
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
562
diff
changeset
|
51 |
b21a013051a2
all exmple on Mac OS X
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
562
diff
changeset
|
52 PANEL_OBJ = panel.o |
b21a013051a2
all exmple on Mac OS X
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
562
diff
changeset
|
53 panel : $(PANEL_OBJ) |
b21a013051a2
all exmple on Mac OS X
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
562
diff
changeset
|
54 $(CC) -o $@ $? $(LIBS) |
b21a013051a2
all exmple on Mac OS X
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
562
diff
changeset
|
55 |
b21a013051a2
all exmple on Mac OS X
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
562
diff
changeset
|
56 UNIV_OBJ = universe.o |
b21a013051a2
all exmple on Mac OS X
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
562
diff
changeset
|
57 universe : $(UNIV_OBJ) |
b21a013051a2
all exmple on Mac OS X
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
562
diff
changeset
|
58 $(CC) -o $@ $? $(LIBS) |
b21a013051a2
all exmple on Mac OS X
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
562
diff
changeset
|
59 |
b21a013051a2
all exmple on Mac OS X
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
562
diff
changeset
|
60 UNTITLED_OBJ = untitled.o |
b21a013051a2
all exmple on Mac OS X
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
562
diff
changeset
|
61 untitled : $(UNTITLED_OBJ) |
b21a013051a2
all exmple on Mac OS X
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
562
diff
changeset
|
62 $(CC) -o $@ $? $(LIBS) |
b21a013051a2
all exmple on Mac OS X
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
562
diff
changeset
|
63 |
b21a013051a2
all exmple on Mac OS X
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
562
diff
changeset
|
64 VACUUM_OBJ = vacuum.o cube.o game_over.o title.o |
b21a013051a2
all exmple on Mac OS X
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
562
diff
changeset
|
65 vacuum : $(VACUUM_OBJ) |
b21a013051a2
all exmple on Mac OS X
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
562
diff
changeset
|
66 $(CC) -o $@ $? $(LIBS) |
510 | 67 |
748 | 68 PROPERTY_OBJ = property_test.o |
69 property_test : $(PROPERTY_OBJ) | |
70 $(CC) -o $@ $? $(LIBS) | |
71 | |
565 | 72 DYNAMIC_OBJ = dynamic_create.o |
73 dynamic : $(DYNAMIC_OBJ) | |
74 $(CC) -o $@ $? $(LIBS) | |
75 | |
76 SENDLINDA_OBJ = send_linda.o | |
77 send_linda : $(SENDLINDA_OBJ) | |
78 $(CC) -o $@ $? $(LIBS) | |
79 | |
583 | 80 WRITER_OBJ = writer.o |
81 writer : $(WRITER_OBJ) | |
82 $(CC) -o $@ $? $(LIBS) | |
83 | |
585 | 84 CHAIN_OBJ = chain_old.o |
85 chain_old : $(CHAIN_OBJ) | |
86 $(CC) -o $@ $? $(LIBS) | |
87 | |
748 | 88 SGCHANGE_OBJ = SgRootChange.o |
89 SgRootChange : $(SGCHANGE_OBJ) | |
90 $(CC) -o $@ $? $(LIBS) | |
91 | |
845 | 92 VIEWER_OBJ = viewer.o |
93 viewer : $(VIEWER_OBJ) | |
94 $(CC) -o $@ $? $(LIBS) | |
95 | |
864
8323230d766b
edit Renderer/Test/Makefile for ProtocolBuffers (please install ProtocolBuffers)
kazz <kazz@cr.ie.u-ryukyu.ac.jp>
parents:
858
diff
changeset
|
96 AQUARIUM_OBJ = aquarium.pb.o aquarium.o |
8323230d766b
edit Renderer/Test/Makefile for ProtocolBuffers (please install ProtocolBuffers)
kazz <kazz@cr.ie.u-ryukyu.ac.jp>
parents:
858
diff
changeset
|
97 aquarium : $(AQUARIUM_OBJ) |
8323230d766b
edit Renderer/Test/Makefile for ProtocolBuffers (please install ProtocolBuffers)
kazz <kazz@cr.ie.u-ryukyu.ac.jp>
parents:
858
diff
changeset
|
98 $(CC) -o $@ $? $(LIBS) $(PROTOLIBS) |
858
fdc24fbeaedc
Renderer/Test/aquarium init
kazz <kazz@cr.ie.u-ryukyu.ac.jp>
parents:
845
diff
changeset
|
99 |
748 | 100 |
510 | 101 run: $(TARGET) |
102 sudo ./$(TARGET) -width 576 -height 384 -bpp 32 | |
103 | |
104 debug: $(TARGET) | |
105 sudo ppu-gdb ./$(TARGET) | |
106 | |
107 depend: | |
108 $(RM) depend.inc | |
109 $(CC) -MM -MG $(INCLUDE) $(CFLAGS) $(SRCS) $(TASK_SRCS) > depend.inc | |
110 | |
111 clean: | |
558 | 112 rm -f $(TARGET) $(OBJS) $(TASK_OBJS) *.o |
576 | 113 rm -f *~ \#* $(ALL) |
558 | 114 rm -f $(BALL_BOUND_XML).cc $(BALL_BOUND_XML).h $(BALL_BOUND_OBJ) |
864
8323230d766b
edit Renderer/Test/Makefile for ProtocolBuffers (please install ProtocolBuffers)
kazz <kazz@cr.ie.u-ryukyu.ac.jp>
parents:
858
diff
changeset
|
115 rm -f *.pb.{cc,h} |
8323230d766b
edit Renderer/Test/Makefile for ProtocolBuffers (please install ProtocolBuffers)
kazz <kazz@cr.ie.u-ryukyu.ac.jp>
parents:
858
diff
changeset
|
116 |
510 | 117 -include depend.inc |