Mercurial > hg > Game > Cerium
view Renderer/Engine/Makefile.cell @ 1767:1a68c05eeadf draft
minor fix
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Sat, 23 Nov 2013 01:28:59 +0900 |
parents | 94ac6d8e73aa |
children |
line wrap: on
line source
include ./Makefile.def ABIBIT=32 SRCS_TMP = $(wildcard *.cc) $(wildcard Application/*.cc) $(wildcard ps3fb/*.cc) SRCS_EXCLUDE = # 除外 SRCS = $(filter-out $(SRCS_EXCLUDE),$(SRCS_TMP)) OBJS = $(SRCS:.cc=.o) TASK_DIR = task TASK_SRCS_TMP = $(wildcard $(TASK_DIR)/*.cc) TASK_SRCS_EXCLUDE = span_pack_draw.cc Bridge.cc TASK_SRCS = $(filter-out $(TASK_SRCS_EXCLUDE),$(TASK_SRCS_TMP)) TASK_OBJS = $(TASK_SRCS:.cc=.o) CELL_SPE_DIR = spe CELL_SPE_SCHEDULE_SRC = \ $(CELL_SPE_DIR)/AllocateSegment.cc \ $(CELL_SPE_DIR)/AllocateSegment.h \ $(CELL_SPE_DIR)/CreatePolygon.cc \ $(CELL_SPE_DIR)/CreatePolygon.h \ $(CELL_SPE_DIR)/CreatePolygonFromSceneGraph.cc \ $(CELL_SPE_DIR)/CreatePolygonFromSceneGraph.h \ $(CELL_SPE_DIR)/CreateSpan.cc \ $(CELL_SPE_DIR)/CreateSpan.h \ $(CELL_SPE_DIR)/DataAllocate.cc \ $(CELL_SPE_DIR)/DataAllocate.h \ $(CELL_SPE_DIR)/DataFree.cc \ $(CELL_SPE_DIR)/DataFree.h \ $(CELL_SPE_DIR)/DataUpdate.cc \ $(CELL_SPE_DIR)/DataUpdate.h \ $(CELL_SPE_DIR)/DrawSpan.cc \ $(CELL_SPE_DIR)/DrawSpan.h \ $(CELL_SPE_DIR)/InitKey.cc \ $(CELL_SPE_DIR)/InitKey.h \ $(CELL_SPE_DIR)/UpdateKey.cc \ $(CELL_SPE_DIR)/UpdateKey.h \ $(CELL_SPE_DIR)/task_texture.h CELL_SPE_SCHEDULE_OBJ = $(CELL_SPE_SCHEDULE_SRC:.cc=.o) $(CELL_SPE_SCHEDULE_SRC): task/*.cc task/*.h cp task/*.cc task/*.h $(CELL_SPE_DIR)/ LIBS += -lCellManager -lspe2 -lpthread CFLAGS += -I/usr/local/include -I/usr/local/include/freetype2 -D__CERIUM_CELL__ -DHAS_POSIX_MEMALIGN -Drestrict=__restrict__ `sdl-config --cflags` `xml2-config --cflags` LIBS += `sdl-config --libs` -lSDL_image -lGL `xml2-config --libs` .SUFFIXES: .cc .o .cc.o: $(CC) $(CFLAGS) $(INCLUDE) -c $< -o $@ default: all all: $(TARGET) speobject $(TARGET): $(OBJS) $(TASK_OBJS) $(AR) crus $@ $(OBJS) $(TASK_OBJS) speobject: $(CELL_SPE_SCHEDULE_SRC) 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.cc cd task; rm -f *~ \#* cd spe; $(MAKE) clean