changeset 1518:940ffd32e5bd draft

add many_task/Makefile.gpu
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Sat, 10 Nov 2012 11:15:00 +0900
parents 411401d1cb71
children 9a5f87f4b60f
files example/many_task/Makefile.def example/many_task/Makefile.gpu
diffstat 2 files changed, 35 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/example/many_task/Makefile.def	Sat Nov 10 11:07:23 2012 +0900
+++ b/example/many_task/Makefile.def	Sat Nov 10 11:15:00 2012 +0900
@@ -6,8 +6,8 @@
 
 CERIUM = ../../../Cerium
 
-OPT = -O9
-# OPT = -g -O9
+OPT = -O
+OPT = -g -O0
 # OPT = -g
 CC      = clang++
 CFLAGS  =  -Wall  $(OPT) -DUSE_SIMPLE_TASK
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/example/many_task/Makefile.gpu	Sat Nov 10 11:15:00 2012 +0900
@@ -0,0 +1,33 @@
+include ./Makefile.def
+
+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 = sort_test.cc 
+TASK_SRCS = $(filter-out $(TASK_DIR)/$(TASK_SRCS_EXCLUDE),$(TASK_SRCS_TMP))
+TASK_OBJS = $(TASK_SRCS:.cc=.o)
+
+LIBS += -lGpuManager -framework opencl `sdl-config --libs`
+
+.SUFFIXES: .cc .o
+
+.cc.o:
+	$(CC) $(CFLAGS) $(INCLUDE) -c $< -o $@
+
+all: $(TARGET) 
+
+$(TARGET): $(OBJS) $(TASK_OBJS)
+	$(CC) -o $@ $(OBJS) $(TASK_OBJS) $(LIBS)
+
+link:
+	$(CC) -o $(TARGET) $(OBJS) $(TASK_OBJS) $(LIBS)
+
+
+clean:
+	rm -f $(TARGET) $(OBJS) $(TASK_OBJS)
+	rm -f *~ \#*
+	rm -f ppe/*~ ppe/\#*