Mercurial > hg > Game > Cerium
diff example/HelloWorld/Makefile.cell @ 631:30dd8a3deb4a draft
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 | 0c9c9906d777 |
children | a0ea7d9b6faf |
line wrap: on
line diff
--- a/example/HelloWorld/Makefile.cell Tue Nov 17 01:35:12 2009 +0900 +++ b/example/HelloWorld/Makefile.cell Wed Nov 18 13:32:58 2009 +0900 @@ -1,5 +1,8 @@ include ./Makefile.def +ABIBIT=32 +CFLAGS += -m$(ABIBIT) -D__CERIUM_CELL__ + SRCS_TMP = $(wildcard *.cc) SRCS_EXCLUDE = # 除外するファイルを書く SRCS = $(filter-out $(SRCS_EXCLUDE),$(SRCS_TMP)) @@ -21,10 +24,10 @@ all: $(TARGET) speobject $(TARGET): $(OBJS) $(TASK_OBJS) - $(CC) -o $@ $(OBJS) $(TASK_OBJS) $(LIBS) + $(CC) $(CFLAGS) -o $@ $(OBJS) $(TASK_OBJS) $(LIBS) speobject: - cd spe; $(MAKE) + cd spe; $(MAKE) ABIBIT=$(ABIBIT) run: ./$(TARGET) -cpu 6