Mercurial > hg > Game > Cerium
view example/many_task/Makefile.gpu @ 1849:0296fa2dfe6d draft
add test
author | Shinji KONO |
---|---|
date | Sat, 21 Dec 2013 09:00:27 +0900 |
parents | b2d2a16d3b84 |
children | c21bd32e20b9 |
line wrap: on
line source
include ./Makefile.def SRCS_TMP = $(wildcard *.cc) SRCS_EXCLUDE = sort-compat.cc sort_test.cc gpu/gpu_task_init.cc # 除外するファイルを書く SRCS = $(filter-out $(SRCS_EXCLUDE),$(SRCS_TMP)) OBJS = $(SRCS:.cc=.o) TASK_DIR = gpu TASK_SRCS_TMP = $(wildcard $(TASK_DIR)/*.cc) ppe/QuickSort.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) CC += $(ABI) CFLAGS += -D__CERIUM_GPU__ LIBS = -L${CERIUM}/TaskManager -DUSE_SIMPLE_TASK -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) debug: $(TARGET) sudo lldb -- ./$(TARGET) -gpu -g test : $(TARGET) ./$(TARGET) -gpu -g clean: rm -f $(TARGET) $(OBJS) $(TASK_OBJS) rm -f *~ \#* rm -f ppe/*~ ppe/\#* rm -f spe/*~ spe/\#* rm -f gpu/*~ gpu/\#*