Mercurial > hg > Members > kono > Cerium
annotate Renderer/Test/Makefile.macosx @ 560:1a2f015c42b2
gaplant... how to solve scenegraph id conflict?
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Thu, 22 Oct 2009 19:23:13 +0900 |
parents | ccb33e5bcf89 |
children | 71b3363c16bf |
rev | line source |
---|---|
510 | 1 include ./Makefile.def |
2 | |
558 | 3 LIBS += -lFifoManager -lCerium |
510 | 4 |
5 CFLAGS += `sdl-config --cflags` `xml2-config --cflags` | |
6 LIBS += `sdl-config --libs` `xml2-config --libs` -lSDL_image -Wl,-framework,OpenGL | |
7 | |
559 | 8 .SUFFIXES: .cc .o .xml .xml.h .xml.cc |
510 | 9 |
10 .cc.o: | |
11 $(CC) $(CFLAGS) $(INCLUDE) -c $< -o $@ | |
12 | |
560
1a2f015c42b2
gaplant... how to solve scenegraph id conflict?
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
559
diff
changeset
|
13 all: ball_bound boss1_action direction gaplant |
510 | 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) | |
510 | 23 |
558 | 24 BOSS_OBJ = boss1_action.o |
559 | 25 BOSS_XMLS = xml_file/boss1.xml xml_file/player1.xml xml_file/p_shot.xml xml_file/blast.xml |
26 BOSS_XML = xml_file/boss1.xml | |
27 boss1_action : $(BOSS_OBJ) xml_file/boss1.xml.o | |
28 $(CC) -o $@ $< xml_file/boss1.xml.o $(LIBS) | |
29 boss1_action.cc : $(BOSS_XML).h | |
30 xml_file/boss1.xml.h : $(BOSS_XMLS) | |
31 perl $(TOOL)/create_sglist.pl -o $@ $(BOSS_XMLS) | |
32 | |
33 DIRECTION_OBJ = direction.o | |
34 DIRECTION_XML = xml_file/direction.xml | |
35 DIRECTION_XMLS = $(DIRECTION_XML) | |
36 direction : $(DIRECTION_OBJ) xml_file/direction.xml.o | |
37 $(CC) -o $@ $< xml_file/direction.xml.o $(LIBS) | |
38 direction.cc : xml_file/direction.xml.h | |
39 xml_file/direction.xml.h : $(DIRECTION_XMLS) | |
40 perl $(TOOL)/create_sglist.pl -o $@ $(DIRECTION_XMLS) | |
41 | |
560
1a2f015c42b2
gaplant... how to solve scenegraph id conflict?
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
559
diff
changeset
|
42 GAPLAN_OBJ = gaplant.o gaplant_action.o back_action.o |
1a2f015c42b2
gaplant... how to solve scenegraph id conflict?
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
559
diff
changeset
|
43 GAPLAN_XML = xml_file/gap_plane_test.xml |
1a2f015c42b2
gaplant... how to solve scenegraph id conflict?
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
559
diff
changeset
|
44 GAPLAN_XMLS = $(GAPLAN_XML) xml_file/Ball.xml |
1a2f015c42b2
gaplant... how to solve scenegraph id conflict?
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
559
diff
changeset
|
45 gaplant : $(GAPLAN_OBJ) xml_file/gap_plane_test.xml.o |
1a2f015c42b2
gaplant... how to solve scenegraph id conflict?
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
559
diff
changeset
|
46 $(CC) -o $@ $? $(LIBS) |
1a2f015c42b2
gaplant... how to solve scenegraph id conflict?
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
559
diff
changeset
|
47 gaplant.cc : xml_file/gap_plane_test.xml.h |
1a2f015c42b2
gaplant... how to solve scenegraph id conflict?
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
559
diff
changeset
|
48 xml_file/gap_plane_test.xml.h : $(GAPLAN_XMLS) |
1a2f015c42b2
gaplant... how to solve scenegraph id conflict?
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
559
diff
changeset
|
49 perl $(TOOL)/create_sglist.pl -o $@ $(GAPLAN_XMLS) |
1a2f015c42b2
gaplant... how to solve scenegraph id conflict?
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
559
diff
changeset
|
50 |
510 | 51 |
52 run: $(TARGET) | |
53 sudo ./$(TARGET) -width 576 -height 384 -bpp 32 | |
54 | |
55 debug: $(TARGET) | |
56 sudo ppu-gdb ./$(TARGET) | |
57 | |
58 depend: | |
59 $(RM) depend.inc | |
60 $(CC) -MM -MG $(INCLUDE) $(CFLAGS) $(SRCS) $(TASK_SRCS) > depend.inc | |
61 | |
62 clean: | |
558 | 63 rm -f $(TARGET) $(OBJS) $(TASK_OBJS) *.o |
510 | 64 rm -f *~ \#* |
558 | 65 rm -f $(BALL_BOUND_XML).cc $(BALL_BOUND_XML).h $(BALL_BOUND_OBJ) |
510 | 66 |
67 -include depend.inc |