annotate Makefile.ps3 @ 17:927401604461

add spe object
author koba <koba@cr.ie.u-ryukyu.ac.jp>
date Fri, 17 Dec 2010 04:16:25 +0900
parents 5e10d43156bd
children c330ded6d728
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
435ac1cdb64e create task dandy directry.
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1 # Makefile to build the SDL tests
435ac1cdb64e create task dandy directry.
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
2 include ./Makefile.def
435ac1cdb64e create task dandy directry.
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
3
435ac1cdb64e create task dandy directry.
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
4 ABI = -m32
435ac1cdb64e create task dandy directry.
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
5
435ac1cdb64e create task dandy directry.
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
6 CFLAGS += -g $(ABI) -O2 -Wall `/usr/bin/sdl-config --cflags` `xml2-config --cflags` $(INCLUDE)
435ac1cdb64e create task dandy directry.
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
7 LIBS += `/usr/bin/sdl-config --libs` -lGL -lGLU -lSDL_mixer -lSDL_image `xml2-config --libs`
16
5e10d43156bd Makefile fix.
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
8 LIBS += -lCerium -lCellManager -lspe2 -lpthread
0
435ac1cdb64e create task dandy directry.
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
9
17
927401604461 add spe object
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents: 16
diff changeset
10 TASK_DIR = ppe
927401604461 add spe object
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents: 16
diff changeset
11 TASK_SRCS_TMP = $(wildcard $(TASK_DIR)/*.cc)
927401604461 add spe object
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents: 16
diff changeset
12 TASK_SRCS_EXCLUDE =
927401604461 add spe object
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents: 16
diff changeset
13 TASK_SRCS = $(filter-out $(TASK_SRCS_EXCLUDE),$(TASK_SRCS_TMP))
927401604461 add spe object
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents: 16
diff changeset
14 TASK_OBJS = $(TASK_SRCS:.cc=.o)
0
435ac1cdb64e create task dandy directry.
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
15
17
927401604461 add spe object
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents: 16
diff changeset
16 TARGET = dandy t_dandy spe-main
927401604461 add spe object
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents: 16
diff changeset
17 OBJS = Character.o Bom.o tokuten.o collision.o count2.o Character_state.o schedule3.o tama2.o syokika.o Ss.o sound.o profile.o debug.o trace.o LoadSprite.o xml.o b64_de.o tree_controll.o object.o sys.o
0
435ac1cdb64e create task dandy directry.
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
18
435ac1cdb64e create task dandy directry.
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
19 all: $(TARGET)
435ac1cdb64e create task dandy directry.
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
20
16
5e10d43156bd Makefile fix.
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
21 speobject:
5e10d43156bd Makefile fix.
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
22 cd spe; $(MAKE)
5e10d43156bd Makefile fix.
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
23
17
927401604461 add spe object
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents: 16
diff changeset
24 link:
16
5e10d43156bd Makefile fix.
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
25 ln -s $(CERIUM)/Renderer/Engine/spe-main .
5e10d43156bd Makefile fix.
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
26
5e10d43156bd Makefile fix.
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
27 run: $(TARGET)
5e10d43156bd Makefile fix.
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
28 sudo ./$(TARGET) -width 576 -height 384 -bpp 32
5e10d43156bd Makefile fix.
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
29 run-hd: $(TARGET)
5e10d43156bd Makefile fix.
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
30 sudo /usr/sbin/ps3-video-mode -v 133
5e10d43156bd Makefile fix.
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
31 sudo ./$(TARGET) -video fb -width 1920 -height 1080 -bpp 32
5e10d43156bd Makefile fix.
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
32
0
435ac1cdb64e create task dandy directry.
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
33 test: $(TARGET)
435ac1cdb64e create task dandy directry.
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
34 ./demo -test
435ac1cdb64e create task dandy directry.
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
35
17
927401604461 add spe object
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents: 16
diff changeset
36 demo: $(OBJS) sgoex.o main.o collision.o
927401604461 add spe object
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents: 16
diff changeset
37 $(CC) $(ABI) -o $@ main.o sgoex.o collision.o $(OBJS) $(LIBS)
0
435ac1cdb64e create task dandy directry.
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
38
17
927401604461 add spe object
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents: 16
diff changeset
39 dandy: $(OBJS) Dandy.o collision.o
927401604461 add spe object
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents: 16
diff changeset
40 $(CC) $(ABI) -o $@ $(OBJS) Dandy.o collision.o $(LIBS)
927401604461 add spe object
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents: 16
diff changeset
41
927401604461 add spe object
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents: 16
diff changeset
42 t_dandy: $(OBJS) $(TASK_OBJS) TaskDandy.o collision_task.o
927401604461 add spe object
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents: 16
diff changeset
43 $(CC) $(ABI) -o $@ $(OBJS) $(TASK_OBJS) TaskDandy.o collision_task.o $(LIBS)
0
435ac1cdb64e create task dandy directry.
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
44
435ac1cdb64e create task dandy directry.
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
45 clean:
17
927401604461 add spe object
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents: 16
diff changeset
46 rm -f $(TARGET) $(OBJS) sgoex.o main.o Dandy.o $(TASK_DIR)/*.o
927401604461 add spe object
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents: 16
diff changeset
47 cd spe;$(MAKE) clean
0
435ac1cdb64e create task dandy directry.
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
48
435ac1cdb64e create task dandy directry.
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
49 .c.o:
435ac1cdb64e create task dandy directry.
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
50 $(CC) $(CFLAGS) $(INCLUDES) -c $<
435ac1cdb64e create task dandy directry.
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
51
435ac1cdb64e create task dandy directry.
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
52 .cc.o:
435ac1cdb64e create task dandy directry.
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
53 $(CC) $(CFLAGS) $(INCLUDES) -c $<
435ac1cdb64e create task dandy directry.
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
54
435ac1cdb64e create task dandy directry.
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
55 debug.o:debug.h