Mercurial > hg > Game > Cerium
view example/fft/Makefile.linux @ 2044:66aa91f6f4df draft
merge
author | Shin,ichi Uehara |
---|---|
date | Wed, 25 Mar 2015 19:13:56 +0900 |
parents | dae9dc8d1d8f |
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) TASK_DIR = ppe 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) CC = clang++ CC += $(ABI) # CFLAGS = -g -Wall# -O9 #-DDEBUG INCLUDE = -I. -I.. -I${CERIUM}/include/TaskManager LIBS = -L${CERIUM}/TaskManager -lFifoManager -lrt .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) hoge: cpus=0;./$(TARGET) -file lena512.pgm -cpu $$cpus cpus=1;./$(TARGET) -file lena512.pgm -cpu $$cpus cpus=2;./$(TARGET) -file lena512.pgm -cpu $$cpus cpus=3;./$(TARGET) -file lena512.pgm -cpu $$cpus cpus=4;./$(TARGET) -file lena512.pgm -cpu $$cpus cpus=5;./$(TARGET) -file lena512.pgm -cpu $$cpus cpus=6;./$(TARGET) -file lena512.pgm -cpu $$cpus cpus=7;./$(TARGET) -file lena512.pgm -cpu $$cpus cpus=8;./$(TARGET) -file lena512.pgm -cpu $$cpus cpus=9;./$(TARGET) -file lena512.pgm -cpu $$cpus cpus=10;./$(TARGET) -file lena512.pgm -cpu $$cpus cpus=11;./$(TARGET) -file lena512.pgm -cpu $$cpus cpus=12;./$(TARGET) -file lena512.pgm -cpu $$cpus cpus=13;./$(TARGET) -file lena512.pgm -cpu $$cpus cpus=14;./$(TARGET) -file lena512.pgm -cpu $$cpus cpus=15;./$(TARGET) -file lena512.pgm -cpu $$cpus cpus=16;./$(TARGET) -file lena512.pgm -cpu $$cpus debug: $(TARGET) sudo gdb ./$(TARGET) test: ./$(TARGET) -file lena512.pgm -cpu 1 ./$(TARGET) -file lena512.pgm -cpu 4 clean: rm -f $(TARGET) $(OBJS) $(TASK_OBJS) rm -f *~ \#* rm -f ppe/*~ ppe/\#* rm -f spe/*~ spe/\#* rm -f gpu/*~ gpu/\#*