Mercurial > hg > Game > Cerium
view example/fft/Makefile.gpu @ 2044:66aa91f6f4df draft
merge
author | Shin,ichi Uehara |
---|---|
date | Wed, 25 Mar 2015 19:13:56 +0900 |
parents | 6118e0b77d74 |
children |
line wrap: on
line source
include ./Makefile.def SRCS_TMP = $(wildcard *.cc) SRCS_EXCLUDE = # 除外するファイルを書く SRCS = $(filter-out $(SRCS_EXCLUDE),$(SRCS_TMP)) OBJS = $(SRCS:.cc=.o) GPU_TASK_DIR = gpu GPU_TASK_SRCS_TMP = $(wildcard $(GPU_TASK_DIR)/*.cc) GPU_TASK_SRCS_EXCLUDE = GPU_TASK_SRCS = $(filter-out $(GPU_TASK_DIR)/$(GPU_TASK_SRCS_EXCLUDE),$(GPU_TASK_SRCS_TMP)) GPU_TASK_OBJS = $(GPU_TASK_SRCS:.cc=.o) TASK_DIR = ppe TASK_SRCS_TMP = $(wildcard $(TASK_DIR)/*.cc) TASK_SRCS_EXCLUDE = TASK_SRCS = $(filter-out $(GPU_TASK_DIR)/$(TASK_SRCS_EXCLUDE),$(TASK_SRCS_TMP)) TASK_OBJS = $(TASK_SRCS:.cc=.o) CFLAGS += -DGPU LIBS += `sdl-config --libs` -lGpuManager -framework opencl .SUFFIXES: .cc .o .cc.o: $(CC) $(CFLAGS) $(INCLUDE) -c $< -o $@ all: $(TARGET) $(TARGET): $(OBJS) $(TASK_OBJS) $(GPU_TASK_OBJS) $(CC) $(OPT) -o $@ $(OBJS) $(TASK_OBJS) $(GPU_TASK_OBJS) $(LIBS) link: $(CC) $(OPT) -o $(TARGET) $(OBJS) $(TASK_OBJS) $(GPU_TASK_OBJS) $(LIBS) debug: $(TARGET) sudo gdb ./$(TARGET) clean: rm -f $(TARGET) $(OBJS) $(TASK_OBJS) $(GPU_TASK_OBJS) rm -f *~ \#* rm -f ppe/*~ ppe/\#* rm -f gpu/*~ gpu/\#*