view example/many_task/gpu/Makefile @ 2048:6796d85f3d6b draft

remove error
author Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
date Thu, 28 Jan 2016 00:05:49 +0900
parents 031f26b15ae6
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 *~ \#*