view Renderer/Test/Makefile.cell @ 524:0f180d46db89

Cerium no error.
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Thu, 22 Oct 2009 14:05:24 +0900
parents b273767962b8
children f7ec374fc093
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: ball_bound spe-main

cell:
	make -f Makefile.cell

speobject:
	cd spe; $(MAKE)

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

BALL_BOUND_OBJ = ball_bound.o
BALL_BOUND_XML = xml_file/Ball.xml

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

ball_bound : $(BALL_BOUND_OBJ) $(BALL_BOUND_XML).o 
	$(CC) -o $@ $< $(BALL_BOUND_XML).o  $(LIBS)

ball_bound.cc : $(BALL_BOUND_XML).h 

$(BALL_BOUND_XML).cc $(BALL_BOUND_XML).h : $(BALL_BOUND_XML)
	perl $(TOOL)/create_sglist.pl -o $@ $(BALL_BOUND_XML)


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 *~ \#*
	rm -f $(BALL_BOUND_XML).cc $(BALL_BOUND_XML).h $(BALL_BOUND_OBJ)

-include depend.inc