annotate TaskManager/Test/test_render/Makefile.ps3 @ 131:805d27efafd8

fix
author gongo@charles.cr.ie.u-ryukyu.ac.jp
date Tue, 25 Nov 2008 17:24:18 +0900
parents e2b1c795525e
children d61fded0729e
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
109
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
1 include ./Makefile.def
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
2
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
3 SRCS_TMP = $(wildcard *.cpp)
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
4 SRCS_EXCLUDE = # ½ü³°
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
5 SRCS = $(filter-out $(SRCS_EXCLUDE),$(SRCS_TMP))
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
6 OBJS = $(SRCS:.cpp=.o)
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
7
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
8 TASK_DIR = task
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
9 TASK_SRCS_TMP = $(wildcard $(TASK_DIR)/*.cpp)
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
10 TASK_SRCS_EXCLUDE = span_pack_draw.cpp
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
11 TASK_SRCS = $(filter-out $(TASK_SRCS_EXCLUDE),$(TASK_SRCS_TMP))
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
12 TASK_OBJS = $(TASK_SRCS:.cpp=.o)
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
13
118
e2b1c795525e fix Makefile
gongo@charles.cr.ie.u-ryukyu.ac.jp
parents: 109
diff changeset
14 LIBS += -lCellManager -lspe2 -lpthread
109
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
15
118
e2b1c795525e fix Makefile
gongo@charles.cr.ie.u-ryukyu.ac.jp
parents: 109
diff changeset
16 CFLAGS += `sdl-config --cflags` `xml2-config --cflags`
e2b1c795525e fix Makefile
gongo@charles.cr.ie.u-ryukyu.ac.jp
parents: 109
diff changeset
17 LIBS += `sdl-config --libs` -lSDL_image -lGL `xml2-config --libs`
109
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
18
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
19 .SUFFIXES: .cpp .o
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
20
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
21 .cpp.o:
118
e2b1c795525e fix Makefile
gongo@charles.cr.ie.u-ryukyu.ac.jp
parents: 109
diff changeset
22 $(CC) $(CFLAGS) $(INCLUDE) -c $< -o $@
109
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
23
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
24 all: $(TARGET) speobject
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
25
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
26 $(TARGET): $(OBJS) $(TASK_OBJS)
118
e2b1c795525e fix Makefile
gongo@charles.cr.ie.u-ryukyu.ac.jp
parents: 109
diff changeset
27 $(CC) -o $@ $(OBJS) $(TASK_OBJS) $(LIBS)
109
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
28
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
29 speobject:
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
30 cd spe; $(MAKE)
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
31
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
32 run: $(TARGET)
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
33 sudo ./$(TARGET) -width 576 -height 384 -bpp 32
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
34
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
35 debug: $(TARGET)
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
36 sudo ppu-gdb ./$(TARGET)
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
37
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
38 depend:
118
e2b1c795525e fix Makefile
gongo@charles.cr.ie.u-ryukyu.ac.jp
parents: 109
diff changeset
39 makedepend -- $(CFLAGS) $(LIBS) $(INCLUDE) -- $(SRCS) $(TASK_SRCS)
109
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
40
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
41 clean:
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
42 rm -f $(TARGET) $(OBJS) $(TASK_OBJS)
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
43 rm -f *~ \#*
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
44 cd task; rm -f *~ \#*
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
45 cd spe; $(MAKE) clean
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
46