Mercurial > hg > Game > Cerium
view TaskManager/Test/test_render/Makefile.cell @ 397:ce86b0186a4a draft
delete manager (in kernel/ppe/TaskManager.h)
don't move.
author | game@henri.cr.ie.u-ryukyu.ac.jp |
---|---|
date | Sun, 20 Sep 2009 18:55:26 +0900 |
parents | f22280772f20 |
children | 0d2dc1869cbe |
line wrap: on
line source
include ./Makefile.def SRCS_TMP = $(wildcard *.cpp) SRCS_EXCLUDE = # ½ü³° SRCS = $(filter-out $(SRCS_EXCLUDE),$(SRCS_TMP)) OBJS = $(SRCS:.cpp=.o) TASK_DIR = task TASK_SRCS_TMP = $(wildcard $(TASK_DIR)/*.cpp) TASK_SRCS_EXCLUDE = span_pack_draw.cpp TASK_SRCS = $(filter-out $(TASK_SRCS_EXCLUDE),$(TASK_SRCS_TMP)) TASK_OBJS = $(TASK_SRCS:.cpp=.o) LIBS += -lCellManager -lspe2 -lpthread CFLAGS += `sdl-config --cflags` `xml2-config --cflags` LIBS += `sdl-config --libs` -lSDL_image -lGL `xml2-config --libs` .SUFFIXES: .cpp .o .cpp.o: $(CC) $(CFLAGS) $(INCLUDE) -c $< -o $@ default: all all: $(TARGET) speobject $(TARGET): $(OBJS) $(TASK_OBJS) $(CC) -o $@ $(OBJS) $(TASK_OBJS) $(LIBS) SGList.o: create_sg_list $(CC) $(CFLAGS) $(INCLUDE) -c SGList.cpp -o $@ create_sg_list: @if [ ! -f SGList.h ]; then \ cd tools/;\ ./create_sglist.pl ../xml_file/*.xml;\ fi 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 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) rm -f *~ \#* rm -f SGList.h SGList.cpp cd task; rm -f *~ \#* cd spe; $(MAKE) clean