annotate Renderer/test_render/Makefile.linux @ 503:516d5c91d5b4 draft double-linked-task-list

comment
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Sun, 11 Oct 2009 19:35:33 +0900
parents 15bfacccde99
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
283
15bfacccde99 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
1 include ./Makefile.def
15bfacccde99 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
2
15bfacccde99 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
3 SRCS_TMP = $(wildcard *.cpp)
15bfacccde99 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
4 SRCS_EXCLUDE = # ½ü³°
15bfacccde99 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
5 SRCS = $(filter-out $(SRCS_EXCLUDE),$(SRCS_TMP))
15bfacccde99 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
6 OBJS = $(SRCS:.cpp=.o)
15bfacccde99 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
7
15bfacccde99 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
8 TASK_DIR = task
15bfacccde99 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
9 TASK_SRCS_TMP = $(wildcard $(TASK_DIR)/*.cpp)
15bfacccde99 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
10 TASK_SRCS_EXCLUDE = span_pack_draw.cpp
15bfacccde99 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
11 TASK_SRCS = $(filter-out $(TASK_SRCS_EXCLUDE),$(TASK_SRCS_TMP))
15bfacccde99 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
12 TASK_OBJS = $(TASK_SRCS:.cpp=.o)
15bfacccde99 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
13
15bfacccde99 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
14 LIBS += -lFifoManager
15bfacccde99 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
15
15bfacccde99 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
16 CFLAGS += `sdl-config --cflags` `xml2-config --cflags`
15bfacccde99 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
17 LIBS += `sdl-config --libs` -lSDL_image -lGL `xml2-config --libs`
15bfacccde99 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
18
15bfacccde99 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
19 .SUFFIXES: .cpp .o
15bfacccde99 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
20
15bfacccde99 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
21 .cpp.o:
15bfacccde99 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
22 $(CC) $(CFLAGS) $(INCLUDE) -c $< -o $@
15bfacccde99 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
23
15bfacccde99 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
24 all: $(TARGET)
15bfacccde99 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
25
15bfacccde99 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
26 $(TARGET): SGList.o $(OBJS) $(TASK_OBJS)
15bfacccde99 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
27 $(CC) -o $@ $(OBJS) $(TASK_OBJS) SGList.o $(LIBS)
15bfacccde99 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
28
15bfacccde99 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
29 SGList.o: create_sg_list
15bfacccde99 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
30 $(CC) $(CFLAGS) $(INCLUDE) -c SGList.cpp -o $@
15bfacccde99 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
31
15bfacccde99 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
32 create_sg_list:
15bfacccde99 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
33 @if [ ! -f SGList.h ]; then \
15bfacccde99 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
34 cd tools/;\
15bfacccde99 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
35 ./create_sglist.pl ../xml_file/*.xml;\
15bfacccde99 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
36 cd ../;\
15bfacccde99 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
37 fi
15bfacccde99 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
38
15bfacccde99 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
39 run: $(TARGET)
15bfacccde99 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
40 sudo ./$(TARGET) -width 576 -height 384 -bpp 32
15bfacccde99 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
41
15bfacccde99 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
42 debug: $(TARGET)
15bfacccde99 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
43 sudo ppu-gdb ./$(TARGET)
15bfacccde99 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
44
15bfacccde99 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
45 depend:
15bfacccde99 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
46 $(RM) depend.inc
15bfacccde99 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
47 $(CC) -MM -MG $(INCLUDE) $(CFLAGS) $(SRCS) $(TASK_SRCS) > depend.inc
15bfacccde99 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
48
15bfacccde99 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
49 clean:
15bfacccde99 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
50 rm -f $(TARGET) $(OBJS) $(TASK_OBJS)
15bfacccde99 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
51 rm -f *~ \#*
15bfacccde99 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
52 rm -f SGList.h SGList.cpp