view example/many_task/gpu/Makefile @ 1520:031f26b15ae6 draft

add many_task/gpu
author Yuhi TOMARI <yuhi@cr.ie.u-ryukyu.ac.jp>
date Sat, 10 Nov 2012 19:42:22 +0900
parents
children
line wrap: on
line source

TARGET = sort_test
CERIUM = ../../../../Cerium

CC      = g++
CFLAGS  =   -g -Wall  

INCLUDE = -I${CERIUM}/include/TaskManager -I. -I../
LIBS = -L${CERIUM}/TaskManager


SRCS_TMP = $(wildcard *.cc)
SRCS_EXCLUDE = gpu_task_init.cc # 除外するファイルを書く
SRCS = $(filter-out $(SRCS_EXCLUDE),$(SRCS_TMP))
OBJS = $(SRCS:.cc=.o)

LIBS += -framework opencl

.SUFFIXES: .cc .o

.cc.o:
	$(CC) $(CFLAGS) $(INCLUDE) -c $< -o $@

all: $(TARGET)
gpu: all

$(TARGET): $(OBJS)
	$(CC) -o $@ $(OBJS) $(TASK_OBJS) $(LIBS)

link:
	$(CC) -o $(TARGET) $(OBJS) $(LIBS)

debug: $(TARGET)
	sudo gdb ./$(TARGET) 

clean:
	rm -f $(TARGET) $(OBJS)
	rm -f *~ \#*