annotate TaskManager/Test/test_render/Makefile.macosx @ 362:a64a6c34868f

vacuum -sg 15
author e065746@localhost.localdomain
date Fri, 17 Jul 2009 23:02:07 +0900
parents f64d75473f95
children a18ded47c5dd
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` `xml2-config --libs` -lSDL_image -Wl,-framework,OpenGL
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
321
f64d75473f95 merge 317
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 318
diff changeset
24 all: SGList.o $(TARGET)
109
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
25
321
f64d75473f95 merge 317
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 318
diff changeset
26 $(TARGET): $(OBJS) $(TASK_OBJS)
f64d75473f95 merge 317
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 318
diff changeset
27 $(CC) -o $@ $(OBJS) $(TASK_OBJS) $(LIBS)
235
7578005fb76b fix Makefile
gongo@localhost.localdomain
parents: 221
diff changeset
28
7578005fb76b fix Makefile
gongo@localhost.localdomain
parents: 221
diff changeset
29
7578005fb76b fix Makefile
gongo@localhost.localdomain
parents: 221
diff changeset
30 SGList.o: create_sg_list
7578005fb76b fix Makefile
gongo@localhost.localdomain
parents: 221
diff changeset
31 $(CC) $(CFLAGS) $(INCLUDE) -c SGList.cpp -o $@
7578005fb76b fix Makefile
gongo@localhost.localdomain
parents: 221
diff changeset
32
7578005fb76b fix Makefile
gongo@localhost.localdomain
parents: 221
diff changeset
33 create_sg_list:
7578005fb76b fix Makefile
gongo@localhost.localdomain
parents: 221
diff changeset
34 @if [ ! -f SGList.h ]; then \
7578005fb76b fix Makefile
gongo@localhost.localdomain
parents: 221
diff changeset
35 cd tools/;\
7578005fb76b fix Makefile
gongo@localhost.localdomain
parents: 221
diff changeset
36 ./create_sglist.pl ../xml_file/*.xml;\
7578005fb76b fix Makefile
gongo@localhost.localdomain
parents: 221
diff changeset
37 fi
7578005fb76b fix Makefile
gongo@localhost.localdomain
parents: 221
diff changeset
38
109
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
39
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
40 run: $(TARGET)
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
41 sudo ./$(TARGET) -width 576 -height 384 -bpp 32
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
42
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
43 debug: $(TARGET)
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
44 sudo ppu-gdb ./$(TARGET)
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
45
221
d61fded0729e Cameraã®è¨­å®šã€Makefile 修正
gongo@gendarme.local
parents: 118
diff changeset
46 depend:
d61fded0729e Cameraã®è¨­å®šã€Makefile 修正
gongo@gendarme.local
parents: 118
diff changeset
47 $(RM) depend.inc
d61fded0729e Cameraã®è¨­å®šã€Makefile 修正
gongo@gendarme.local
parents: 118
diff changeset
48 $(CC) -MM -MG $(INCLUDE) $(CFLAGS) $(SRCS) $(TASK_SRCS) > depend.inc
d61fded0729e Cameraã®è¨­å®šã€Makefile 修正
gongo@gendarme.local
parents: 118
diff changeset
49
109
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
50 clean:
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
51 rm -f $(TARGET) $(OBJS) $(TASK_OBJS)
221
d61fded0729e Cameraã®è¨­å®šã€Makefile 修正
gongo@gendarme.local
parents: 118
diff changeset
52 rm -f *~ \#*
235
7578005fb76b fix Makefile
gongo@localhost.localdomain
parents: 221
diff changeset
53 rm -f SGList.h SGList.cpp
221
d61fded0729e Cameraã®è¨­å®šã€Makefile 修正
gongo@gendarme.local
parents: 118
diff changeset
54
321
f64d75473f95 merge 317
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 318
diff changeset
55 -include depend.inc