Mercurial > hg > Members > koba > t_dandy
comparison Makefile.ps3 @ 19:00c3272a801f
fix.
author | koba <koba@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Sun, 26 Dec 2010 18:57:08 +0900 |
parents | c330ded6d728 |
children | cfd42ee2ad28 |
comparison
equal
deleted
inserted
replaced
18:c330ded6d728 | 19:00c3272a801f |
---|---|
1 # Makefile to build the SDL tests | 1 # Makefile to build the SDL tests |
2 include ./Makefile.def | 2 include ./Makefile.def |
3 | 3 |
4 ABI = -m32 | 4 ABI = -m32 |
5 | 5 |
6 CFLAGS += -g $(ABI) -O2 -Wall `/usr/bin/sdl-config --cflags` `xml2-config --cflags` $(INCLUDE) | 6 CFLAGS += `/usr/bin/sdl-config --cflags` `xml2-config --cflags` |
7 LIBS += `/usr/bin/sdl-config --libs` -lGL -lGLU -lSDL_mixer -lSDL_image `xml2-config --libs` | 7 LIBS += `sdl-config --libs` -lGL -lGLU -lSDL_mixer -lSDL_image `xml2-config --libs` |
8 LIBS += -lCerium -lCellManager -lspe2 -lpthread | 8 LIBS += -lCerium -lCellManager -lspe2 |
9 | 9 |
10 TASK_DIR = spe | 10 TASK_DIR = spe |
11 TASK_SRCS_TMP = $(wildcard $(TASK_DIR)/*.cc) | 11 TASK_SRCS_TMP = $(wildcard $(TASK_DIR)/*.cc) |
12 TASK_SRCS_EXCLUDE = | 12 TASK_SRCS_EXCLUDE = |
13 TASK_SRCS = $(filter-out $(TASK_SRCS_EXCLUDE),$(TASK_SRCS_TMP)) | 13 TASK_SRCS = $(filter-out $(TASK_SRCS_EXCLUDE),$(TASK_SRCS_TMP)) |
19 all: $(TARGET) | 19 all: $(TARGET) |
20 | 20 |
21 speobject: | 21 speobject: |
22 cd spe; $(MAKE) | 22 cd spe; $(MAKE) |
23 | 23 |
24 link: | 24 spe-main: |
25 ln -s $(CERIUM)/Renderer/Engine/spe-main . | 25 ln -s $(CERIUM)/Renderer/Engine/spe-main . |
26 | 26 |
27 run: $(TARGET) | 27 run: $(TARGET) |
28 sudo ./$(TARGET) -width 576 -height 384 -bpp 32 | 28 sudo ./$(TARGET) -width 576 -height 384 -bpp 32 |
29 run-hd: $(TARGET) | 29 run-hd: |
30 sudo /usr/sbin/ps3-video-mode -v 133 | 30 sudo /usr/sbin/ps3-video-mode -v 133 |
31 sudo ./$(TARGET) -video fb -width 1920 -height 1080 -bpp 32 | 31 sudo ./t_dandy -video fb -width 1920 -height 1080 -bpp 32 |
32 | 32 |
33 test: $(TARGET) | 33 test: |
34 ./demo -test | 34 ./demo -test |
35 | 35 |
36 demo: $(OBJS) sgoex.o main.o collision.o | 36 demo: $(OBJS) sgoex.o main.o collision.o |
37 $(CC) $(ABI) -o $@ main.o sgoex.o collision.o $(OBJS) $(LIBS) | 37 $(CC) $(ABI) -o $@ $? $(LIBS) |
38 | 38 |
39 dandy: $(OBJS) Dandy.o collision.o | 39 dandy: $(OBJS) Dandy.o collision.o |
40 $(CC) $(ABI) -o $@ $(OBJS) Dandy.o collision.o $(LIBS) | 40 $(CC) $(ABI) -o $@ $? $(LIBS) |
41 | 41 |
42 t_dandy: $(OBJS) $(TASK_OBJS) TaskDandy.o collision_task.o | 42 t_dandy: $(OBJS) $(TASK_OBJS) TaskDandy.o collision_task.o |
43 $(CC) $(ABI) -o $@ $(OBJS) $(TASK_OBJS) TaskDandy.o collision_task.o $(LIBS) | 43 $(CC) $(ABI) -o $@ $? $(LIBS) |
44 | 44 |
45 clean: | 45 clean: |
46 rm -f $(TARGET) $(OBJS) sgoex.o main.o Dandy.o $(TASK_DIR)/*.o | 46 rm -f $(TARGET) $(OBJS) sgoex.o main.o Dandy.o $(TASK_DIR)/*.o |
47 cd spe;$(MAKE) clean | 47 cd spe;$(MAKE) clean |
48 | 48 |
49 .c.o: | 49 .c.o: |
50 $(CC) $(CFLAGS) $(INCLUDES) -c $< -o $@ | 50 $(CC) $(CFLAGS) $(INCLUDE) -c $< -o $@ |
51 | 51 |
52 .cc.o: | 52 .cc.o: |
53 $(CC) $(CFLAGS) $(INCLUDES) -c $< -o $@ | 53 $(CC) $(CFLAGS) $(INCLUDE) -c $< -o $@ |
54 | 54 |
55 debug.o:debug.h | 55 debug.o:debug.h |