annotate Renderer/Test/Makefile.macosx @ 558:00428ba0ba03 draft

boss1_action
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Thu, 22 Oct 2009 18:38:07 +0900
parents 109a33b72b10
children 51960ab890e0
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
542
109a33b72b10 continue...
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
1 include ./Makefile.def
109a33b72b10 continue...
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
2
558
00428ba0ba03 boss1_action
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 542
diff changeset
3 LIBS += -lFifoManager -lCerium
542
109a33b72b10 continue...
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
4
109a33b72b10 continue...
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
5 CFLAGS += `sdl-config --cflags` `xml2-config --cflags`
109a33b72b10 continue...
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
6 LIBS += `sdl-config --libs` `xml2-config --libs` -lSDL_image -Wl,-framework,OpenGL
109a33b72b10 continue...
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
7
558
00428ba0ba03 boss1_action
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 542
diff changeset
8 .SUFFIXES: .cc .o .xml .xml.h
542
109a33b72b10 continue...
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
9
109a33b72b10 continue...
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
10 .cc.o:
109a33b72b10 continue...
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
11 $(CC) $(CFLAGS) $(INCLUDE) -c $< -o $@
109a33b72b10 continue...
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
12
558
00428ba0ba03 boss1_action
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 542
diff changeset
13 all: ball_bound boss1_action
542
109a33b72b10 continue...
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
14
109a33b72b10 continue...
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
15
558
00428ba0ba03 boss1_action
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 542
diff changeset
16 BALL_BOUND_OBJ = ball_bound.o
00428ba0ba03 boss1_action
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 542
diff changeset
17 BALL_BOUND_XML = xml_file/Ball.xml
00428ba0ba03 boss1_action
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 542
diff changeset
18 ball_bound : $(BALL_BOUND_OBJ) $(BALL_BOUND_XML).o
00428ba0ba03 boss1_action
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 542
diff changeset
19 $(CC) -o $@ $< $(BALL_BOUND_XML).o $(LIBS)
00428ba0ba03 boss1_action
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 542
diff changeset
20 ball_bound.cc : $(BALL_BOUND_XML).h
00428ba0ba03 boss1_action
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 542
diff changeset
21 $(BALL_BOUND_XML).cc $(BALL_BOUND_XML).h : $(BALL_BOUND_XML)
00428ba0ba03 boss1_action
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 542
diff changeset
22 perl $(TOOL)/create_sglist.pl -o $@ $(BALL_BOUND_XML)
542
109a33b72b10 continue...
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
23
558
00428ba0ba03 boss1_action
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 542
diff changeset
24 BOSS_OBJ = boss1_action.o
00428ba0ba03 boss1_action
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 542
diff changeset
25 BOSS_XML = xml_file/boss1.xml xml_file/player1.xml xml_file/p_shot.xml xml_file/blast.xml
00428ba0ba03 boss1_action
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 542
diff changeset
26 boss1_action : $(BOSS_OBJ) xml_file/boss1.xml.o
00428ba0ba03 boss1_action
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 542
diff changeset
27 $(CC) -o $@ $< xml_file/boss1.xml.o $(LIBS)
00428ba0ba03 boss1_action
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 542
diff changeset
28 boss1_action.cc : xml_file/boss1.xml.h
00428ba0ba03 boss1_action
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 542
diff changeset
29 xml_file/boss1.xml.h xml_file/boss1.xml.cc : $(BOSS_XML)
00428ba0ba03 boss1_action
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 542
diff changeset
30 perl $(TOOL)/create_sglist.pl -o $@ $(BOSS_XML)
542
109a33b72b10 continue...
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
31
109a33b72b10 continue...
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
32 run: $(TARGET)
109a33b72b10 continue...
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
33 sudo ./$(TARGET) -width 576 -height 384 -bpp 32
109a33b72b10 continue...
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
34
109a33b72b10 continue...
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
35 debug: $(TARGET)
109a33b72b10 continue...
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
36 sudo ppu-gdb ./$(TARGET)
109a33b72b10 continue...
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
37
109a33b72b10 continue...
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
38 depend:
109a33b72b10 continue...
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
39 $(RM) depend.inc
109a33b72b10 continue...
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
40 $(CC) -MM -MG $(INCLUDE) $(CFLAGS) $(SRCS) $(TASK_SRCS) > depend.inc
109a33b72b10 continue...
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
41
109a33b72b10 continue...
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
42 clean:
558
00428ba0ba03 boss1_action
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 542
diff changeset
43 rm -f $(TARGET) $(OBJS) $(TASK_OBJS) *.o
542
109a33b72b10 continue...
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
44 rm -f *~ \#*
558
00428ba0ba03 boss1_action
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 542
diff changeset
45 rm -f $(BALL_BOUND_XML).cc $(BALL_BOUND_XML).h $(BALL_BOUND_OBJ)
542
109a33b72b10 continue...
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
46
109a33b72b10 continue...
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
47 -include depend.inc