comparison Renderer/Engine/Makefile.cell @ 539:3bc98f6d31ff draft

Reorganization..
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Mon, 12 Oct 2009 09:39:35 +0900
parents
children c5e09e9bbfa5
comparison
equal deleted inserted replaced
538:5641d121818e 539:3bc98f6d31ff
1 include ./Makefile.def
2
3 SRCS_TMP = $(wildcard *.cc) $(wildcard Application/*.cc)
4 SRCS_EXCLUDE = # ½ü³°
5 SRCS = $(filter-out $(SRCS_EXCLUDE),$(SRCS_TMP))
6 OBJS = $(SRCS:.cc=.o)
7
8 TASK_DIR = task
9 TASK_SRCS_TMP = $(wildcard $(TASK_DIR)/*.cc)
10 TASK_SRCS_EXCLUDE = span_pack_draw.cc
11 TASK_SRCS = $(filter-out $(TASK_SRCS_EXCLUDE),$(TASK_SRCS_TMP))
12 TASK_OBJS = $(TASK_SRCS:.cc=.o)
13
14 LIBS += -lCellManager -lspe2 -lpthread
15
16 CFLAGS += `sdl-config --cflags` `xml2-config --cflags`
17 LIBS += `sdl-config --libs` -lSDL_image -lGL `xml2-config --libs`
18
19 .SUFFIXES: .cc .o
20
21 .cc.o:
22 $(CC) $(CFLAGS) $(INCLUDE) -c $< -o $@
23
24 default: all
25
26 all: $(TARGET) speobject
27
28 $(TARGET): $(OBJS) $(TASK_OBJS)
29 $(CC) -o $@ $(OBJS) $(TASK_OBJS) $(LIBS)
30
31 SGList.o: create_sg_list
32 $(CC) $(CFLAGS) $(INCLUDE) -c SGList.cc -o $@
33
34 create_sg_list:
35 @if [ ! -f SGList.h ]; then \
36 cd tools/;\
37 ./create_sglist.pl ../xml_file/*.xml;\
38 fi
39
40 speobject:
41 cd spe; $(MAKE)
42
43 run: $(TARGET)
44 sudo ./$(TARGET) -width 576 -height 384 -bpp 32
45 run-hd: $(TARGET)
46 sudo /usr/sbin/ps3-video-mode -v 133
47 sudo ./$(TARGET) -video fb -width 1920 -height 1080 -bpp 32
48
49 debug: $(TARGET)
50 sudo ppu-gdb ./$(TARGET)
51
52 depend:
53 $(RM) depend.inc
54 $(CC) -MM -MG $(INCLUDE) $(CFLAGS) $(SRCS) $(TASK_SRCS) > depend.inc
55
56 clean:
57 rm -f $(TARGET) $(OBJS) $(TASK_OBJS)
58 rm -f *~ \#*
59 rm -f SGList.h SGList.cc
60 cd task; rm -f *~ \#*
61 cd spe; $(MAKE) clean