Mercurial > hg > Game > Cerium
annotate Renderer/Engine/Makefile.cell @ 1161:cc1a50cac83d draft
use MemorySegment API for pp load. do not check execution of the cell side. to be continued..
author | Yutaka_Kinjyo |
---|---|
date | Thu, 05 May 2011 00:15:43 +0900 |
parents | 5664473b4dba |
children | 20e3c81b6f9f |
rev | line source |
---|---|
539 | 1 include ./Makefile.def |
1085 | 2 ABIBIT=32 |
539 | 3 |
981
fdb36a9c5030
add double buffering frame device
root@henri.cr.ie.u-ryukyu.ac.jp
parents:
632
diff
changeset
|
4 SRCS_TMP = $(wildcard *.cc) $(wildcard Application/*.cc) $(wildcard ps3fb/*.cc) |
1160 | 5 SRCS_EXCLUDE = # 除外 |
539 | 6 SRCS = $(filter-out $(SRCS_EXCLUDE),$(SRCS_TMP)) |
7 OBJS = $(SRCS:.cc=.o) | |
8 | |
9 TASK_DIR = task | |
10 TASK_SRCS_TMP = $(wildcard $(TASK_DIR)/*.cc) | |
1160 | 11 TASK_SRCS_EXCLUDE = span_pack_draw.cc Bridge.cc |
539 | 12 TASK_SRCS = $(filter-out $(TASK_SRCS_EXCLUDE),$(TASK_SRCS_TMP)) |
13 TASK_OBJS = $(TASK_SRCS:.cc=.o) | |
14 | |
15 LIBS += -lCellManager -lspe2 -lpthread | |
16 | |
1133 | 17 CFLAGS += -D__CERIUM_CELL__ -DHAS_POSIX_MEMALIGN -Drestrict=__restrict__ `sdl-config --cflags` `xml2-config --cflags` |
539 | 18 LIBS += `sdl-config --libs` -lSDL_image -lGL `xml2-config --libs` |
19 | |
20 .SUFFIXES: .cc .o | |
21 | |
22 .cc.o: | |
23 $(CC) $(CFLAGS) $(INCLUDE) -c $< -o $@ | |
24 | |
25 default: all | |
26 | |
27 all: $(TARGET) speobject | |
28 | |
29 $(TARGET): $(OBJS) $(TASK_OBJS) | |
555 | 30 $(AR) crus $@ $(OBJS) $(TASK_OBJS) |
539 | 31 |
32 speobject: | |
33 cd spe; $(MAKE) | |
34 | |
35 run: $(TARGET) | |
36 sudo ./$(TARGET) -width 576 -height 384 -bpp 32 | |
37 run-hd: $(TARGET) | |
38 sudo /usr/sbin/ps3-video-mode -v 133 | |
39 sudo ./$(TARGET) -video fb -width 1920 -height 1080 -bpp 32 | |
40 | |
41 debug: $(TARGET) | |
42 sudo ppu-gdb ./$(TARGET) | |
43 | |
44 depend: | |
45 $(RM) depend.inc | |
46 $(CC) -MM -MG $(INCLUDE) $(CFLAGS) $(SRCS) $(TASK_SRCS) > depend.inc | |
47 | |
48 clean: | |
49 rm -f $(TARGET) $(OBJS) $(TASK_OBJS) | |
50 rm -f *~ \#* | |
51 rm -f SGList.h SGList.cc | |
52 cd task; rm -f *~ \#* | |
53 cd spe; $(MAKE) clean |