annotate TaskManager/Test/test_render/Makefile.linux @ 221:d61fded0729e

Cameraの設定、Makefile 修正
author gongo@gendarme.local
date Tue, 10 Feb 2009 01:47:12 +0900
parents e2b1c795525e
children 7578005fb76b
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 += -lFifoManager
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)
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 run: $(TARGET)
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
30 sudo ./$(TARGET) -width 576 -height 384 -bpp 32
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
31
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
32 debug: $(TARGET)
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
33 sudo ppu-gdb ./$(TARGET)
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
34
221
d61fded0729e Cameraの設定、Makefile 修正
gongo@gendarme.local
parents: 118
diff changeset
35 depend:
d61fded0729e Cameraの設定、Makefile 修正
gongo@gendarme.local
parents: 118
diff changeset
36 $(RM) depend.inc
d61fded0729e Cameraの設定、Makefile 修正
gongo@gendarme.local
parents: 118
diff changeset
37 $(CC) -MM -MG $(INCLUDE) $(CFLAGS) $(SRCS) $(TASK_SRCS) > depend.inc
d61fded0729e Cameraの設定、Makefile 修正
gongo@gendarme.local
parents: 118
diff changeset
38
109
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
39 clean:
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
40 rm -f $(TARGET) $(OBJS) $(TASK_OBJS)
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
41 rm -f *~ \#*