Mercurial > hg > Game > Cerium
annotate Renderer/Engine/Makefile.cell @ 984:dbebc7afd08e draft
minor fix
author | root@henri.cr.ie.u-ryukyu.ac.jp |
---|---|
date | Fri, 01 Oct 2010 01:25:45 +0900 |
parents | fdb36a9c5030 |
children | a0ea7d9b6faf |
rev | line source |
---|---|
539 | 1 include ./Makefile.def |
2 | |
981
fdb36a9c5030
add double buffering frame device
root@henri.cr.ie.u-ryukyu.ac.jp
parents:
632
diff
changeset
|
3 SRCS_TMP = $(wildcard *.cc) $(wildcard Application/*.cc) $(wildcard ps3fb/*.cc) |
539 | 4 SRCS_EXCLUDE = # ½ü³° |
5 SRCS = $(filter-out $(SRCS_EXCLUDE),$(SRCS_TMP)) | |
6 OBJS = $(SRCS:.cc=.o) | |
7 | |
8 TASK_DIR = task | |
9 TASK_SRCS_TMP = $(wildcard $(TASK_DIR)/*.cc) | |
10 TASK_SRCS_EXCLUDE = span_pack_draw.cc | |
11 TASK_SRCS = $(filter-out $(TASK_SRCS_EXCLUDE),$(TASK_SRCS_TMP)) | |
12 TASK_OBJS = $(TASK_SRCS:.cc=.o) | |
13 | |
14 LIBS += -lCellManager -lspe2 -lpthread | |
15 | |
984 | 16 CFLAGS += -D__CERIUM_CELL__ -Drestrict=__restrict__ `sdl-config --cflags` `xml2-config --cflags` |
539 | 17 LIBS += `sdl-config --libs` -lSDL_image -lGL `xml2-config --libs` |
18 | |
19 .SUFFIXES: .cc .o | |
20 | |
21 .cc.o: | |
22 $(CC) $(CFLAGS) $(INCLUDE) -c $< -o $@ | |
23 | |
24 default: all | |
25 | |
26 all: $(TARGET) speobject | |
27 | |
28 $(TARGET): $(OBJS) $(TASK_OBJS) | |
555 | 29 $(AR) crus $@ $(OBJS) $(TASK_OBJS) |
539 | 30 |
31 speobject: | |
32 cd spe; $(MAKE) | |
33 | |
34 run: $(TARGET) | |
35 sudo ./$(TARGET) -width 576 -height 384 -bpp 32 | |
36 run-hd: $(TARGET) | |
37 sudo /usr/sbin/ps3-video-mode -v 133 | |
38 sudo ./$(TARGET) -video fb -width 1920 -height 1080 -bpp 32 | |
39 | |
40 debug: $(TARGET) | |
41 sudo ppu-gdb ./$(TARGET) | |
42 | |
43 depend: | |
44 $(RM) depend.inc | |
45 $(CC) -MM -MG $(INCLUDE) $(CFLAGS) $(SRCS) $(TASK_SRCS) > depend.inc | |
46 | |
47 clean: | |
48 rm -f $(TARGET) $(OBJS) $(TASK_OBJS) | |
49 rm -f *~ \#* | |
50 rm -f SGList.h SGList.cc | |
51 cd task; rm -f *~ \#* | |
52 cd spe; $(MAKE) clean |