Mercurial > hg > Members > kono > Cerium
view example/HelloWorld/Makefile.cell @ 629:8843edf37c0e
Cell 64 bit tried, but not yet worked.
Cell's list DMA is 32bit.
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Wed, 18 Nov 2009 13:32:58 +0900 |
parents | 1d8b8a4ac453 |
children |
line wrap: on
line source
include ./Makefile.def ABIBIT=32 CFLAGS += -m$(ABIBIT) -D__CERIUM_CELL__ SRCS_TMP = $(wildcard *.cc) SRCS_EXCLUDE = # 除外するファイルを書く SRCS = $(filter-out $(SRCS_EXCLUDE),$(SRCS_TMP)) OBJS = $(SRCS:.cc=.o) TASK_DIR = ppe TASK_SRCS_TMP = $(wildcard $(TASK_DIR)/*.cc) TASK_SRCS_EXCLUDE = TASK_SRCS = $(filter-out $(TASK_DIR)/$(TASK_SRCS_EXCLUDE),$(TASK_SRCS_TMP)) TASK_OBJS = $(TASK_SRCS:.cc=.o) LIBS += -lCellManager -lspe2 -lpthread -Wl,--gc-sections .SUFFIXES: .cc .o .cc.o: $(CC) $(CFLAGS) $(INCLUDE) -c $< -o $@ all: $(TARGET) speobject $(TARGET): $(OBJS) $(TASK_OBJS) $(CC) $(CFLAGS) -o $@ $(OBJS) $(TASK_OBJS) $(LIBS) speobject: cd spe; $(MAKE) ABIBIT=$(ABIBIT) run: ./$(TARGET) -cpu 6 link: $(CC) -o $(TARGET) $(OBJS) $(TASK_OBJS) $(LIBS) debug: $(TARGET) sudo ppu-gdb ./$(TARGET) clean: rm -f $(TARGET) $(OBJS) $(TASK_OBJS) rm -f *~ \#* rm -f ppe/*~ ppe/\#* cd spe; $(MAKE) clean