Mercurial > hg > Game > Cerium
view TaskManager/test/SetCpuTest/Makefile.gpu @ 1628:b3edf26734f5 draft
add SetCpuTest
author | shohei kokubo |
---|---|
date | Mon, 03 Jun 2013 19:17:17 +0900 |
parents | |
children | 6c0b6947c231 |
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) TASK_DIR = gpu TASK_SRCS_TMP = $(wildcard $(TASK_DIR)/*.cc) TASK_SRCS_EXCLUDE = TASK_SRCS = $(filter-out $(TASK_DIR)/$(TASK_SRCS_EXCLUDE),$(TASK_SRCS_TMP)) TASK_OBJS = $(TASK_SRCS:.cc=.o) LIBS += `sdl-config --libs` -lGpuManager -framework opencl .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) test: cpus=0;./$(TARGET) -cpu $$cpus cpus=1;./$(TARGET) -cpu $$cpus cpus=2;./$(TARGET) -cpu $$cpus cpus=4;./$(TARGET) -cpu $$cpus cpus=8;./$(TARGET) -cpu $$cpus cpus=16;./$(TARGET) -cpu $$cpus cpus=24;./$(TARGET) -cpu $$cpus cpus=0;./$(TARGET) -cpu $$cpus -gpu cpus=1;./$(TARGET) -cpu $$cpus -gpu cpus=2;./$(TARGET) -cpu $$cpus -gpu cpus=4;./$(TARGET) -cpu $$cpus -gpu cpus=8;./$(TARGET) -cpu $$cpus -gpu cpus=16;./$(TARGET) -cpu $$cpus -gpu cpus=24;./$(TARGET) -cpu $$cpus -gpu debug: $(TARGET) sudo ppu-gdb ./$(TARGET) clean: rm -f $(TARGET) $(OBJS) $(TASK_OBJS) rm -f *~ \#* rm -f ppe/*~ ppe/\#* cd spe; $(MAKE) clean