changeset 1728:0ae49bff30e9 draft

fix makefile
author Yuhi TOMARI <yuhi@cr.ie.u-ryukyu.ac.jp>
date Wed, 30 Oct 2013 19:10:49 +0900
parents e99dc86d39e2
children e9dc25836520
files example/multiply/Makefile.gpu example/multiply/ppe/task_init.cc
diffstat 2 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/example/multiply/Makefile.gpu	Wed Oct 30 19:05:38 2013 +0900
+++ b/example/multiply/Makefile.gpu	Wed Oct 30 19:10:49 2013 +0900
@@ -11,7 +11,7 @@
 TASK_SRCS_EXCLUDE = 
 TASK_SRCS = $(filter-out $(TASK_DIR)/$(TASK_SRCS_EXCLUDE),$(TASK_SRCS_TMP)) $(wildcard $(GPU_TASK_DIR)/*.cc)
 TASK_OBJS = $(TASK_SRCS:.cc=.o)
-
+CFLAGS = -D__CERIUM_GPU__
 LIBS += `sdl-config --libs` -lGpuManager -framework opencl
 
 .SUFFIXES: .cc .o
--- a/example/multiply/ppe/task_init.cc	Wed Oct 30 19:05:38 2013 +0900
+++ b/example/multiply/ppe/task_init.cc	Wed Oct 30 19:10:49 2013 +0900
@@ -14,9 +14,10 @@
 {
   SchedRegisterTask(MULTIPLY_TASK, Multiply);
 }
-
+#ifndef __CERIUM_GPU__
 void
 gpu_task_init(void)
 {
     // nop
 }
+#endif