annotate TaskManager/Test/test_render/Makefile.macosx @ 546:04dc46d3f083

Makefile.macosx fixed
author kazz@kazz187.st.ie.u-ryukyu.ac.jp
date Thu, 22 Oct 2009 09:00:23 +0900
parents 519a1bba9b05
children
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
405
d47c5d865970 make Application sub directory
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 404
diff changeset
3 SRCS_TMP = $(wildcard *.cc) $(wildcard Application/*.cc)
109
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))
404
a18ded47c5dd rename cpp to cc
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 321
diff changeset
6 OBJS = $(SRCS:.cc=.o)
109
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
404
a18ded47c5dd rename cpp to cc
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 321
diff changeset
9 TASK_SRCS_TMP = $(wildcard $(TASK_DIR)/*.cc)
a18ded47c5dd rename cpp to cc
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 321
diff changeset
10 TASK_SRCS_EXCLUDE = span_pack_draw.cc
109
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
11 TASK_SRCS = $(filter-out $(TASK_SRCS_EXCLUDE),$(TASK_SRCS_TMP))
404
a18ded47c5dd rename cpp to cc
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 321
diff changeset
12 TASK_OBJS = $(TASK_SRCS:.cc=.o)
109
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
543
9f9d51b60062 complex lindaapi
aaa
parents: 405
diff changeset
15 LIBS += -llindaapi
109
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
16
118
e2b1c795525e fix Makefile
gongo@charles.cr.ie.u-ryukyu.ac.jp
parents: 109
diff changeset
17 CFLAGS += `sdl-config --cflags` `xml2-config --cflags`
e2b1c795525e fix Makefile
gongo@charles.cr.ie.u-ryukyu.ac.jp
parents: 109
diff changeset
18 LIBS += `sdl-config --libs` `xml2-config --libs` -lSDL_image -Wl,-framework,OpenGL
109
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
19
404
a18ded47c5dd rename cpp to cc
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 321
diff changeset
20 .SUFFIXES: .cc .o
109
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
21
404
a18ded47c5dd rename cpp to cc
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 321
diff changeset
22 .cc.o:
118
e2b1c795525e fix Makefile
gongo@charles.cr.ie.u-ryukyu.ac.jp
parents: 109
diff changeset
23 $(CC) $(CFLAGS) $(INCLUDE) -c $< -o $@
109
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
24
546
04dc46d3f083 Makefile.macosx fixed
kazz@kazz187.st.ie.u-ryukyu.ac.jp
parents: 544
diff changeset
25 all: $(TARGET)
109
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
26
321
f64d75473f95 merge 317
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 318
diff changeset
27 $(TARGET): $(OBJS) $(TASK_OBJS)
f64d75473f95 merge 317
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 318
diff changeset
28 $(CC) -o $@ $(OBJS) $(TASK_OBJS) $(LIBS)
235
7578005fb76b fix Makefile
gongo@localhost.localdomain
parents: 221
diff changeset
29
7578005fb76b fix Makefile
gongo@localhost.localdomain
parents: 221
diff changeset
30
7578005fb76b fix Makefile
gongo@localhost.localdomain
parents: 221
diff changeset
31 SGList.o: create_sg_list
404
a18ded47c5dd rename cpp to cc
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 321
diff changeset
32 $(CC) $(CFLAGS) $(INCLUDE) -c SGList.cc -o $@
235
7578005fb76b fix Makefile
gongo@localhost.localdomain
parents: 221
diff changeset
33
7578005fb76b fix Makefile
gongo@localhost.localdomain
parents: 221
diff changeset
34 create_sg_list:
7578005fb76b fix Makefile
gongo@localhost.localdomain
parents: 221
diff changeset
35 @if [ ! -f SGList.h ]; then \
7578005fb76b fix Makefile
gongo@localhost.localdomain
parents: 221
diff changeset
36 cd tools/;\
7578005fb76b fix Makefile
gongo@localhost.localdomain
parents: 221
diff changeset
37 ./create_sglist.pl ../xml_file/*.xml;\
7578005fb76b fix Makefile
gongo@localhost.localdomain
parents: 221
diff changeset
38 fi
7578005fb76b fix Makefile
gongo@localhost.localdomain
parents: 221
diff changeset
39
109
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
40
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
41 run: $(TARGET)
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
42 sudo ./$(TARGET) -width 576 -height 384 -bpp 32
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
43
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
44 debug: $(TARGET)
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
45 sudo ppu-gdb ./$(TARGET)
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
46
221
d61fded0729e Cameraã®è¨­å®šã€Makefile 修正
gongo@gendarme.local
parents: 118
diff changeset
47 depend:
d61fded0729e Cameraã®è¨­å®šã€Makefile 修正
gongo@gendarme.local
parents: 118
diff changeset
48 $(RM) depend.inc
d61fded0729e Cameraã®è¨­å®šã€Makefile 修正
gongo@gendarme.local
parents: 118
diff changeset
49 $(CC) -MM -MG $(INCLUDE) $(CFLAGS) $(SRCS) $(TASK_SRCS) > depend.inc
d61fded0729e Cameraã®è¨­å®šã€Makefile 修正
gongo@gendarme.local
parents: 118
diff changeset
50
109
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
51 clean:
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
52 rm -f $(TARGET) $(OBJS) $(TASK_OBJS)
221
d61fded0729e Cameraã®è¨­å®šã€Makefile 修正
gongo@gendarme.local
parents: 118
diff changeset
53 rm -f *~ \#*
404
a18ded47c5dd rename cpp to cc
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 321
diff changeset
54 rm -f SGList.h SGList.cc
221
d61fded0729e Cameraã®è¨­å®šã€Makefile 修正
gongo@gendarme.local
parents: 118
diff changeset
55
321
f64d75473f95 merge 317
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 318
diff changeset
56 -include depend.inc