Mercurial > hg > Game > Cerium
annotate Renderer/Engine/Makefile.cell @ 1767:1a68c05eeadf draft
minor fix
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Sat, 23 Nov 2013 01:28:59 +0900 |
parents | 94ac6d8e73aa |
children |
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 | |
1412
f40558ec00a8
remove duplicated spe task code source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
1223
diff
changeset
|
15 CELL_SPE_DIR = spe |
f40558ec00a8
remove duplicated spe task code source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
1223
diff
changeset
|
16 |
f40558ec00a8
remove duplicated spe task code source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
1223
diff
changeset
|
17 CELL_SPE_SCHEDULE_SRC = \ |
f40558ec00a8
remove duplicated spe task code source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
1223
diff
changeset
|
18 $(CELL_SPE_DIR)/AllocateSegment.cc \ |
f40558ec00a8
remove duplicated spe task code source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
1223
diff
changeset
|
19 $(CELL_SPE_DIR)/AllocateSegment.h \ |
f40558ec00a8
remove duplicated spe task code source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
1223
diff
changeset
|
20 $(CELL_SPE_DIR)/CreatePolygon.cc \ |
f40558ec00a8
remove duplicated spe task code source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
1223
diff
changeset
|
21 $(CELL_SPE_DIR)/CreatePolygon.h \ |
f40558ec00a8
remove duplicated spe task code source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
1223
diff
changeset
|
22 $(CELL_SPE_DIR)/CreatePolygonFromSceneGraph.cc \ |
f40558ec00a8
remove duplicated spe task code source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
1223
diff
changeset
|
23 $(CELL_SPE_DIR)/CreatePolygonFromSceneGraph.h \ |
f40558ec00a8
remove duplicated spe task code source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
1223
diff
changeset
|
24 $(CELL_SPE_DIR)/CreateSpan.cc \ |
f40558ec00a8
remove duplicated spe task code source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
1223
diff
changeset
|
25 $(CELL_SPE_DIR)/CreateSpan.h \ |
f40558ec00a8
remove duplicated spe task code source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
1223
diff
changeset
|
26 $(CELL_SPE_DIR)/DataAllocate.cc \ |
f40558ec00a8
remove duplicated spe task code source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
1223
diff
changeset
|
27 $(CELL_SPE_DIR)/DataAllocate.h \ |
f40558ec00a8
remove duplicated spe task code source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
1223
diff
changeset
|
28 $(CELL_SPE_DIR)/DataFree.cc \ |
f40558ec00a8
remove duplicated spe task code source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
1223
diff
changeset
|
29 $(CELL_SPE_DIR)/DataFree.h \ |
f40558ec00a8
remove duplicated spe task code source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
1223
diff
changeset
|
30 $(CELL_SPE_DIR)/DataUpdate.cc \ |
f40558ec00a8
remove duplicated spe task code source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
1223
diff
changeset
|
31 $(CELL_SPE_DIR)/DataUpdate.h \ |
f40558ec00a8
remove duplicated spe task code source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
1223
diff
changeset
|
32 $(CELL_SPE_DIR)/DrawSpan.cc \ |
f40558ec00a8
remove duplicated spe task code source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
1223
diff
changeset
|
33 $(CELL_SPE_DIR)/DrawSpan.h \ |
f40558ec00a8
remove duplicated spe task code source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
1223
diff
changeset
|
34 $(CELL_SPE_DIR)/InitKey.cc \ |
f40558ec00a8
remove duplicated spe task code source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
1223
diff
changeset
|
35 $(CELL_SPE_DIR)/InitKey.h \ |
f40558ec00a8
remove duplicated spe task code source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
1223
diff
changeset
|
36 $(CELL_SPE_DIR)/UpdateKey.cc \ |
f40558ec00a8
remove duplicated spe task code source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
1223
diff
changeset
|
37 $(CELL_SPE_DIR)/UpdateKey.h \ |
f40558ec00a8
remove duplicated spe task code source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
1223
diff
changeset
|
38 $(CELL_SPE_DIR)/task_texture.h |
f40558ec00a8
remove duplicated spe task code source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
1223
diff
changeset
|
39 CELL_SPE_SCHEDULE_OBJ = $(CELL_SPE_SCHEDULE_SRC:.cc=.o) |
f40558ec00a8
remove duplicated spe task code source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
1223
diff
changeset
|
40 |
f40558ec00a8
remove duplicated spe task code source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
1223
diff
changeset
|
41 $(CELL_SPE_SCHEDULE_SRC): task/*.cc task/*.h |
1414
94ac6d8e73aa
fix free inifite loop
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
1412
diff
changeset
|
42 cp task/*.cc task/*.h $(CELL_SPE_DIR)/ |
1412
f40558ec00a8
remove duplicated spe task code source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
1223
diff
changeset
|
43 |
539 | 44 LIBS += -lCellManager -lspe2 -lpthread |
45 | |
1223
20e3c81b6f9f
add freetype path in Cell Makefile
root@luis.cr.ie.u-ryukyu.ac.jp
parents:
1160
diff
changeset
|
46 CFLAGS += -I/usr/local/include -I/usr/local/include/freetype2 -D__CERIUM_CELL__ -DHAS_POSIX_MEMALIGN -Drestrict=__restrict__ `sdl-config --cflags` `xml2-config --cflags` |
539 | 47 LIBS += `sdl-config --libs` -lSDL_image -lGL `xml2-config --libs` |
48 | |
49 .SUFFIXES: .cc .o | |
50 | |
51 .cc.o: | |
52 $(CC) $(CFLAGS) $(INCLUDE) -c $< -o $@ | |
53 | |
54 default: all | |
55 | |
56 all: $(TARGET) speobject | |
57 | |
58 $(TARGET): $(OBJS) $(TASK_OBJS) | |
555 | 59 $(AR) crus $@ $(OBJS) $(TASK_OBJS) |
539 | 60 |
1412
f40558ec00a8
remove duplicated spe task code source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
1223
diff
changeset
|
61 speobject: $(CELL_SPE_SCHEDULE_SRC) |
539 | 62 cd spe; $(MAKE) |
63 | |
64 run: $(TARGET) | |
65 sudo ./$(TARGET) -width 576 -height 384 -bpp 32 | |
66 run-hd: $(TARGET) | |
67 sudo /usr/sbin/ps3-video-mode -v 133 | |
68 sudo ./$(TARGET) -video fb -width 1920 -height 1080 -bpp 32 | |
69 | |
70 debug: $(TARGET) | |
71 sudo ppu-gdb ./$(TARGET) | |
72 | |
73 depend: | |
74 $(RM) depend.inc | |
75 $(CC) -MM -MG $(INCLUDE) $(CFLAGS) $(SRCS) $(TASK_SRCS) > depend.inc | |
76 | |
77 clean: | |
78 rm -f $(TARGET) $(OBJS) $(TASK_OBJS) | |
79 rm -f *~ \#* | |
80 rm -f SGList.h SGList.cc | |
81 cd task; rm -f *~ \#* | |
82 cd spe; $(MAKE) clean |