view Renderer/Test/Makefile.cell @ 706:e4d2b823903c simple-task-regression

no compile error on Cell. Regression Test. Cell failed some how.
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Mon, 14 Dec 2009 20:21:59 +0900
parents 9d1bcc07734b
children 4455e7b0caf3
line wrap: on
line source

include ./Makefile.def

LIBS +=  -lCerium -lCellManager  -lspe2 -lpthread

CFLAGS += `sdl-config --cflags` `xml2-config --cflags`
LIBS   += `sdl-config --libs` -lSDL_image -lGL `xml2-config --libs` 


.SUFFIXES: .cc .o .xml

.cc.o:
	$(CC) $(CFLAGS) $(INCLUDE) -c $< -o $@

ALL = spe-main ball_bound boss1_action direction gaplant ieshoot node panel universe untitled vacuum dynamic viewer SgRootChange
all: $(ALL)

speobject:
	cd spe; $(MAKE)

run: $(TARGET)
	sudo ./$(TARGET) -width 576 -height 384 -bpp 32
run-hd: $(TARGET)
	sudo ps3-video-mode -v 133
	sudo ./$(TARGET) -video fb -width 1920 -height 1080 -bpp 32


spe-main:
	ln -s ../Engine/spe-main .


BALL_BOUND_OBJ = ball_bound.o
ball_bound : $(BALL_BOUND_OBJ) 
	$(CC) -o $@ $?   $(LIBS)

BOSS_OBJ = boss1_action.o
boss1_action : $(BOSS_OBJ) 
	$(CC) -o $@ $?   $(LIBS)

DIRECTION_OBJ = direction.o
direction : $(DIRECTION_OBJ) 
	$(CC) -o $@ $?    $(LIBS)

GAPLAN_OBJ = gaplant.o gaplant_action.o back_action.o ball_action.o
gaplant : $(GAPLAN_OBJ) 
	$(CC) -o $@ $?    $(LIBS)

IESHOOT_OBJ = ieshoot.o
ieshoot : $(IESHOOT_OBJ) 
	$(CC) -o $@ $?    $(LIBS)

NODE_OBJ = node.o
node : $(NODE_OBJ) 
	$(CC) -o $@ $?    $(LIBS)

PANEL_OBJ = panel.o
panel : $(PANEL_OBJ) 
	$(CC) -o $@ $?    $(LIBS)

UNIV_OBJ = universe.o
universe : $(UNIV_OBJ) 
	$(CC) -o $@ $?    $(LIBS)

UNTITLED_OBJ = untitled.o
untitled : $(UNTITLED_OBJ) 
	$(CC) -o $@ $?    $(LIBS)

VACUUM_OBJ = vacuum.o cube.o game_over.o title.o
vacuum : $(VACUUM_OBJ) 
	$(CC) -o $@ $?    $(LIBS)

DYNAMIC_OBJ = dynamic_create.o 
dynamic : $(DYNAMIC_OBJ) 
	$(CC) -o $@ $?    $(LIBS)

VIEWER_OBJ = viewer.o 
viewer : $(VIEWER_OBJ) 
	$(CC) -o $@ $?    $(LIBS)

SG_CHANGE_OBJ = SgRootChange.o
SgRootChange : $(SG_CHANGE_OBJ) 
	   $(CC) -o $@ $?   $(LIBS)
	
debug: $(TARGET)
	sudo ppu-gdb ./$(TARGET) 

depend:
	$(RM) depend.inc
	$(CC) -MM -MG $(INCLUDE) $(CFLAGS) $(SRCS) $(TASK_SRCS) > depend.inc

clean:
	rm -f $(TARGET) $(OBJS) $(TASK_OBJS) *.o
	rm -f *~ \#* $(ALL)
	rm -f $(BALL_BOUND_XML).cc $(BALL_BOUND_XML).h $(BALL_BOUND_OBJ)

-include depend.inc