507
|
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)
|
523
|
29 $(AR) crus $@ $(OBJS) $(TASK_OBJS)
|
507
|
30
|
|
31 speobject:
|
|
32 cd spe; $(MAKE)
|
|
33
|
|
34 run: $(TARGET)
|
|
35 sudo ./$(TARGET) -width 576 -height 384 -bpp 32
|
|
36 run-hd: $(TARGET)
|
|
37 sudo /usr/sbin/ps3-video-mode -v 133
|
|
38 sudo ./$(TARGET) -video fb -width 1920 -height 1080 -bpp 32
|
|
39
|
|
40 debug: $(TARGET)
|
|
41 sudo ppu-gdb ./$(TARGET)
|
|
42
|
|
43 depend:
|
|
44 $(RM) depend.inc
|
|
45 $(CC) -MM -MG $(INCLUDE) $(CFLAGS) $(SRCS) $(TASK_SRCS) > depend.inc
|
|
46
|
|
47 clean:
|
|
48 rm -f $(TARGET) $(OBJS) $(TASK_OBJS)
|
|
49 rm -f *~ \#*
|
|
50 rm -f SGList.h SGList.cc
|
|
51 cd task; rm -f *~ \#*
|
|
52 cd spe; $(MAKE) clean
|